- Joined
- Jun 12, 2007
- Messages
- 1,261
This lil bugger wont work, my question is what did I do wrong.
The idea is that at start you have a wisp that can buy one hero from one of 4 taverns (4 for each team). Once bought this hero goes to his zone and the wisp get's killed.
-
Unit Trained
-
Events
- Unit - A unit Sells a unit
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Tavern
- (Unit-type of (Selling unit)) Equal to Tavern
- (Unit-type of (Selling unit)) Equal to Tavern
- (Unit-type of (Selling unit)) Equal to Tavern
-
Then - Actions
- Unit - Kill (Buying unit)
- Set TempLocHS = (Center of Ressurect Light <gen>)
- Camera - Pan camera for (Owner of (Buying unit)) to TempLocHS over 0.00 seconds
- Unit - Move (Sold unit) instantly to TempLocHS
- Special Effect - Create a special effect at TempLocHS using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_TempLocHS)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Tavern
- (Unit-type of (Selling unit)) Equal to Tavern
- (Unit-type of (Selling unit)) Equal to Tavern
- (Unit-type of (Selling unit)) Equal to Tavern
-
Then - Actions
- Unit - Kill (Buying unit)
- Set TempLocHS = (Center of Ressurect Dark <gen>)
- Camera - Pan camera for (Owner of (Buying unit)) to TempLocHS over 0.00 seconds
- Unit - Move (Sold unit) instantly to TempLocHS
- Special Effect - Create a special effect at TempLocHS using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_TempLocHS)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
The idea is that at start you have a wisp that can buy one hero from one of 4 taverns (4 for each team). Once bought this hero goes to his zone and the wisp get's killed.