Below is the current trigger that is causing crashes after a certain time.
Any suggestions whats wrong with it? Tried to solve it on our own but it didn't work out.
Oh and: "Gleich" means "Same to", "Schleifen" means "Loop" and "Gegenstand" means "Item".
Since I really don't know if this trigger can be set to work again I also requested one under Requests in case someone feels like submitting one.
I'm thankful for any help.
Any suggestions whats wrong with it? Tried to solve it on our own but it didn't work out.
Oh and: "Gleich" means "Same to", "Schleifen" means "Loop" and "Gegenstand" means "Item".
-
GoldInit
-
Ereignisse
- Zeit - Every 0.50 seconds of game time
- Bedingungen
-
Aktionen
- Set Map = (Entire map)
-
Gegenstand - Pick every item in Map 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
- (Item-type of (Picked item)) Gleich |cffffcc001 Gold|r
- (Item-type of (Picked item)) Gleich |cffffcc002 Gold|r
- (Item-type of (Picked item)) Gleich |cffffcc003 Gold|r
- (Item-type of (Picked item)) Gleich |cffffcc004 Gold|r
- (Item-type of (Picked item)) Gleich |cffffcc005 Gold|r
- (Item-type of (Picked item)) Gleich |cffffcc006 Gold|r
- (Item-type of (Picked item)) Gleich |cffffcc007 Gold|r
- (Item-type of (Picked item)) Gleich |cffffcc008 Gold|r
- (Item-type of (Picked item)) Gleich |cffffcc009 Gold|r
-
Bedingungen
-
Or - Any (Conditions) are true
-
'THEN'-Aktionen
- Set Gold = (Picked item)
- Set GoldPoint = (Position of Gold)
- Set GoldDebug = (Center of GoldDebug <gen>)
- Set GoldPickupRadius = (Units within 99.00 of (Position of Gold))
- Auslöser - Run GoldPickup <gen> (ignoring conditions)
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Schleifen - Aktionen
- Custom script: call RemoveRect(udg_Map)
-
Ereignisse
-
GoldPickup
- Ereignisse
- Bedingungen
-
Aktionen
-
Einheitengruppe - Pick every unit in GoldPickupRadius and do (Actions)
-
Schleifen - Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
- ((Picked unit) Gleich HeroRed) or ((Picked unit) Gleich HeroBlue)
-
'THEN'-Aktionen
- Set PickingUnit = (Picked unit)
- Gegenstand - Move Gold to GoldDebug
- Held - Give Gold to PickingUnit
- 'ELSE'-Aktionen
-
'IF'-Bedingungen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Schleifen - Aktionen
-
Einheitengruppe - Pick every unit in GoldPickupRadius and do (Actions)
-
GoldDebug
-
Ereignisse
- Einheit - A unit Erwirbt einen Gegenstand
-
Bedingungen
-
Or - Any (Conditions) are true
-
Bedingungen
- (Item-type of (Item being manipulated)) Gleich |cffffcc001 Gold|r
- (Item-type of (Item being manipulated)) Gleich |cffffcc002 Gold|r
- (Item-type of (Item being manipulated)) Gleich |cffffcc003 Gold|r
- (Item-type of (Item being manipulated)) Gleich |cffffcc004 Gold|r
- (Item-type of (Item being manipulated)) Gleich |cffffcc005 Gold|r
- (Item-type of (Item being manipulated)) Gleich |cffffcc006 Gold|r
- (Item-type of (Item being manipulated)) Gleich |cffffcc007 Gold|r
- (Item-type of (Item being manipulated)) Gleich |cffffcc008 Gold|r
- (Item-type of (Item being manipulated)) Gleich |cffffcc009 Gold|r
-
Bedingungen
-
Or - Any (Conditions) are true
-
Aktionen
- Gegenstand - Move Gold to GoldDebug
- Custom script: call RemoveLocation(udg_GoldPoint)
- Custom script: call RemoveLocation(udg_GoldDebug)
- Custom script: call DestroyGroup(udg_GoldPickupRadius)
-
Ereignisse
I'm thankful for any help.
Last edited: