HG-Bonfire
New Member
- Reaction score
- 22
OK i decided to try and make a Puppeteer hero which I had thought of on this thread , and his Ulti spell can take control of 10 units around the hero aslong as he keeps channeling. Heres the triggers I used for it.
and
The problem is that the trigger is only taking over units belonging to player 2, even though I have put in several more enemy players of the Puppeteer. Anybody see whats wrong?
Code:
Pulling Strings
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Pulling Strings
(Unit-type of (Casting unit)) Equal to Puppeteer
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Pulling Strings for (Casting unit)) Equal to 1
Then - Actions
Set Puppeteer = (Casting unit)
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Player Group - Pick every player in (All enemies of (Owner of Puppeteer)) and do (Actions)
Loop - Actions
Set Units_under_Control[(Integer A)] = (Random unit from (Units within 1000.00 of (Position of Puppeteer) matching ((((Matching unit) is A Hero) Equal to False) and ((Owner of (Matching unit)) Equal to (Picked player)))))
Lightning - Create a Magic Leash lightning effect from source (Position of Puppeteer) to target (Position of Units_under_Control[(Integer A)])
Set Lightning_Effect[(Integer A)] = (Last created lightning effect)
Trigger - Turn on Pulling Strings Lightning Effect <gen>
Unit - Change ownership of Units_under_Control[(Integer A)] to (Owner of (Casting unit)) and Retain color
Else - Actions
Do nothing
and
Code:
Pulling Strings Lightning Effect
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Lightning - Move Lightning_Effect[1] to source (Position of Puppeteer) and target (Position of Units_under_Control[1])
Lightning - Move Lightning_Effect[2] to source (Position of Puppeteer) and target (Position of Units_under_Control[2])
Lightning - Move Lightning_Effect[3] to source (Position of Puppeteer) and target (Position of Units_under_Control[3])
Lightning - Move Lightning_Effect[4] to source (Position of Puppeteer) and target (Position of Units_under_Control[4])
Lightning - Move Lightning_Effect[5] to source (Position of Puppeteer) and target (Position of Units_under_Control[5])
Lightning - Move Lightning_Effect[6] to source (Position of Puppeteer) and target (Position of Units_under_Control[6])
Lightning - Move Lightning_Effect[7] to source (Position of Puppeteer) and target (Position of Units_under_Control[7])
Lightning - Move Lightning_Effect[8] to source (Position of Puppeteer) and target (Position of Units_under_Control[8])
Lightning - Move Lightning_Effect[9] to source (Position of Puppeteer) and target (Position of Units_under_Control[9])
Lightning - Move Lightning_Effect[10] to source (Position of Puppeteer) and target (Position of Units_under_Control[10])
The problem is that the trigger is only taking over units belonging to player 2, even though I have put in several more enemy players of the Puppeteer. Anybody see whats wrong?