- Joined
- Apr 26, 2008
- Messages
- 830
Alright guys i made this spell but the first part works, but the second, when picking units around an area of 1300 and removing them doesn't work.
here is the trigger:
here is the trigger:
-
Sunny
-
Ereignisse
- Einheit - A unit Startet den Effekt einer Fähigkeit
-
Bedingungen
- (Ability being cast) Gleich Sunny Day
-
Aktionen
- Set SD_CasterPoint = (Position of (Triggering unit))
- Einheit - Create 1 SunnyDay for (Owner of (Triggering unit)) at SD_CasterPoint facing Vorgabe für Gebäude-Ausrichtung degrees
- Einheit - Add a 30.00 second Standard expiration timer to (Last created unit)
- -------- Debug --------
- Einheit - Order (Triggering unit) to Stoppen
- -------- Remove Other Present Dummies --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
Or - Any (Conditions) are true
-
Bedingungen
- ((Triggering unit) has buff Sunny Day ) Gleich True
- ((Triggering unit) has buff Rain Dance ) Gleich True
-
Bedingungen
-
Or - Any (Conditions) are true
-
'THEN'-Aktionen
-
Einheitengruppe - Pick every unit in (Units within 1300.00 of SD_CasterPoint matching (((Unit-type of (Matching unit)) Gleich SunnyDay) or ((Unit-type of (Matching unit)) Gleich RainDance))) and do (Actions)
-
Schleifen - Aktionen
- Einheit - Remove (Picked unit) from the game
-
Schleifen - Aktionen
- Custom script: call DestroyGroup(bj_lastCreatedGroup)
- Custom script: call RemoveLocation (udg_SD_CasterPoint)
-
Einheitengruppe - Pick every unit in (Units within 1300.00 of SD_CasterPoint matching (((Unit-type of (Matching unit)) Gleich SunnyDay) or ((Unit-type of (Matching unit)) Gleich RainDance))) and do (Actions)
-
'ELSE'-Aktionen
- Custom script: call RemoveLocation (udg_SD_CasterPoint)
-
'IF'-Bedingungen
-
Ereignisse
-
Sunny
-
Ereignisse
- Einheit - A unit Startet den Effekt einer Fähigkeit
-
Bedingungen
- (Ability being cast) Gleich Sunny Day
-
Aktionen
- Set SD_CasterPoint = (Position of (Triggering unit))
- Einheit - Create 1 SunnyDay for (Owner of (Triggering unit)) at SD_CasterPoint facing Vorgabe für Gebäude-Ausrichtung degrees
- Einheit - Add a 30.00 second Standard expiration timer to (Last created unit)
- -------- Debug --------
- Einheit - Order (Triggering unit) to Stoppen
- -------- Remove Other Present Dummies --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
Or - Any (Conditions) are true
-
Bedingungen
- ((Triggering unit) has buff Sunny Day ) Gleich True
- ((Triggering unit) has buff Rain Dance ) Gleich True
-
Bedingungen
-
Or - Any (Conditions) are true
-
'THEN'-Aktionen
-
Einheitengruppe - Pick every unit in (Units within 1300.00 of SD_CasterPoint) and do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
Or - Any (Conditions) are true
-
Bedingungen
- (Unit-type of (Picked unit)) Gleich SunnyDay
- (Unit-type of (Picked unit)) Gleich RainDance
-
Bedingungen
-
Or - Any (Conditions) are true
-
'THEN'-Aktionen
- Einheit - Remove (Picked unit) from the game
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Schleifen - Aktionen
- Custom script: call DestroyGroup(bj_lastCreatedGroup)
- Custom script: call RemoveLocation (udg_SD_CasterPoint)
-
Einheitengruppe - Pick every unit in (Units within 1300.00 of SD_CasterPoint) and do (Actions)
-
'ELSE'-Aktionen
- Custom script: call RemoveLocation (udg_SD_CasterPoint)
-
'IF'-Bedingungen
-
Ereignisse
Last edited: