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

Ankh with Charges/Stacks?

Status
Not open for further replies.
Level 18
Joined
Mar 16, 2008
Messages
721
I tried to make an ankh that has charges/stacks, with a cooldown, but no ability seems to fit that. Also I didn't wanna just do it completely by triggers because the defeat trigger is if this hero dies. So I made an item based off tauren chieftan rez, made the item undroppable so the CD doesn't reset, but the best I could do it this crappy trigger I have below that requires atlesat 2 stacks of this ankh to be in their inventory. Can anyone think of a way to improve this situation? The players of my map and myself would greatly appreciate it.

I hope this makes sense i'm really sleepy.

  • Blank Ankh Used Yellow
    • Events
    • Conditions
      • (Player 5 (Yellow) is in Black_Group_Var.) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item: (Item carried by Yellow_Hero of type Midnight Ankh)'s Integer Field: Number of Charges ('iuse')) Equal to 1
        • Then - Actions
          • Item - Remove (Item carried by Yellow_Hero of type Midnight Ankh)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item: (Item carried by Yellow_Hero of type Midnight Ankh)'s Integer Field: Number of Charges ('iuse')) Greater than 1
        • Then - Actions
          • Item - Set charges remaining in (Item carried by Yellow_Hero of type Midnight Ankh) to ((Charges remaining in (Item carried by Yellow_Hero of type Midnight Ankh)) - 1)
          • Countdown Timer - Start Black_Ankh_CD_Timer_Yellow as a One-shot timer that will expire in 180.00 seconds
          • Trigger - Turn off (This trigger)
        • Else - Actions
  • Blank Ankh Used CD Over Yellow
    • Events
      • Time - Black_Ankh_CD_Timer_Yellow expires
    • Conditions
      • (Player 5 (Yellow) is in Black_Group_Var.) Equal to True
    • Actions
      • Trigger - Turn on Blank Ankh Used Yellow <gen>
 
Status
Not open for further replies.
Top