Triggered Ability Not Working

ZeroThirteen

New Member
Reaction score
35
The ability I'm trying to get to work is based on Raise Dead. When used, it creates a shield around the caster. The spell is cast and the corpse disappears, but I can't get the effect to work. Here's the code:

Code:
Unit - A unit Begins casting an ability

(Ability being cast) Equal to Bone Armor 

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    If - Conditions
        (Level of Bone Armor  for (Triggering unit)) Equal to 1
    Then - Actions
        Unit - Add Bone Armor +2  to (Triggering unit)
        Wait 40.00 seconds
        Unit - Remove Bone Armor +2  from (Triggering unit)
    Else - Actions
        Do nothing

See any problems?
 
1

131ackout

Guest
Make the ability based on Frost Armor.

It gives the armor bonus, and take "cold damage" out.

There, simple. :p
OR, you're making other than armor...?
 

ZeroThirteen

New Member
Reaction score
35
It needs to target a corpse, but grant the armor bonus to the caster. You can't do that through Frost Armor.
 

s3rius

Linux is only free if your time is worthless.
Reaction score
130
Can't see an error in that code. Does the "bone armor +2" work properly (if added via trigger without any conditions)?
 

ZeroThirteen

New Member
Reaction score
35
I added it through trigger without the conditions and it didn't even give me the buff that's added to it. I could go back and check (it's based on Item Armor Bonus +2, but I disabled the "Item Ability" field), but I think it works.
 
1

131ackout

Guest
Oh..

I thought you meant that..

Hmm, just like Cannizable.. or something that removes the corpse then instead of giving that HP, grant him more armor for seconds..
 

ZeroThirteen

New Member
Reaction score
35
I can't add the ability to grant armor through Cannibalize. If I did it through triggers, it would work, but that's what I'm already doing with Raise Dead. :p
 

s3rius

Linux is only free if your time is worthless.
Reaction score
130
I think item abilities (or abilities based on item abilities) cannot have any buffs. And try setting it back to Item Ability (I am using the armor bonus like that, too, and it works for me.)
 
1

131ackout

Guest
So, try make a buff for your ability instead of the hero that grants two bonus armor..

I think so..
 

ZeroThirteen

New Member
Reaction score
35
Should I just add the buff through triggers for the duration of the spell and change the ability back to an item ability, then?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top