• 🏆 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!

Save System (CoP) v. 1.02

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
A ressurection system like in Rexxar's Bonus Campaign. The heroes respawn at the Circle of Power (CoP) even if only one hero steps on a CoP, all died heroes will respawn there.

Updated:
> Removed Level Down Trigger
> Fixed Location Leaks

This Trigger is Long but try to simplify it:
  • North West
    • Events
      • Unit - A unit comes within 350.00 of Circle of Power (large) 0000 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set Temp_Loc[1] = (Position of Circle of Power (large) 0000 <gen>)
      • Unit - Change ownership of Circle of Power (large) 0000 <gen> to (Owner of (Triggering unit)) and Change color
      • Unit - Change ownership of Circle of Power (large) 0001 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0002 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0003 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0006 <gen> to Neutral Passive and Change color
      • Custom script: call RemoveLocation(udg_Temp_Loc[2])
      • Custom script: call RemoveLocation(udg_Temp_Loc[3])
      • Custom script: call RemoveLocation(udg_Temp_Loc[4])
      • Custom script: call RemoveLocation(udg_Temp_Loc[5])
  • North East
    • Events
      • Unit - A unit comes within 350.00 of Circle of Power (large) 0003 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set Temp_Loc[2] = (Position of Circle of Power (large) 0003 <gen>)
      • Unit - Change ownership of Circle of Power (large) 0000 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0001 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0002 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0003 <gen> to (Owner of (Triggering unit)) and Change color
      • Unit - Change ownership of Circle of Power (large) 0006 <gen> to Neutral Passive and Change color
      • Custom script: call RemoveLocation(udg_Temp_Loc[1])
      • Custom script: call RemoveLocation(udg_Temp_Loc[3])
      • Custom script: call RemoveLocation(udg_Temp_Loc[4])
      • Custom script: call RemoveLocation(udg_Temp_Loc[5])
  • South West
    • Events
      • Unit - A unit comes within 350.00 of Circle of Power (large) 0001 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set Temp_Loc[3] = (Position of Circle of Power (large) 0001 <gen>)
      • Unit - Change ownership of Circle of Power (large) 0000 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0001 <gen> to (Owner of (Triggering unit)) and Change color
      • Unit - Change ownership of Circle of Power (large) 0002 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0003 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0006 <gen> to Neutral Passive and Change color
      • Custom script: call RemoveLocation(udg_Temp_Loc[1])
      • Custom script: call RemoveLocation(udg_Temp_Loc[2])
      • Custom script: call RemoveLocation(udg_Temp_Loc[4])
      • Custom script: call RemoveLocation(udg_Temp_Loc[5])
  • South East
    • Events
      • Unit - A unit comes within 350.00 of Circle of Power (large) 0002 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set Temp_Loc[4] = (Position of Circle of Power (large) 0002 <gen>)
      • Unit - Change ownership of Circle of Power (large) 0000 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0001 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0002 <gen> to (Owner of (Triggering unit)) and Change color
      • Unit - Change ownership of Circle of Power (large) 0003 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0006 <gen> to Neutral Passive and Change color
      • Custom script: call RemoveLocation(udg_Temp_Loc[1])
      • Custom script: call RemoveLocation(udg_Temp_Loc[2])
      • Custom script: call RemoveLocation(udg_Temp_Loc[3])
      • Custom script: call RemoveLocation(udg_Temp_Loc[5])
  • Center
    • Events
      • Unit - A unit comes within 350.00 of Circle of Power (large) 0006 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Set Temp_Loc[5] = (Position of Circle of Power (large) 0006 <gen>)
      • Unit - Change ownership of Circle of Power (large) 0000 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0001 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0002 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0003 <gen> to Neutral Passive and Change color
      • Unit - Change ownership of Circle of Power (large) 0006 <gen> to (Owner of (Triggering unit)) and Change color
      • Custom script: call RemoveLocation(udg_Temp_Loc[1])
      • Custom script: call RemoveLocation(udg_Temp_Loc[2])
      • Custom script: call RemoveLocation(udg_Temp_Loc[3])
      • Custom script: call RemoveLocation(udg_Temp_Loc[4])
  • Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Dying unit) is A Hero) Equal to True
          • ((Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of Circle of Power (large) 0000 <gen>) Not equal to Neutral Passive
        • Then - Actions
          • Hero - Instantly revive (Dying unit) at Temp_Loc[1], Hide revival graphics
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of Circle of Power (large) 0003 <gen>) Not equal to Neutral Passive
        • Then - Actions
          • Hero - Instantly revive (Dying unit) at Temp_Loc[2], Hide revival graphics
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of Circle of Power (large) 0001 <gen>) Not equal to Neutral Passive
        • Then - Actions
          • Hero - Instantly revive (Dying unit) at Temp_Loc[3], Hide revival graphics
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of Circle of Power (large) 0002 <gen>) Not equal to Neutral Passive
        • Then - Actions
          • Hero - Instantly revive (Dying unit) at Temp_Loc[4], Hide revival graphics
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of Circle of Power (large) 0006 <gen>) Not equal to Neutral Passive
        • Then - Actions
          • Hero - Instantly revive (Dying unit) at Temp_Loc[5], Hide revival graphics
        • Else - Actions


Keywords:
save, system, save system, rexxar
Contents

Save System (CoP) v. 1.01 (Map)

Reviews
02:56, 13th Nov 2009 TriggerHappy187: I really do not see the point of this system, and aside from that the coding isn't very portable at all. Sorry this can be approved.

Moderator

M

Moderator

02:56, 13th Nov 2009
TriggerHappy187:

I really do not see the point of this system, and aside from that the coding isn't very portable at all. Sorry this can be approved.
 
Level 21
Joined
Dec 9, 2007
Messages
3,096
MortAr- is right. You use a lot of if/then/else's and what on earth is the point of setting a hero's level to his current level?
Damn it, 2/5 for something I call "Xtreme boredom disorder".

"Xtreme boredom disorder"

A very common disease that makes someone do unnecessary stuff in GUI triggers and overreact at people's comments about that due to extreme boredom and lack of life.
Some people may also experience symptoms like stupidness and extremely severe grammar mistakes in their posts.
If you experience any of the previous symptoms,
please suicide immediately.

I or anyone else will not be held responsible for negative effects of the treatment suggested.
 
Top