• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Only works for player 1 why?

Status
Not open for further replies.
Level 12
Joined
Apr 26, 2008
Messages
830
Only works for player 1 why? (SOLVED)

  • DeathGroup INI
    • Ereignisse
      • Einheit - A unit Stirbt
    • Bedingungen
      • ((Triggering unit) belongs to an enemy of Neutral feindlich) Gleich True
    • Aktionen
      • Einheitengruppe - Add (Triggering unit) to DeathPokemon[(Player number of (Owner of (Triggering unit)))]
  • Heal system
    • Ereignisse
      • Einheit - A unit Erwirbt einen Gegenstand
    • Bedingungen
      • (Item-type of (Item being manipulated)) Gleich Heal
    • 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 (Triggering unit)) Gleich Pokemon Trainer (Female)
              • (Unit-type of (Triggering unit)) Gleich Pokemon Trainer (Male)
        • 'THEN'-Aktionen
          • Spiel - Display to (All players) the text: Works Revive
          • Einheitengruppe - Pick every unit in DeathPokemon[(Player number of (Owner of (Triggering unit)))] and do (Actions)
            • Schleifen - Aktionen
              • Held - Instantly revive (Picked unit) at (Random point in Pokemon Restricted Area <gen>), Verbergen revival graphics
              • Einheit - Set life of (Picked unit) to 100.00%
              • Einheit - Pause ein (Picked unit)
              • Einheit - Make (Picked unit) Unverwundbar
              • Einheitengruppe - Remove all units of DeathPokemon[(Player number of (Owner of (Triggering unit)))] from DeathPokemon[(Player number of (Owner of (Triggering unit)))]
          • Einheitengruppe - Pick every unit in (Units in Pokemon restricted heal <gen> owned by (Owner of (Triggering unit))) and do (Actions)
            • Schleifen - Aktionen
              • Einheit - Set life of (Picked unit) to 100.00%
        • 'ELSE'-Aktionen
Basically this should add any unit that dies to player number of triggering unit, and then revive them when aquiring an item from a shop.
 
Last edited:
Status
Not open for further replies.
Top