TooSlowFcker
New Member
- Reaction score
- 10
also, when the player enters the region, he doesn't get money for each person he saves
please help me
[
it's really long
i want it so when they are revived, they're invulnerable, so i gave them a potion to use, but they dont use it
please help me
[
Code:
Untitled Trigger 003
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))
Player Group - Pick every player in PlayerGroupJail and do (Unit - Create 1 YOUR SLAVE BIATCH for (Picked player) at (Random point in Starting Pointss <gen>) facing Default building facing degrees)
Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
For each (Integer A) from 1 to red, do (Player - Add 25 to (Triggering player) Current gold)
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...)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Last created unit)) Equal to YOUR SLAVE BIATCH
Then - Actions
Hero - Create divine potion and give it to (Triggering unit)
Hero - Create divine potion and give it to (Last created unit)
Set item = (Last created item)
Hero - Order (Last created unit) to use item
Hero - Order (Triggering unit) to use item
Else - Actions
i want it so when they are revived, they're invulnerable, so i gave them a potion to use, but they dont use it