why this trigger doesnt revive the hero ? Oo

Happy

Well-Known Member
Reaction score
71
SOLVED



hey guys...

i made the following trigger to revive dying heroes but although it shows the test textes it doesnt revive the hero Oo

heres the trigger :

Trigger:
  • revival
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to (==) True
    • Actions
      • Game - Display to (All players) the text: 1
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • 'IF'-Conditions
            • Multiple ConditionsAnd - All (Conditions) are true
              • Conditions
                • Multiple ConditionsOr - Any (Conditions) are true
                  • Bedingungen
                    • (Owner of (Triggering unit)) Equal to (==) Player 1
                    • (Owner of (Triggering unit)) Equal to (==) Player 2
                    • (Owner of (Triggering unit)) Equal to (==) Player 3
                    • (Owner of (Triggering unit)) Equal to (==) Player 4
                    • (Owner of (Triggering unit)) Equal to (==) Player 5
                    • (Owner of (Triggering unit)) Equal to (==) Player 6
          • 'THEN'-Actions
            • Game - Display to (All players) the text: 2
            • Set RevivePointHeaven = (Center of revive heaven <gen>)
            • Hero - Instantly revive (Triggering unit) at RevivePointHeaven, Show revival graphics
            • Custom script: call RemoveLocation(udg_RevivePointHeaven)
          • 'ELSE'-Actions
            • Set RevivePointHell = (Center of revive hell <gen>)
            • Hero - Instantly revive (Triggering unit) at RevivePointHell, Show revival graphics
            • Custom script: call RemoveLocation(udg_RevivePointHell)



thanks in advance

greetz happy
 

jnZ

I
Reaction score
64
Trigger:
  • revive
    • Events
      • Unit - A unit dies
    • Conditions
      • ((Triggering unit) is a hero) Gleich True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Conditions
          • (Player number of (Owner of (Triggering unit))) Kleiner gleich 6
        • 'THEN'-Actions
          • Set temp_point = (Center of A <gen>)
          • Hero - Instantly revive (Triggering unit) at temp_point, Zeigen revival graphics
          • Custom script: call RemoveLocation( udg_temp_point )
        • 'ELSE'-Actions
          • Set temp_point = (Center of B <gen>)
          • Hero - Instantly revive (Triggering unit) at temp_point, Zeigen revival graphics
          • Custom script: call RemoveLocation( udg_temp_point )


works perfectly fine for me

---

btw i changed the condition to the integer comparison because its more efficient like that

EDIT: woops just noticed that the code is german ^^ changing it now :>
EDIT2: bist ja selbst deutsch da hätt ichs auch lassen können
 

Happy

Well-Known Member
Reaction score
71
ja ich bin selbst deutsch xD

und danke ^^ funzt jetzt super xD

EDIT: ach ja +rep natürlich xD
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top