Item problem, detecting when use Hero ab & unit ab...

Olmeca

Member
Reaction score
2
I have an item and a problem...
My item says;
"Each time you cast a spell (unit's abilities) you restore X heal and mana" (Already done)
but using other items triggers this item, how I can fix it?:banghead:
 

Olmeca

Member
Reaction score
2
no, is not than I want, the item's trigger is done (is passive)
I only want the item triggers when his owner cast a spell, not when use another item...
 

hgkjfhfdsj

Active Member
Reaction score
55
one way is to put that trigger in each spell you have, ie on cast, checking if item ability > 0 then restore x.. not very efficient tho
 

canons200

New Member
Reaction score
50
add in condition, ability casted not equal to(all your activable item ability, put under or any condition are true, if you have 10, then put 10, if you have 100, smile...........)
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
another way:
  • create two dummies and put one in variable "Unit_Abilities_Holder" and other in "Hero_Abilities_Holder"

then: ( "init" the dummies)
  • add all unit abilities to the Unit_Abilities_Holder
  • add all hero abilities to the Hero_Abilities_Holder

so, when you want to check if an ability is unit ability, just:
Trigger:
  • (Level of <ability> for Unit_Abilities_Holder) Greater than 0

or hero ability:
Trigger:
  • (Level of <ability> for Hero_Abilities_Holder) Greater than 0


"init" the dummies step would be (a little) long but I think it's shorter then many conditions
and also, you can use this for many triggers with just the two conditions above. :)
 

Olmeca

Member
Reaction score
2
still need help

The way of "If (All conditions are true) then do (Then actions) else do..."
does not work for all item abs... only triggers the first condition...
 

canons200

New Member
Reaction score
50
you use the wrong condition, use the OR any condition are true, and place all condition inside the OR.
 
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