- Joined
- May 8, 2016
- Messages
- 112
This selection system is that one of circle of power, where an unit enters in and select the hero, i want to desactive after the unit enters to don't replicate heroes.
-
Thief Region
-
Events
-
Unit - A unit enters Thief Region <gen>
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Spirit of Warrior
-
-
Actions
-
Set ChooseRegionUnit = (Random point in SHS_Conf_Region_Start)
-
Unit - Create 1 Thief for (Owner of (Triggering unit)) at ChooseRegionUnit facing Default building facing degrees
-
Camera - Lock camera target for (Owner of (Triggering unit)) to (Last created unit), offset by (0.00, 0.00) using Default rotation
-
Unit - Kill (Triggering unit)
-
Unit - Remove (Triggering unit) from the game
-
Selection - Clear selection for (Owner of (Triggering unit))
-
Selection - Add (Last created unit) to selection for (Owner of (Sold unit))
-
Selection - Select (Last created unit) for (Owner of (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PermInvBolo Equal to True
-
-
Then - Actions
-
Unit - Add Ghost to (Last created unit)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RequiredForCheat Equal to True
-
-
Then - Actions
-
Hero - Create More HP Cheat and give it to (Last created unit)
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_ChooseRegionUnit)
-
-