- Joined
- Sep 4, 2007
- Messages
- 2,826
These building(Town and City) contains items and I would like to know how I can force the replacing building to stay at the same spot regardless whatever units stand in the way.
How can I do it?
How can I do it?
-
Villages
-
Events
-
Unit - A unit Finishes an upgrade
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to |Cffffff00Town
-
-
Then - Actions
-
Set TempPoint = (Position of (Triggering unit))
-
Unit - Replace (Triggering unit) with a |Cffffff00Town using The old unit's relative life and mana
-
Custom script: call RemoveLocation(udg_TempPoint)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to |Cff00ff00City
-
-
Then - Actions
-
Set TempPoint = (Position of (Triggering unit))
-
Unit - Replace (Triggering unit) with a |Cff00ff00City using The old unit's relative life and mana
-
Custom script: call RemoveLocation(udg_TempPoint)
-
-
Else - Actions
-
-
-