KvickaN
TH.net Regular
- Reaction score
- 24
Code:
Reinforcement Part1
Events
Unit - A unit Begins casting an ability
Conditions
Actions
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Ability being cast) Equal to Reinforcement ) and ((Owner of (Casting unit)) Equal to (Player((Integer A))))
Then - Actions
Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
Unit - Hide (Casting unit)
Set FarmUnit[(Player number of (Owner of (Casting unit)))] = (Casting unit)
Unit - Create 1 Reinforcement Farm for (Owner of (Casting unit)) at ((Owner of (Casting unit)) start location) facing Default building facing degrees
Unit - Add a 30.00 second Generic expiration timer to (Last created unit)
Countdown Timer - Start Timer[(Player number of (Owner of (Casting unit)))] as a One-shot timer that will expire in 30.00 seconds
Else - Actions
Code:
Spawn Control Red
Events
Unit - A unit Begins casting an ability
Conditions
Actions
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Ability being cast) Equal to Spawn Control ) and ((Owner of (Casting unit)) Equal to Player 1 (Red))
Then - Actions
Game - Display to (All players) the text: RED USED SPAWN CONT...
Special Effect - Create a special effect at (Position of (Casting unit)) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Trigger - Turn off Give Sheeps To Killer <gen>
Trigger - Turn off Spawn Sheeps <gen>
Trigger - Turn on RED Give Sheeps To Killer SPAWN CONTROL <gen>
Wait 20.00 seconds
Trigger - Turn off RED Give Sheeps To Killer SPAWN CONTROL <gen>
Trigger - Turn on Give Sheeps To Killer <gen>
Trigger - Turn on Spawn Sheeps <gen>
Game - Display to (All players) the text: 20 Seconds have pas...
Else - Actions
When I use "Spawn Control" the "Reinforcement" also go off. How do I solve this?