unknown666
New Member
- Reaction score
- 5
Hey guys
I finally completed my main spell and it works fully for player 1
now when player 2 is casting the spell the first 2 triggers are working fine.
but now my loop doesn't pause the unit of player 2 blue.
It doesn't mess it up with the unit of player 1 because when player 1 unit is unpaused, and player 2 stops casting the spell player 1 keeps unpaused.
If needed I'll add my map
Triggers:
^--- spawn trigger
______________
| Spell triggers |
I finally completed my main spell and it works fully for player 1
now when player 2 is casting the spell the first 2 triggers are working fine.
but now my loop doesn't pause the unit of player 2 blue.
It doesn't mess it up with the unit of player 1 because when player 1 unit is unpaused, and player 2 stops casting the spell player 1 keeps unpaused.
If needed I'll add my map
Triggers:
Trigger:
- Events
- Unit - A unit enters BearSelect <gen>
^--- spawn trigger
______________
| Spell triggers |
Trigger:
- Casting
- Events
- Unit - A unit Begins channeling an ability
- Conditions
- (Ability being cast) Equal to Control Puppets
- Actions
- Set UnitCaster = (Triggering unit)
- Unit - Order UnitCaster to Night Elf Demon Hunter - Mana Burn SummonedUnit[(Player number of (Owner of UnitCaster))]
- Set TempUnit = SummonedUnit[(Player number of (Owner of UnitCaster))]
- Unit - Unpause TempUnit
- Item - Create Control ON at (Position of TempUnit)
- Item - Make (Last created item) Undroppable
- Hero - Give (Last created item) to TempUnit
- Events
Trigger:
- Casting Copy
- Events
- Unit - A unit Stops casting an ability
- Conditions
- (Ability being cast) Equal to Pet Link
- Actions
- Set TempUnit = SummonedUnit[(Player number of (Owner of (Triggering unit)))]
- Unit - Unpause TempUnit
- Item - Remove (Item carried by TempUnit of type Control ON)
- Events
Trigger:
- LoopCheckPause
- Events
- Time - Every 0.15 seconds of game time
- Conditions
- Actions
- Set TempGroup = (Units in (Playable map area) owned by (Owner of SummonedUnit[(Player number of (Owner of (Picked unit)))]))
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Set TempUnit = SummonedUnit[(Player number of (Owner of (Picked unit)))]
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item-type of (Item carried by TempUnit in slot 1)) Equal to Control ON
- Then - Actions
- Unit - Unpause TempUnit
- Custom script: call DestroyGroup (udg_TempGroup)
- Else - Actions
- Unit - Pause TempUnit
- Custom script: call DestroyGroup (udg_TempGroup)
- If - Conditions
- Loop - Actions
- Set TempUnit = SummonedUnit[(Player number of (Owner of (Picked unit)))]
- Set TempGroup = (Units in (Playable map area) owned by (Owner of SummonedUnit[(Player number of (Owner of (Picked unit)))]))
- Events