Editing
Games:Halo 5: Guardians/Forge/Scripting/4. 'Numbers'
(section)
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!
==Number Change Action== Number: Change can perform 7 mathematical operations on the 4 types of scoped numbers. - When selecting the VARIABLE number to change, there's a NUMBER button for choosing action target filters to choose a specific object, player, or team <span style="text-size: 15px">'''Operations'''</span> *Set: Assign the Source to the VARIABLE, then add the Value setting *Increment: Add the Source to the VARIABLE's current value, then add the Value setting *Decrement: Subtract the Source from the VARIABLE's current value, then add the Value setting *Multiply: Multiply the Source with the VARIABLE's current value, then add the Value setting *Divide: Divide the Source by the VARIABLE's current value, then add the Value setting *Remainder: Divide the Source by the VARIABLE's current value but return the remainder (Note: if the number is negative, then its remainder will be negative. The sign of the divisor is ignored.) *Random: Assign a random number in a range to the VARIABLE <span style="text-size: 15px">'''Source Setting'''</span> *The numbers or values used (in the Source property) for the math operation to change the VARIABLE do NOT have an action target filter option (except Object Count), so the only options are the THIS or ACTIVATOR (if available) object's number *Global & Team scope numbers can be directly specified under Source *For Source setting's Number or Game Value options, the THIS object (which the script is attached to) is the default *When the Message Received, Power Check, Interacted, Number Check, or Boundary Check conditions are selected, the Object setting becomes available under Source which has the ACTIVATOR options as well as the THIS option *ACTIVATOR can be powerful since it can return a Number or Game Value for objects/players that the script isn't attached to (remote object selection) *Note that players can't have scripts attached so ''this is the only way to read their Numbers or Game Values'' *Source: Number: Object has the Object, Player and Team scope options which lets you select a number for the THIS (or sometimes ACTIVATOR) object, so a number can be read and used for a specific object, player, or the team setting of the object (the channel option appears for player or team) <span style="text-size: 15px">'''Tips'''</span> *The Remainder Operation in Number Change is a good way to have a repeating sequence of numbers like Remainder(Constant 4) gives you 0, 1, 2, 3, 0, 1, 2... Use Number Change Increment Constant 1 followed by Number Change Remainder 4
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