Editing
Games:Halo 5: Guardians/Forge/Scripting/2. Actions
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
''<span style="text-size: 12px"><span style="color: #99ccff">This information was compiled for your use as a reference and learning resource. Please keep in mind that Halo 5 Forge updates over the years, including but not limited to the huge Monitor's Bounty update, means you may find information that is no longer relevant or was modified in an update. We're working to get this info up-to-date. Feel free to contact staff if you find deprecated information, when they can forward your concern to the appropriate team for correction.</span></span>'' In Halo 5 Forge Scripting, Actions are behaviors triggered by Script [https://www.forgehub.com/wiki/h5-conditions/']Conditions[/URL]. Some Actions have additional options in their settings, depending on what Condition has triggered them. Below is a list of all Actions and their settings for reference. Some Actions also have additional information on tips, tricks, and gotchas! (bugs, glitches, or other unexpected behavior) specific to that Action. Be sure and read the ['https://www.forgehub.com/wiki/h5-conditions/' Conditions]. Some Actions have additional options in their settings, depending on what Condition has triggered them. Below is a list of all Actions and their settings for reference. Some Actions also have additional information on tips, tricks, and gotchas! (bugs, glitches, or other unexpected behavior) specific to that Action. Be sure and read the [URL='https://www.forgehub.com/wiki/scripting/#general-script-gotchas] for more glitches and bugs. __TOC__ ==Spawn== 'Spawn' THIS object if it isn't already in the map. Object is created with the properties, variables and scripts set for it. <div class="spoiler"> Objects sometimes will not spawn if a player or object is in the space it will spawn in. Checkbox 'Force' in Spawn options to Force the Object to spawn in even if something is in it's spawn space.</div> <div class="spoiler"> *Objects spawn in their original positions, not where they were when destroyed or despawned. Exceptions include if an object's physics have been set to normal it will spawn at it's last known location, and welded groups do not always respond at their original position. *Objects in a welded group might be repositioned or rotated if the group was still spawned and in another location. *The Spawn action won't reset a currently spawned object. *Most objects won't spawn if players are in the way or very close by. Switches and Switch Terminals are the known exceptions that will spawn where a player is and the player will be slowly pushed out of that position when the switch is set to fixed or phased physics. *The game seems to determine whether a player is too close for an object to spawn based only on the distance a player is to the object (usually the object's center). That means the spawn detection zone around an object has a spherical shape. '''Simultaneous Spawn/Despawn Actions''' *When objects have Spawn and Despawn actions run in the same game tick, the last one (highest script number & higher number action) is the one that has full effect. *If both Spawn and Despawn are called during the same game tick, whichever one is last has its condition triggered whether or not it was previously in that state. i.e. for a spawned object, calling Despawn and then Spawn for it triggers its Spawned condition. *An object's Number is available for reading and writing after calling Spawn, but Despawn makes it inaccessible again. This works even during the same game tick. *For a despawned object, you can call Spawn, use its Number, and then call Despawn during the same game tick and the object won't spawn or trigger its Spawned condition, but the Despawned condition will trigger. </div> ==Despawn== 'Despawn' target objects if they exist in the map. Objects removed with this Action can be created again with the 'Spawn' Action. Default is THIS object. <div class="spoiler"> '''OBJECTS '''[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] </div> <div class="spoiler"> * In welded groups, if the parent object has a despawn script it will take the sibling objects with it. If the group is not welded, only the parent object will despawn. * When using the Despawn Action directly after another Action such as Number Change, sometimes it's necessary to insert a .10 Wait Action between them, because the object seems to despawn before the previous Action completes it's scripts. This can happen even if "Always On" is checked. It's possible in these reported cases the cause was inadvertently changing the order of scripts by deleted one.</div> ==Position/Rotation: Reset== Reset the target OBJECTS to their initial Position and Rotation used at the start of the map. Default is THIS object. <div class="spoiler"> [ATTACH=full]70740[/ATTACH] '''OBJECTS '''[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Time''': 0-720 (increments of .10) [INDENT]'''Reset Velocity:''' On/Off (On: resets the objects Velocity to 0; Off: will maintain the same Velocity it has when told to reset.)''(NOTE: This menu item only appears if Time is set to 0)''[/INDENT] '''Position''': On/Off '''Orientation''': On/Off </div> <div class="spoiler"> *Reset Velocty sets the velocity to zero if set to Yes. If set to No, the object position and rotation will be reset, but it will continue to move in whatever direction it was moving. *The position and rotation is not reliably reset to their original values. Using Despawn and Spawn actions can be more reliable. Setting the time to 0.0 might be more reliable. *A vehicle with a Reset script with Time set to 0.00 will instantly teleport the vehicle and passengers to the vehicles spawn location. Does not seem to work when there's a driver. Tested with a Mongoose. </div> ==Message: Send== Send a Message that triggers the 'Message: Recieved' Condition on objects that are listening for it. <div class="spoiler"> '''Channel''': alpha-zulu '''Transfer''': THIS or ACTIVATOR ''(NOTE: This menu item only appears in the following Conditions: Message:Received, Power:Check, Interacted or Boundary:Check)'' </div> ==Power: Set== Set THIS object's 'Power' and send the information to OTHER objects listening with 'Power: Check' and/or 'Message/Power: Multi' Conditions. <div class="spoiler"> '''Channel '''- alpha-zulu '''State '''- On/Off/Toggle (Sets the 'Power' State of the 'Power' Channel. 'On' provides continuous power. Default power is 'Off'. Toggle flips between On/Off.) </div> <div class="spoiler"> *The behavior seems like the highest number script that sets a channel's power state is the only one that takes effect. Two Toggle actions won't cancel each other. *If an On/Off script attempts to set the state but it is already set to that value, then no events occur and no conditions will trigger during the next cycle. *Toggle always changes the value, either from Off to On or from On to Off. *Since it appears that only one script takes effect for a power channel, only either the On or the Off conditions can trigger during each cycle. If the setting doesn't end up changed, no On/Off/Toggle conditions will be triggered by it (but the current state is still true for On/Off Multi conditions). </div> ==Animation: Play== Play target OBJECTS authored 'Animation' (loop). Default is THIS object. Can be stopped with 'Animation: Stop' Action. Functional on animated objects such as Pistons. <div class="spoiler"> '''OBJECTS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Position''': 0-1.00 (increments of .10) Position in the animation to start animating towards. When desired position value is reached the animation will stop.</div> ==Animation: Stop== Stop target OBJECTS authored 'Animation' if it is playing. Functional on animated objects such as Pistons. Some animations cannot be stopped such as Generator animations. <div class="spoiler"> '''OBJECTS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] </div> ==Damage: Ratio== Apply 'Damage' to the target OBJECTS based on a ratio of their maximum health. Default is THIS object. <div class="spoiler"> '''OBJECTS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Ratio''': 0-100 (increments of .10) NOTE: Only affects player & object health, not shields </div> ==Move: Offset== Move the target OBJECTS to the desired position. Default is THIS object. <div class="spoiler"> [ATTACH=full]70738[/ATTACH] '''OBJECTS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''TARGETS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''X/Forward''': -1,000 - 1,000 (increments of .25) '''Y/Horizontal:''' -1,000 - 1,000 (increments of .25) '''Z/Vertical''': -1,000 - 1,000 (increments of .25) '''Local''': On/Off '''Time''': .10-720 (increments of .10) </div> <div class="spoiler"> ''This information was compiled prior to Monitor's Bounty. Some of the information might be deprecated.'' *If the relative (Local Movement) offset orientations for an object are not obvious, reset its rotation settings to 0.00. Then the Forward, Horizontal and Vertical directions will match the positive world X, Y and Z directions. *Only one Position/Rotation: Reset script can be active for an object at a time. *A Move script that activates while during another script’s control will take over the object movement. If the newer script finishes and the earlier script is still running, control returns to the earlier script. *A Move script can’t be activated again while it is running. *The length of time it runs can’t be extended in the middle of them by executing it again. *Continuous motion: It can be activated on the next cycle after the time is completed to provide continuous motion. This does not work with repeating On Timer conditions set to repeat for the same amount of time that the Move script uses because the On Timer condition will Trigger during the last cycle of the Move script, which means that the Move script can’t activate again at that time. *One solution is to have the Move script last 0.1 seconds less than the Timer condition, but the object motion will stop for that tenth of a second. *Since another script can take over while the first script is running, using a second copy of the script (or a script that runs when the first script can’t) will provide continuous motion. *Object Timers can be used to provide timed continuous motion with a single Move script because the On Spawn and On Despawn events can be scripted to one cycle apart. *A Move script can run for a Warthog that is being driven and the resulting motion seems to be a combination of the Move script and normal driving motion. Tested with a Forward action script. Other vehicles need to be tested. *As of April 2016, Move scripts sometimes result in jerky object motion rather than the expected smooth movement. There doesn't seem to be any definite patterns to this behavior, which may or may not occur at any time. This makes Move actions difficult to use in situations where inconsistent movement is undesirable. Sometimes Move scripts that use short Time settings seem to provide smoother motion. The Velocity action can provide smoother motion, but has limitations. *A workaround has been devised for jerky object motion, discovered by Exterrestr1al and Yumudas Beegbut of The Scripter's Guild. See the Tutorials section to learn how. </div> ==Rotate: Offset== ''Move' the target OBJECTS to the desired position. Default is THIS object. <div class="spoiler"> [ATTACH=full]70741[/ATTACH] '''OBJECTS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Yaw''': -180 - 180 (increments of .25) '''Roll''': -180 - 180 (increments of .25) '''Pitch''': -180 - 180 (increments of .25) '''Time''': .10-720 (increments of .10)</div> <div class="spoiler"> ''This information was compiled prior to Monitor's Bounty. Some of the information might be deprecated.'' *Rotate scripts don't seem to activate while a Position/Rotation: Reset script is running. *Continuous rotation: This works similar to Move scripts as described above. *Rotate scripts sometimes result in jerky object motion rather than the expected smooth movement. There doesn't seem to be any definite patterns to this behavior, which may or may not occur at any time. Sometimes Rotate scripts that use short Time settings seem to provide smoother motion. *A single object with a Rotate script can be used to as a crank to rotate a welded group that is set to Normal Physics. *Rotating groups revolve around the Group Parent's origin point. Groups must be welded for it's objects to revolve as one piece. *See Tutorials section for tips and tricks on smooth motion and rotation. </div> ==Velocity: Set== Set 'Velocity' of the target OBJECTS to the given force. Default is THIS object. Works with objects that have their 'Physics' property set to 'Normal'. <div class="spoiler"> [ATTACH=full]70745[/ATTACH] '''OBJECTS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''X/Forward''': -500 - 500 (increments of .50) '''Y/Horizontal''': -500 - 500 (increments of .50) '''Z/Vertical:''' -500 - 500 (increments of .50) '''Local:''' On/Off </div> <div class="spoiler"> ''This information was compiled prior to Monitor's Bounty. Some of the information might be deprecated.'' *If the relative orientations for an object are not obvious, reset its rotation settings to 0.00. Then the Forward, Horizontal and Vertical directions will match the positive world X, Y and Z directions. *This action does not have a time component, so it can be activated every cycle. *If multiple Velocity scripts are activated during the same cycle for an object, the highest numbered script executes and the others are ignored. *Gravity, collisions, etc will affect the object’s velocity again immediately on the next cycle. *Whatever velocity the object has before this action activates is completely replaced by the velocity set by this action. *Vehicles with a driver don't seem to respond to Velocity scripts. Vehicles with only passengers will execute Velocity scripts and the passenger seems to stay in the vehicle if it floors upside down. Tested in Forge with a Mongoose. *As of April 2016, this action provides smoother motion than Move, Rotate, or Reset script actions, but it can be tricky to use. *See Tutorials section for tips and tricks on smooth motion and rotation. </div> ==Color: Set== Set the target OBJECTS 'Color' sections to the desired colors. Default is THIS object. <div class="spoiler"> '''OBJECTS''': [[https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#gid=997377531https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#gid=997377531https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Primary''': [[https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#rangeid=2062905246 https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#rangeid=2062905246]] '''Secondary''': [[https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#rangeid=2062905246 https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#rangeid=2062905246]] '''Tertiary''': [[https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#rangeid=2062905246 https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#rangeid=2062905246]] </div> ==Number: Change== Change 'Number' variables in different scopes to values that you want. Check variables with the 'Number: Check' Condition. <div class="spoiler"> [ATTACH=full]70739[/ATTACH] '''<span style="color: #4da6ff">VARIABLE</span>''' [INDENT]<span style="color: #a64dff">'''Scope'''</span>: <span style="color: #9999ff">'''Global'''</span>, <span style="color: #9999ff">'''Player'''</span>, <span style="color: #9999ff">'''Team''' </span>or <span style="color: #9999ff">'''Object'''</span> [INDENT]'''<span style="color: #9999ff">Global</span>''' [INDENT]<span style="color: #00b359">Channel</span>: alpha-zulu[/INDENT] '''<span style="color: #9999ff">Player</span>''' [INDENT]<span style="color: #00b359">NUMBER</span>: [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] <span style="color: #00b359">Channel:</span> alpha-zulu[/INDENT] '''<span style="color: #9999ff">Team</span>''' [INDENT]<span style="color: #00b359">NUMBER</span>: [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] <span style="color: #00b300">Channel:</span> alpha-zulu[/INDENT] '''<span style="color: #9999ff">Object</span>''' [INDENT]<span style="color: #00b359">NUMBER </span>[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]][/INDENT] (Channels are the Variable Channel to watch the state of in order to meet the Condition requirement. NUMBERS specify the objects to modify the Number variables of.)[/INDENT][/INDENT] <span style="color: #4da6ff">'''Operation'''</span>: Set, Increment, Decrement, Multiply, Divide, Remainder or Random (What Operation is used to apply the value to the specified variable.) <span style="color: #4da6ff">'''Force Dirty'''</span>: On/Off. Force all conditions to check this Number Variable whether or not it has changed. In other words, the Number Check conditions for the variable will be evaluated next game tick. '''<span style="color: #4da6ff">CHANGE </span>''' [INDENT]<span style="color: #a64dff">'''Source'''</span>: '''<span style="color: #9999ff">Constant</span>, <span style="color: #9999ff">Number</span>, <span style="color: #9999ff">Object Count</span>''' or '''<span style="color: #9999ff">Game Value</span>''' [INDENT]'''<span style="color: #9999ff">Constant</span> '''(Where to pull the value from. Use just the defined numberic Value.) '''<span style="color: #9999ff">Number</span>''' [INDENT]'''<span style="color: #00b359">Scope</span>''': <span style="color: #80ff00">Global</span>, <span style="color: #00ff00">Team </span>or <span style="color: #00ff00">Object </span>(The category of variable to use for this value.) [INDENT]<span style="color: #80ff00">Global</span>: alpha-zulu <span style="color: #80ff00">Team:</span> Team 1-8, alpha-zulu <span style="color: #80ff00">Object</span> [INDENT]<span style="color: #b3b300">Object:</span> THIS or ACTIVATOR <span style="color: #b3b300">Number</span>: <span style="text-decoration: underline;">Team</span>, <span style="text-decoration: underline;">Player</span> or <span style="text-decoration: underline;">Object</span> [INDENT]* <span style="text-decoration: underline;">Team</span>: alpha-zulu ''(Object=ACTIVATOR means ACTIVATOR or Number Check's EXTRA object(s)'' * <span style="text-decoration: underline;">Player</span>: alpha-zulu ''(Number-Object-ACTIVATOR-Player-Channel can retrieve a player channel number)'' * <span style="text-decoration: underline;">Object</span> ''(Number-Object-THIS/ACTIVATOR-Object retrieves an object's only number)''[/INDENT][/INDENT][/INDENT][/INDENT] '''<span style="color: #9999ff">Object Count</span>''' [INDENT]'''<span style="color: #00b359">COUNT</span>''' [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]][/INDENT] <span style="color: #9999ff">'''Game Value'''</span> [INDENT]'''<span style="color: #00b359">Game Value:</span>''' Team [score], Player [score], Health [current], Health [max], Health [ratio], Shields [current], Shields [max], Shields [ratio], Players [current], Players: Team [current], Teams [current], Spawn:Order, Rounds [max], Score to Win '''<span style="color: #00b359">Object</span>''': THIS/ACTIVATOR (The Object to use for this variables value. The object that activated the Condition (See Condition for what the ACTIVATOR object is))[/INDENT][/INDENT] <span style="color: #a64dff">'''Value:'''</span> -32,768 - 32,767 (Adds this Value to the results of the defined criteria.) <span style="color: #a64dff">'''Randomize''':</span> On/Off (If On, Randomizes the value of the Number variable from 0 to the current value.)[/INDENT] </div> <div class="spoiler"> Numbers do not reset on rounds. Player Numbers can be retrieved when Source=Number+Scope=Object+Object=ACTIVATOR+Number=Player. The ACTIVATOR option for Object becomes available when the Condition is Number: Check, Boundary: Check, Interacted, Message: Receive, or Power State: Check. For the Number: Check condition, use the EXTRA filters instead of ACTIVATOR. "Notes on Game Value, Object: THIS/ACTIVATOR" *Can't find a way to make a player be the THIS object *ACTIVATOR Seems to be the only way to get Player data like score, health, order, etc *Boundary Check/Interacted/Number Check put players into ACTIVATOR *Number Check puts the player into ACTIVATOR for Game Value & Object Sources Learn more about Numbers on their page: [https://www.forgehub.com/wiki/numbers-miscellaneous/ https://www.forgehub.com/wiki/numbers-miscellaneous/] </div> ==Trait: Apply== Apply a custom player 'Trait' to target PLAYERS. Modify 'Traits' via the Game Settings in the Custom Game Lobby (Minigame Mode only). <div class="spoiler"> '''PLAYERS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Trait''': alpha-delta </div> ==Traits: Clear== Clear a custom player 'Trait' from the target PLAYERS (Minigame Mode only). PLAYERS: [Mod List] <div class="spoiler"> '''PLAYERS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] </div> ==Wait== ''Wait' the set time before moving onto the next Action if there is one. Add additional Actions to scripts with the {ADD ACTION} function. <div class="spoiler"> '''Time''': 0-720 (.10 increments) </div> ==Score: Change== Increment or decrement the target TEAMS / PLAYERS 'Score'. <div class="spoiler"> [ATTACH=full]70742[/ATTACH] '''<span style="color: #a64dff">Type:</span>''' Team/Player '''<span style="color: #a64dff">SCORERS</span>''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] (Specifies the SCORER objects to change the Score of.) '''<span style="color: #a64dff">Operation</span>''': Set, Increment or Decrement '''<span style="color: #a64dff">Source</span>''': <span style="color: #9999ff">Constant</span>, <span style="color: #9999ff">Number</span>, <span style="color: #9999ff">Object Count</span> or <span style="color: #9999ff">Game Value</span> [INDENT]<span style="color: #9999ff">'''Constant''' '''Number'''</span>: '''<span style="color: #00b359">Global</span>''', '''<span style="color: #00b359">Team</span>''' or '''<span style="color: #00b359">Object</span>''' [INDENT]'''<span style="color: #00b359">Global:</span>''' alpha-zulu '''<span style="color: #00b359">Team</span>''': Team (1-8), alpha-zulu '''<span style="color: #00b359">Object</span>''' ''(only appears in the menu for the following Conditions: Message:Received, Power:Check, Interacted, Number:Check, Boundary:Check)'' [INDENT]<span style="color: #80ff00">Object</span><span style="color: #00b300">:</span> THIS/ACTIVATOR [INDENT]<span style="color: #b3b300">Number</span>: <span style="text-decoration: underline;">Team</span>, <span style="text-decoration: underline;">Player</span> or <span style="text-decoration: underline;">Object</span> [INDENT]<span style="text-decoration: underline;">Team</span>: alpha-zulu <span style="text-decoration: underline;">Player</span>: alpha-zulu ''(Number-Object-ACTIVATOR-Player-Channel can retrieve a player channel number)'' <span style="text-decoration: underline;">Object</span> ''(Number-Object-THIS/ACTIVATOR-Object retrieves an object's only number)''[/INDENT][/INDENT][/INDENT][/INDENT] <span style="color: #9999ff">'''Object Count'''</span> [INDENT]'''<span style="color: #00b300">COUNT </span>'''[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]][/INDENT] <span style="color: #9999ff">'''Game Value'''</span> [INDENT]'''<span style="color: #00b359">Game Value:</span>''' Team [score], Player [score], Health [current], Health [max], Health [ratio], Shields [current], Shields [max], Sheilds [ratio], Players [current], Players: Team [current], Teams [current], Spawn: Order, Rounds [max] ''(1 in Forge mode, -1 for unlimited rounds), Score To Win (0 in forge mode, -1 for unlimited rounds)'' '''<span style="color: #00b359">Object:</span>''' THIS/ACTIVATOR ''(NOTE: only appears in the menu for the following Conditions: Message:Received, Power:Check, Interacted, Number:Check, Boundary:Check)''[/INDENT][/INDENT] <span style="color: #a64dff">'''Value'''</span> (Adds this Value to the results of the defined criteria) <span style="color: #a64dff">'''Randomize '''</span>(If On, Randomizes the value of the Number variable from 0 to the current value.) [INDENT][INDENT][/INDENT][/INDENT] [INDENT][INDENT]'''Notes on Game Value, Object: THIS/ACTIVATOR''' *Can't find a way to make a player be the THIS object *ACTIVATOR Seems to be the only way to get Player data like score, health, order, etc *Boundary Check/Interacted/Number Check put players into ACTIVATOR *Number Check puts the player into ACTIVATOR for Game Value & Object Sources [/INDENT][/INDENT] </div> ==Round: End== End the active 'Round' and trigger standard round over functionality. ==Screen Effects: Set== Set the world's 'Screen Effects' to the desired Filter and/or FX (weather) settings. <div class="spoiler"> [ATTACH=full]70743[/ATTACH] '''PLAYERS''': [[https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#gid=997377531https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#gid=997377531https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Filter''': Default, Ignore, none, Crisp, Warm, Nova, Astro, Washed, Enhanced, Gold, Grayscale, Negative, Red Process, Blue Process, Green Process, Blue/Green Process, Purple Process, Cross Process, Juicy, Sepia, Contrast, Aging, Gloom, Weathered, FoV in [video], FOV Out [video], Heat Distortion, Under Water, Flood '''FX''': Default, Ignore, none, Dust [light], Dust[medium], Dust [heavy], Embers [light], Embers [medium], Embers [heavy], Motes [light], Motes [medium], Motes [heavy], Papers [light], Papers [medium], Papers [heavy], Rain [light], Rain [medium], Rain [heavy], Snow [light], Snow [medium], Snow [heavy], Bubbles </div> ==Switch: Interactive== Set THIS object's or target OBJECTS interface state. Used only for Interactive Object 'Switches' such as Keypad and Terminal. <div class="spoiler"> '''OBJECTS '''[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Interactive''': On, Off </div> ==Physics: Set== Sets the target OBJECTS 'Physics' to the desired type. <div class="spoiler"> '''OBJECTS '''[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Type''': Phased, Fixed or Normal </div> <div class="spoiler"> ==Sound: Play== Play sound such as music, sound effect [sfx], or voiceover [vo]. Must specify PLAYERS that hear the sound. <div class="spoiler"> '''PLAYERS '''[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Sound''': <div class="spoiler"><NONE > SOUND EFFECTS (21) BASE INVADED; WARNING (SFX) CAMERA WHOOSH (SFX) ENEMY TEAM SCORED (SFX) GRUNT BIRTHDAY(SFX) GUARDIAN SONG (SFX) KRAKEN HORN (SFX) MISSION COMPLETE; LARGE (SFX) MISSION COMPLETE; MODERATE (SFX) NEGATIVE (SFX) NEGATIVE; ALT (SFX) OBJECTIVE; INCOMING (SFX) OBJECTIVE; READY (SFX) POSITIVE (SFX) POSITIVE; ALT (SFX) RUMBLE; LONG (SFX) RUMBLE; SHORT (SFX) RUMBLE METAL (SFX) SPARTAN DIE WOOSH (SFX) SPAWN; INFECTED (SFX) SPAWN; RESPAWN (SFX) TEAM SCORED (SFX) PIANO NOTES (16) PIANO; B (NOTES) PIANO; C (NOTES) PIANO; C# (NOTES) PIANO; D (NOTES) PIANO; D# (NOTES) PIANO; E (NOTES) PIANO; F NOTES) PIANO; F# NOTES PIANO; G INOTES) PIANO; G# (NOTES PIANO; A INOTES) PIANO; A# NOTES PIANO; B; OCTAVE (NOTES) PIANO; C; OCTAVE (NOTES) PIANO; C#; OCTAVE NOTES) PIANO; D; OCTAVE NOTES) MUSIC (16) DRAMATIC; A (MUSIC) DRAMATIC; B (MUSIC) DRAMATIC; C (MUSIC) DRUMROLL; A (MUSIC) DRUMROLL; B (MUSIC) NEGATIVE; A (MUSIC) NEGATIVE; B (MUSIC) NEGATIVE; C (MUSIC) NEGATIVE; D (MUSIC) POSITIVE; A (MUSIC) POSITIVE; B (MUSIC) POSITIVE; C (MUSIC) POSITIVE; D (MUSIC) ROUND; WIN (MUSIC) ROUND; NEUTRAL (MUSIC) ROUND; LOST (MUSIC) VOICE OVERS (79) AGAINST ALL ODDS (VO) ALLEYOOP (VO) AMAZING (VO) ARMING (VO) ASTOUNDING (VO) BALL; DROPPED (VO) BALL; HAVE YOU (VO) BALL; HAVE; ALLY (VO) BALL; HAVE; ENEMY (VO) BALL PLAY (VO) BALL; RESET (VO) BALL; STOLEN (VO) BALL; TAKEN (VO) BANGARANG (VO) BUCKLE UP (VO) BUFFALO (VO) BUSTED (VO) CHECKPOINT (VO) CRISPY (VO) CRISPY; EXTRA (VO) DEADEYE (VO) DEFEAT (VO) ELIMINATED: ALL PLAYERS (VO) ELIMINATED ENEMY TEAM (VO) EXTERMINATION (VO) FABULOUS (VO) FIRST POINT (VO) FLAG; CAPTURED (VO) FLAG; DROPPED: ALLY (VO) FLAG; DROPPED; ENEMY (VO) FLAG; HAVE; YOU (VO) FLAG; HAVE; ENEMY (VO) FLAG; RESET (VO) FLAG; RETURNED (VO) FLAG; TAKEN (VO) FLYIN' HIGH (VO) GAME OVER (VO) GOAL (VO) GOOOOAL (VO) GUNNER (VO) IMMORTAL (VO) INTERCEPTION (VO) INTERMISSION (VO) LAST MAN STANDING (VO) LEVEL UP (VO) LEAD; GAINED (VO) LEAD; LOST (VO) NAPOLEAN (VO) NEXT WINS; KILL (VO) NEXT WINS; POINT (VO) NEXT WINS; SCORE (VO) NICE (VO) ONE MAN ARMY (VO) OVERTIME (VO) PONIES (VO) REJECTION (VO) REQUISITION (VO) ROADTRIP (VO) ROUND; WON (VO) ROUND; LOST (VO) SCORED; ENEMY (VO) SCORED; TEAMMATE (VO) SELF DEFENSE (VO) SHARPSHOOTER (VO) SPECTATING (VO) STAY DOWN (VO) STEAMY (VO) STOLEN (VO) STRONGHOLD; CAPTURED (VO) STRONGHOLD; LOST (VO) SUDDEN DEATH (VO) TAKEN (VO) THAT WAS CLOSE (VO) TOTALLED (VO) TRIPLE THREAT (VO) VICTORY IMMINENT (VO) WEAPON PAD; 10S (VO) WEAPON PAD; READY (VO) WINGMAN (VO) </div> </div> ==Nav Marker: Change== Mark target objects with 'Nav Markers'. TARGETS get Markers. PLAYERS see Markers. <div class="spoiler"> '''PLAYERS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Change''': Add/Remove [INDENT]''If Add is chosen, the following menu items appear:'' Color: [Color List] Text: [[https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#rangeid=1530150992 https://docs.google.com/spreadsheets/d/1vNcpgv4Ime2no1cy8vLqUWzU08qXqqKq0TLRyjOR5yQ/edit#rangeid=1530150992]] Distance: 0-500 (Minimum distance players need to be from object for 'Nav Marker' to display.)[/INDENT] '''TARGETS''': [[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] </div> <div class="spoiler"> '''**WARNINGS:**''' * When removing navs, if none of your TARGETS exist when the script runs the game assumes to remove ALL navs. The fix is to be sure to include as the last mod "THIS[add]". * In Assault mode gametypes (not minigame with ball:surprise:nly object) adding scripted navs to any object that already has a nav can cause *ALL* Assault mode native navs to break, including "carrier spotted". This can also happen if you use nav remove before giving the next nav. Instead, script the object to quickly despawn and spawn again before giving it another nav, since despawned objects lose their navs. </div> ==Spawn Order: Change== Force players to 'Spawn' at a Spawn Point that matches the overriden 'Spawn Order'. <div class="spoiler"> [ATTACH=full]70744[/ATTACH] <span style="color: #a64dff">'''OBJECTS '''</span>[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''<span style="color: #a64dff">Source</span>''': '''<span style="color: #9999ff">Constant</span>''', '''<span style="color: #9999ff">Number</span>''', <span style="color: #9999ff">'''Object Count'''</span> or <span style="color: #9999ff">'''Game Value'''</span> [INDENT]<span style="color: rgb(153, 153, 255)">'''Constant '''</span> (Where to pull the value from. Use just the defined numeric Value.) '''<span style="color: #9999ff">Number</span>''' [INDENT]'''<span style="color: #00b359">Scope</span>''': <span style="color: #80ff00">Global</span>, <span style="color: #00ff00">Team </span>or <span style="color: #80ff00">Object</span> [INDENT]<span style="color: #00ff00">Global</span>: alpha-zulu <span style="color: rgb(0, 255, 0)">Team</span><span style="color: rgb(0, 179, 89)">''':'''</span> Team 1-8, alpha-zulu <span style="color: rgb(0, 255, 0)">Object</span> [INDENT]<span style="color: #b3b300">Object</span><span style="color: #00ff00">:</span> THIS/ACTIVATOR <span style="color: #b3b300">Number</span><span style="color: #00ff00">:</span> <span style="text-decoration: underline;">Team</span>, <span style="text-decoration: underline;">Player </span>or <span style="text-decoration: underline;">Object</span> [INDENT]<span style="text-decoration: underline;">Team</span>: alpha-zulu <span style="text-decoration: underline;">Player</span>: alpha-zulu ''(Number-Object-ACTIVATOR-Player-Channel can retrieve a player channel number)'' <span style="text-decoration: underline;">Object</span>: ''(Number-Object-THIS/ACTIVATOR-Object retrieves an object's only number)''[/INDENT][/INDENT][/INDENT][/INDENT] '''<span style="color: #9999ff">Object Count</span>''' [INDENT]'''<span style="color: #00b359">COUNT </span>'''[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]][/INDENT] '''<span style="color: #9999ff">Game Value</span>''' [INDENT]'''<span style="color: #00b359">Game Value</span>''': Team [score], Player [score], Health [current], Health [max], Health [ratio], Shields [current], Shields [max], Sheilds [ratio], Players [current], Players: Team [current], Teams [current], Spawn: Order, Rounds [max] ''(1 in Forge mode, -1 for unlimited rounds)'', Score To Win ''(0 in forge mode, -1 for unlimited rounds)'' '''<span style="color: #00b359">Object</span>''': THIS/ACTIVATOR[/INDENT][/INDENT] '''<span style="color: #a64dff">Randomize</span>''' (If On, Randomizes the value of the Number variable from 0 to the current value.) [INDENT][INDENT][/INDENT][/INDENT] [INDENT][INDENT]'''Notes on Game Value, Object: THIS/ACTIVATOR: '''[/INDENT] *Can't find a way to make a player be the THIS object *ACTIVATOR Seems to be the only way to get Player data like score, health, order, etc *Boundary Check/Interacted/Number Check put players into ACTIVATOR *Number Check puts the player into ACTIVATOR for Game Value & Object Sources [/INDENT] </div> <div class="spoiler"> *Spawn order does not reset on rounds. *Spawn order prioritizes the lowest spawn order first. This will even over write spawn zone influence. *If there are no valid spawns of an order the next order is then looked for. *Any valid spawn is a spawn that does not have something physically blocking the spawn. This does not include line of sight. *For a spawn to be used during a match it must be valid when the map loads. If it is blocked before the match starts then becomes unblocked it will still remain invalid. *With players, it seems only the default player SpOrder of 0 has the "choose lowest available SpOrder" behavior. Once player SpOrder is set, they only respawn at plates with that specific SpOrder. Default behavior won't return once SpOrder is set. In Forge, player SpOrder gets reset to default when they can't respawn to a specific SpOrder. That makes it hard to properly test how it'll really work in customs. *The default player SpOrder reads "255", but changing it to 255 doesn't bring back the default behavior. We can write signed 16-bit values (-32768 to 32767) to a SpOrder, but they get interpreted as unsigned 8-bit (0 to 255) values... -1 becomes 255 (not the default though) and 256 becomes 0. </div> ==Label: Change== Add or remove a Game Mode 'Label' from the target OBJECTS. <div class="spoiler"> '''OBJECTS '''[[https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list https://www.forgehub.com/wiki/targeting-mods/#mods-and-descriptions-list]] '''Change''': Add or Remove </div> <div class="spoiler"> When Label:Change is used on an object, that object will load slightly crooked in custom games. On some objects this won't be obvious, but on several floor pieces it causes the floor to not be smooth. This happens when the pieces load into the game, even if the script to change the label hasn't ran yet. If you remove the script, the pieces will load in correctly. HOWEVER, if you add a label directly to the piece, it will never load in correctly again, and must be deleted and started with a fresh piece. See more information in [https://www.forgehub.com/wiki/scripting/#general-script-gotchas https://www.forgehub.com/wiki/scripting/#general-script-gotchas]. </div>
Summary:
Please note that all contributions to [DEV] Forgehub Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
DEV Forgehub Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Games
Discussion
English
Views
Read
Edit
View history
More
Search
Games:
Halo 2: Anniversary
Forge
Guides & Tutorials
Frame Rate
Static Weapon Timers
Scripting
Sandbox
Vehicles
Weapons
Halo 3
Forge
Forge Canvases
UI & Controls
Spawning
Match Making
Official Maps
Community Maps
Sandbox
Weapons
Equipment
Vehicles
Halo 4
Forge
Forge Canvases
Lighting
UI & Controls
Spawning
Matchmaking
Official Maps
Community Maps
Sandbox
Game Modes
Weapons
Armor Abilities
Vehicles
Ensuring Level & Game Mode Compatibility
Halo 5: Guardians
Forge
Audio
FX Objects
Forge Canvases
Lighting
Scripting
1. Conditions
2. Actions
3. Mod Selection Filters
4. 'Numbers'
5. Scripting Gameplay Elements
6. Resources for Scripters
7. Video Tutorials
UI & Controls
Spawning
Matchmaking
Official Maps
Community Maps
Action Sack
Big Team Battle
Breakout
Community Doubles
Community Slayer
Extermination
Ghost in the Shell
Grifball
Halo 1 Anniversary Throwback Playlist
Halo 3 Classic Throwback
Halo Championship Series (HCS)
Head to Head
Husky Raid
Infection
Mythic Arena
ODST Slayer
Roaming King
Social Slayer
Sandbox
Weapons
Spartan Abilities
Vehicles
Halo: Infinite
Forge
Audio
FX Objects
Forge Canvases
Lighting
Scripting
UI & Controls
Spawning
Matchmaking
Official Maps
Community Maps
Sandbox
Game Modes
Weapons
Equipment
Vehicles
Custom Game Editor Options
Halo: Reach
Forge
Forge Canvases
Object Tagging
Tagging Chart
Unorthodox Tagging
UI & Controls
Spawning
Sandbox
Game Modes
Weapons
Armor Abilities
Vehicles
Visual Aides for each Game Mode
ForgeHub:
Game & Level Design
Level Design
Multiplayer Level Design Fundamentals
Games
Support
Getting Help
Wiki Index
Tools
What links here
Related changes
Special pages
Page information