Region stat multiplier

so whenever you step in a region it gives 2x more (whatever attribute for example punches)

1 Like

Try doing something like an every second script (or every engine tick, haven’t tested it yet so may be laggy)
For all units in a unit group → all units in region → (your region name here)
Right under the “do”, input this:
Set player attribute →
( For the player attribute script, use the constant of whatever multiplier you want to be the attribute)
( For the player, do “Owner of a unit” and then do “selected unit (from the loop)”)
( Then just type in 2 for the “number” input.)
Hopefully you aren’t using a consumable bonus for your punches, otherwise I would have to type alot more.

I forgot to mention : if you want to make your multiplier reset when you leave, just make another script.
For triggers, do “when unit leaves region.”
Ring up an “if/else/then”
Do region comparison and pick ONE of the "last triggering region"s. Put your region name in the variable.
Go into the “then” section and set owner of last triggering unit’s multiplier attribute to 1