• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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