- Joined
- Jul 13, 2006
- Messages
- 140
Now, for some reason, the picking every units of type and do actions part of this trigger doesn't work.
-
Untitled Trigger 001
-
Events
-
Time - Every 60.00 seconds of game time
-
-
Conditions
-
Actions
-
Sound - Play GoodJob <gen>
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Region) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has an item of type Unstable) Equal to True
-
-
Then - Actions
-
Set Num = (Random integer number between 0 and 2)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Num Equal to 2
-
-
Then - Actions
-
Set AMPoint = (Position of (Picked unit))
-
Unit - Create 3 Footman for Neutral Hostile at AMPoint facing Default building facing degrees
-
Unit - Create 3 Rifleman for Neutral Hostile at AMPoint facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_AMPoint)
-
-
Else - Actions
-
Do nothing
-
-
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
-
region
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to Hostile Region
-
(Unit-type of (Target unit of ability being cast)) Equal to Region
-
((Owner of (Casting unit)) Current gold) Equal to (Min(20, 0))
-
-
-
-
Actions
-
Item - Remove (Item carried by (Target unit of ability being cast) of type Hostile)
-
Item - Remove (Item carried by (Target unit of ability being cast) of type Friendly)
-
Item - Remove (Item carried by (Target unit of ability being cast) of type Neutral)
-
Set AMPoint = (Position of (Target unit of ability being cast))
-
Item - Create Hostile at AMPoint
-
Hero - Give (Last created item) to (Target unit of ability being cast)
-
Player - Add -20 to (Owner of (Casting unit)) Current gold
-
Custom script: call RemoveLocation(udg_AMPoint)
-
-