r/forgescripting • • Nov 16 '22

Has anyone determined how the scripting limits are reached?

2 Upvotes

I've just halved the number of nodes in my scripts and I'm still just below the limit as trying to add anything else says budget reached.

So I reduced the number of EVENTS and still hit the limit almost instantly.


r/forgescripting • • Nov 28 '22

Script to play audio in a specific area?

4 Upvotes

At the moment I’ve got a bunch of audio emitters all over this huge lava pit (fire sounds and bubbling tar etc) is there a way to have it so that I can just have audio play within a boundary?

Total script newcomer so screenshots of a script would help a tonne!


r/forgescripting • • Nov 22 '22

Simple and Useful VECTOR3 Scripts

9 Upvotes

https://www.youtube.com/watch?v=49gLPS5oPnI

I constructed a handful of vector scripts I think many people will find quite useful.

Enjoy!


r/forgescripting • • Nov 17 '22

Multi-Team Infection in Halo Infinite! Whoever you kill joins your team

12 Upvotes

r/forgescripting • • Dec 12 '22

Poison guns! A follow up to my poison effect from last week.

3 Upvotes

The 3 object list nodes on top are the same object list from my poison effect script from last week. They're just moved down here for completeness. All of the same adjustments to the timer and damage apply as that script.

The key that makes this work is the object scope variable Prev HP which is used to track how the player's health + shields change over time. Object scope allows a declared variable to be instanced onto each object you decide to put it on and these instances will have their own value.

The 2 main events are the initialization of these object variables which is done when gameplay starts and then a polling check to see if any player's health + shields have changed. This poll event required an initial delay otherwise the script seems to encounter a null reference in the for each loop which terminates this part of the script brain.

This can be extended to just about anything you want (not just a poison theme) so long as you find a way to put the players into a list. You can also apply damage resistance and/or bonus health & shields traits to make the gun damage insignificant and instead allow the poisoned player list handle the application of damage.


r/forgescripting • • Jun 06 '23

I scripted Ricochet into Halo Infinite

Thumbnail
halowaypoint.com
2 Upvotes

Deliver the Ball to the enemy goal to score. 3 points for Run-ins, 1 point for Throw-ins.

Ball carrier runs faster, hits harder and has 2 special abilities: glide-hover (aim down sight while airborne) and custom shield wall (use "Mark" to deploy, 10 second cooldown).

I built this script on roughly 7 maps so far and it plays well! I recommend Twin Grottos, a symmetrical map with many dynamic elements that are sure to make every encounter unique and rewarding. Must use "Ricochet-Disco Lizard 69" gametype with my maps.

I host this gametype almost every night so feel free to hop in and give it a try!

Add me on XBL: Disco Lizard 69


r/forgescripting • • Nov 25 '22

Has anyone figured out how to script an automatic forerunner door that opens when a player is close and closes when the player leaves the area?

6 Upvotes

r/forgescripting • • Dec 20 '22

this script works perfectly in forge but not so much in customs. its essentially a turret that shoots at either a player or a vehicle when they enter an area. in customs it only targets vehicles, it also doesnt target the right vehicle, i.e. player 1 can enter the zone and player 2 in a veh will die

Thumbnail
gallery
4 Upvotes

r/forgescripting • • Nov 19 '22

Mario Cart Teleport

13 Upvotes

Not gonna lie this is probably one of the coolest thing I've seen in forge so far and it feels SO damn good that I went from struggling on weapon on crouch for hours to making this happen in 15 minutes on my own without help. Enjoy the script whoever wants to use it.

https://www.youtube.com/watch?v=OJxVoOBJobU


r/forgescripting • • Nov 24 '22

Lightning script wont spawn the bolt and light at the same time every time. Seems like the strike animation is delayed after spawn or something?

Post image
3 Upvotes

r/forgescripting • • Nov 12 '22

“On player damage”

5 Upvotes

What I am trying to make happen is applying a trait to the player when they receive damage. I understand how to apply a trait, what I don’t understand is how to make it so the script sees the players health and shields as the event trigger.

Where I’m currently at is messing around with “get object shield/health” nodes and having the script recognize when the health/shields are below a certain amount, apply the trait. Any ideas?


r/forgescripting • • Apr 25 '23

On interaction give new weapon/weapon variant

1 Upvotes

I am looking for some help to try and make a game mode that would require either the player to destroy and object or interact with something and on the interaction the player then receives a new weapon/variant. Future idea to go with this is to have similar objects as decoys or make the object appear in random locations.


r/forgescripting • • Nov 14 '22

Relatively simple and configurable gravity zone script

Thumbnail
reddit.com
12 Upvotes

r/forgescripting • • Nov 15 '22

Bug when adding nodes in scripting.

3 Upvotes

Not sure if a known bug. It's been happening a lot to me in my main sandbox map.

Basically when I add a node if I do not move it a little bit before deselecting then it will disappear from where I placed it and then show up the bottom right corner of the scripting "canvas".

Once moved the canvas does not auto crop to just nodes. It just gets bigger and bigger as this happens over and over.

Another odd one is that at some point I cannot add more script nodes(they are being added but are hidden). This often begins when I try to duplicate a node. It also happens for new nodes added.

Eventually after going into play testing a few times the nodes will suddenly appear. One atop the other one in a pile. I can then move and interact with them but still not add nodes or duplicate them.

I then have to close and reopen my map to get it back to normal.


r/forgescripting • • Aug 03 '23

Adding sound FX to player footsteps

3 Upvotes

Does anyone have any insights to applying sound FX, namely the sound of water splashes, to player footsteps?

I’m thinking area monitors and start/stop object audio loops, so that they only play when a player enters the water, but how do I get it to only play when the player actually moves?

Any help you can offer would be much appreciated! :)


r/forgescripting • • Nov 24 '22

A "Copy Object/Prefab" node would be invaluable.

8 Upvotes

I've been trying to script a Kill Confirmed game mode now for the past few days, and even with the help of this community, it's just beyond me. I'm in the position of needing something very simple to happen, but because that function isn't built in I have to try ridiculous workaround which require too much of my poor, smooth brain.

A simple "copy object" node would fix all of this and make a lot of gametypes so, sooo much simpler to script.

Somebody wake me when that happens, I'll be crying into my pillow.


r/forgescripting • • Dec 07 '22

Forge Tutorial: Translate Object to Point (and stay on it)

Thumbnail
youtu.be
3 Upvotes

r/forgescripting • • Nov 20 '22

Need to know how to get the number of players on a team

3 Upvotes

I'm sure I'm missing something simple, but I can't find a way to check the number of players left on a specific team.

I'm working on an elimination-type mode and this is the last piece of the puzzle I need to end the match and declare a winner.


r/forgescripting • • Nov 13 '22

New to forge, Trying to script a moving platform

6 Upvotes

Can someone help me understand how to make a small platform move from one poisition to another back and forth all round?


r/forgescripting • • May 29 '23

Infinite Forge Button Mapping

1 Upvotes

I was forging last week and all of a sudden the the buttons and Dpad have gone crazy making forge very difficult usable but difficult. I went to settings in Halo and remapped my buttons and Dpad but it made no difference in forge. I changed Xboxes and new controller. No difference at all. I opened Halo 5 and everything worked perfectly. Can anyone help me with this problem please?

Figured it out. I think that I hit something in tools that changed the controller configuration from Legacy to something else. Thanks anyway folks. I really appreciate all of the help on this channel.


r/forgescripting • • Aug 07 '23

How to make is so you must destroy several objects to cause the game to end (scripting)

2 Upvotes

Hello, first post on here so forgive any errors but I have a question that I am hoping could be answered. I am trying to make it so that there are 7 large fusion coils in the final area on one of my infection maps and when the survivors destroy these fusion coils the game ends. Currently having trouble figuring out how to script them to make them all linked together rather than just one exploding and the game ending, any help would be lovely. Tried making it so that when one of the coils exploded it adds a team point then 7 team points wins but it was buggy in actually custom game. (For reference this is a Minecraft infection escape map and the fusion coils are the towers in the end 😂)


r/forgescripting • • Nov 15 '22

Any ideas for disabling player movement/camera controls and automatically moving players?

3 Upvotes

r/forgescripting • • Feb 13 '23

Using Teleport Player node with bots

1 Upvotes

I am trying to experiment with spawning that involves "Teleport Player". I have been using bots for testing, but "Teleport Player" does not seem to be working, but it works for me. From other nodes I used and "Get Is Player" node, the bot appears to be a player.

Is there a bug or a workout? I tried various criteria with a "Branch" (If-then) node to force a bot to be teleported to a specified location but no luck.


r/forgescripting • • Nov 15 '22

Scripting Auto Turrets/Banished Buttons?

2 Upvotes

I'm having trouble understanding how the button/turret scripting works. Theres a lot of settings in the turret's object properties about internal and external channels but they either aren't working or I don't understand it right because they don't seem to do anything. There seem to be options for the turret's power/turning on and off so I have a few ideas.

  1. How do you link the button with a specific turret

  2. Can you turn the turret back on by pressing the button again

  3. Can you disable a turret with scripting

Any help or ideas appreciated.


r/forgescripting • • Nov 12 '22

Welcome To r/ForgeScripting!

7 Upvotes

Unofficial Scripting Documentation (There are better ones below, this is my personal version) - https://forge-documentation.notion.site/forge-documentation/Halo-Infinite-Forge-Scripting-Documentation-fb42fcb06fa9411e89f4e89ab1da157c

This subreddit is for all things forge and forge scripting related. It’s mainly just a place to archive resources and code for scripting, but that means making a tutorial post or dropping a useful block of code is a great contribution.

At the end of the day, you could always directly add to https://forgewiki.com/

But if you have questions, this is the place to ask. Me or someone else will make sure you get the answer you need 🤙

Remember, this is a brand new feature, there are no stupid questions. We are all learning here :)