• 🏆 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!
  • ✅ HD Level Design Contest #1 POLL is now OPEN! Check out the stunning visuals of the final entries. 🔗Click here to cast your vote!

[Solved] Spellbook and Active Ability

Status
Not open for further replies.
Level 17
Joined
Jun 2, 2009
Messages
1,112
Hello everyone. I want to make something like this.

1 Item includes more than 7 abilities and active ability and make it work. Is it possible?

Here is what happens.

1-) When i put spellbook ability (spellbook ability includes mana, mana regen and life) within this item, i cannot make it work.

  • Events
    • Unit - A unit Uses an item
  • Conditions
  • Actions
    • Game - Display to (All players) the text: 31
2-) The trigger above works when i remove spellbook ability within item.

Ability is Berserk (Item) and i want to run actions when you click on the item. It is working when i will NOT put spellbook ability within item.

Conclusion: Active item ability and spellbook ability not works together. How can i solve this issue?
 
you can add those (spellbook ability includes mana, mana regen and life)
like this
  • Unit - Add Pinpoint Strikes (attack speed) to PinpointStrikesCaster
  • Unit Group - Add PinpointStrikesCaster to PinpointStrikesGroup
And next
  • Time - Every 0.40 seconds of game time
  • Unit Group - Pick every unit in PinpointStrikesGroup and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • ((Picked unit) is alive) Equal to False
              • ((Picked unit) has buff Pinpoint Strikes ) Equal to False
        • Then - Actions
          • Unit - Remove Pinpoint Strikes (critical strike) from (Picked unit)
          • Unit Group - Remove (Picked unit) from PinpointStrikesGroup
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in PinpointStrikesGroup) Equal to 0
            • Then - Actions
              • Trigger - Turn off (This trigger)
            • Else - Actions
        • Else - Actions
 
Level 17
Joined
Jun 2, 2009
Messages
1,112
Uhm. I have added other abilities as you said but it looks it is not working. It works until ms 100 YES but when it comes the mana, mana regen and life regen it not works. At least i can say my mana not increases 75 when i pick this item.
Untitled.png

Probably today i will try something simple.
Unit acquires item - add ability
Unit loses item - remove ability

Now this is not working. It is adding ability but not removing.

This works.

  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Staff of Seeking
  • Actions
    • Unit - Add life regen 3 YES to (Hero manipulating item)
    • Unit - Add mana 75 YES to (Hero manipulating item)
    • Unit - Add mana regen 50 YES to (Hero manipulating item)
But this not

  • Events
    • Unit - A unit Loses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Staff of Seeking
  • Actions
    • Unit - Add life regen 3 YES to (Hero manipulating item)
    • Unit - Add mana 75 YES to (Hero manipulating item)
    • Unit - Add mana regen 50 YES to (Hero manipulating item)
 
Last edited:
Status
Not open for further replies.
Top