Sorry for the weird topic post, I couldn't think of a more straight-forward way to get to my question
I'm working on a Wintermaul Wars-esque TD and I'd like to implement a trigger system where if someone does not summon creeps, the enemy side gains a portion of their income. It'll prevent people from amassing cash for upgrades and other nifty bonuses.
Here's kind of what I was thinking, but I'm not sure if the trigger system would bork this up or not.
Basically, will a Turn off action stop a Run action from taking place, with conditions checked?
Oh, and I would love if there was a way to comment out code in the WC3 tag, the ;; was my attempt at doing so.
As always, thanks for any help with this
I'm working on a Wintermaul Wars-esque TD and I'd like to implement a trigger system where if someone does not summon creeps, the enemy side gains a portion of their income. It'll prevent people from amassing cash for upgrades and other nifty bonuses.
Here's kind of what I was thinking, but I'm not sure if the trigger system would bork this up or not.
Trigger:
- IncomeTimer
- Events
- Every 25.00 seconds of game time
- Conditions
- Actions
- Player - Set Player 1 (red) Current Gold to ((Player 1 (Red) Current gold) + RedIncome_Int)
- Player - Set Player 2 (Blue) Current Gold to ((Player 2 (Blue) Current gold) + BlueIncome_Int)
- Run CreepPenalty_Red (checking conditions)
- ;;There would be one of these for each player in the game
- Wait 1.00 Seconds
- Turn on CreepPenalty_Red
- Events
Trigger:
- CreepPenalty_Red
- Events
- Conditions
- Actions
- Player - Set Player 2 (Blue) Current gold to ((Player 2 (Blue) Current gold) + (RedIncome_Int / 2))
Trigger:
- CreepSpawn_Red
- Events
- A unit enters region RedCreeps
- Conditions
- Actions
- Turn off CreepPenalty_Red
- ;;other creep spawning actions here, unrelated to question
- Events
Basically, will a Turn off action stop a Run action from taking place, with conditions checked?
Oh, and I would love if there was a way to comment out code in the WC3 tag, the ;; was my attempt at doing so.
As always, thanks for any help with this