high, im just making an rpg and want my heros to pick up items until they're using a ability "pick up"
but it dont works right sometimes the hero stays there for 3 or 5 seconds and is doing nothing as playing his stand animation...
it also works if he only have to pick up only 1 item but if there are more items it leaks
trigger:
HeroRed, HeroBlue,... = are variables for heros
GrabRed, GrabBlue,... = are variables for areas around the unit (the areas will move with the unit by another trigger every 1 second)
i hope you can help me, thx cryze
but it dont works right sometimes the hero stays there for 3 or 5 seconds and is doing nothing as playing his stand animation...
it also works if he only have to pick up only 1 item but if there are more items it leaks
trigger:
HeroRed, HeroBlue,... = are variables for heros
GrabRed, GrabBlue,... = are variables for areas around the unit (the areas will move with the unit by another trigger every 1 second)
-
Grab
-
Ereignisse
-
Einheit - A unit Startet den Effekt einer Fähigkeit
-
-
Bedingungen
-
(Ability being cast) Gleich Aufheben
-
-
Aktionen
-
Einheit - Order (Triggering unit) to Stoppen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Owner of (Casting unit)) Gleich Spieler 1 (Rot)
-
-
'THEN'-Aktionen
-
Einheit - Order HeroRed to Rechtsklick (Random item in GrabRED <gen>)
-
-
'ELSE'-Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Owner of (Casting unit)) Gleich Spieler 2 (Blau)
-
-
'THEN'-Aktionen
-
Einheit - Order HeroBlue to Rechtsklick (Random item in GrabBlue <gen>)
-
-
'ELSE'-Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Owner of (Casting unit)) Gleich Spieler 3 (Blaugrau)
-
-
'THEN'-Aktionen
-
Einheit - Order HeroTeal to Rechtsklick (Random item in GrabTeal <gen>)
-
-
'ELSE'-Aktionen
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Bedingungen
-
(Owner of (Casting unit)) Gleich Spieler 4 (Lila)
-
-
'THEN'-Aktionen
-
Einheit - Order HeroPurple to Rechtsklick (Random item in GrabPurple <gen>)
-
-
'ELSE'-Aktionen
-
-
-
-
-
-
-
-
-
i hope you can help me, thx cryze