Amulet of Spell Shield - Perishable

TheSpoon

New Member
Reaction score
10
I want to make the item "Amulet of Spell Shield"
Start off with 5 charges, and every time it blocks a spell, to lose a charge.
Unfortunately, simple setting the "number of charges" to 5 and the "perishable" to true..

..didn't work.

Can anyone help?
(PS. I imagine this will be hard to solve)
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Perhaps not as hard as you think. Beware, though, I haven't tested this, but I believe it will work:

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Spell Shield (Amulet)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Charges remaining in (Item carried by (Triggering unit) of type Amulet of Spell Shield)) Equal to 1
        • Then - Actions
          • Item - Remove (Item carried by (Triggering unit) of type Amulet of Spell Shield)
        • Else - Actions
          • Item - Set charges remaining in (Item carried by (Triggering unit) of type Amulet of Spell Shield) to ((Charges remaining in (Item carried by (Triggering unit) of type Amulet of Spell Shield)) - 1)
 
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