TooSlowFcker
New Member
- Reaction score
- 10
hey i want this dummy unit to cast this spell on the guy who rescues everone, but it doesn't work >.<
heres the trigger
second trigger
heres the trigger
Code:
Untitled Trigger 003 Copy
Events
Unit - A unit enters Starting Pointss <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to YOUR SLAVE BIATCH
(Number of units in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Wisp))) Greater than or equal to 1
Actions
Set red = (Number of players in PlayerGroupJail)
Unit Group - Pick every unit in wispunitgroup and do (Unit - Kill (Picked unit))
Unit - Create 1 dummy unit 3000 for (Triggering player) at (Center of Starting Pointss <gen>) facing Default building facing degrees
Unit - Order (Last created unit) to Orc Shaman - Lightning Shield (Triggering unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Player Group - Pick every player in PlayerGroupJail and do (Actions)
Loop - Actions
Player - Add 25 to (Owner of (Triggering unit)) Current gold
Unit - Create 1 YOUR SLAVE BIATCH for (Picked player) at (Random point in Starting Pointss <gen>) facing Default building facing degrees
Hero - Create divine potion and give it to (Last created unit)
Set item = (Last created item)
Hero - Order (Last created unit) to use item
Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
Player Group - Pick every player in PlayerGroupJail and do (Player Group - Remove (Picked player) from PlayerGroupJail)
Camera - Pan camera for (Owner of (Last created unit)) to (Position of (Last created unit)) over 1.00 seconds
For each (Integer A) from 1 to red, do (Game - Display to (All players) the text: |c00ff03032|r|c00ff...)
Code:
Untitled Trigger 028
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Lightning Shield 2000
Actions
Unit - Make (Targeted unit) Invulnerable
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\NightElf\Rejuvenation\RejuvenationTarget.mdl
Wait 10.00 seconds
Unit - Make (Targeted unit) Vulnerable