This is my idea. I create an upgrade in the data editor which simply add 1 attack and 1hp.
Would this work for all unit types? I will try and report back.
Centre Buffs
Events
Timer - Every 10.0 seconds of Real Time
Local Variables
Conditions
((Triggering unit) is in Bottom hill) == true
Actions
Tech Tree - Add 1 to Upgrade upgrade for player 1
What I would do is to make a behavior (Buff) that stacks, and make that behavior make the modifications you need. Then every 10 seconds, you add one of that behavior to the units inside the region
What Sbeier said.
I wouldn't make a timer, I'd go a Game - Periodic Event (10 seconds) for the event.
Don't put a condition.
Inside your actions, write a Pick Each Unit in Region action, specifying your region.
Then do Add Behavior 1 to <Picked Unit> of your new buff.
Centre Buffs
Events
Timer - Every 10.0 seconds of Real Time
Local Variables
Conditions
Actions
Unit Group - Pick each unit in (Any units in Bottom hill owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Add 1 Central Health Behaviour to (Unit attached to Bottom hill) from (Triggering unit)
I'm trying to figure out what should be a very simple trigger. I can't find an action which simply increases attack of units or health.
The closest i've come is "set unit custom value" but I can't find the custom value you set in functions.
Timer - Every 10.0 seconds of Real Time
Can anyone help?
This is my idea. I create an upgrade in the data editor which simply add 1 attack and 1hp.
Would this work for all unit types? I will try and report back.
Centre Buffs
Events
Timer - Every 10.0 seconds of Real Time
Local Variables
Conditions
((Triggering unit) is in Bottom hill) == true
Actions
Tech Tree - Add 1 to Upgrade upgrade for player 1
What I would do is to make a behavior (Buff) that stacks, and make that behavior make the modifications you need. Then every 10 seconds, you add one of that behavior to the units inside the region
I'd go with what Sbeier said. Using an upgrade for that event would have you fill fields for each upgrades a unit can.
What Sbeier said.
I wouldn't make a timer, I'd go a Game - Periodic Event (10 seconds) for the event.
Don't put a condition.
Inside your actions, write a Pick Each Unit in Region action, specifying your region.
Then do Add Behavior 1 to <Picked Unit> of your new buff.
Ok hopefully this will work.
Centre Buffs
Events
Timer - Every 10.0 seconds of Real Time
Local Variables
Conditions
Actions
Unit Group - Pick each unit in (Any units in Bottom hill owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Add 1 Central Health Behaviour to (Unit attached to Bottom hill) from (Triggering unit)
Hmm, it came up with an error"unit has no matching event"
Ignore this :P
This was my problem;
Unit - Add 1 Central Health Behaviour to (Unit attached to Bottom hill) from (Triggering unit)
I changed to;
Unit - Add 1 Central Health Behaviour to (Picked unit) from (Picked unit)
Thanks for the help. Hopefully this is another thread others can use to create regions to apply attack/health periodically.