• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Got Problem

Status
Not open for further replies.
Level 5
Joined
Nov 29, 2007
Messages
106
Got items that after use adds ability to you like thorn aura that works only on me, but some heroes in my map got more than 4 spells and this thorn ability repleaces some abilities after use for short duration. How to Add this ability without making it taking space in spell bar? I tried to remove icon but didn't work, icon was... but green. Here's Trigg:
  • Active
    • Events
      • Unit - A unit using item
    • Conditions
      • (Item-type of (Item being manipulated)) = Barbed Armor
    • Actions
      • Set BarbedUnit = (Hero manipulating item)
      • Timer - Start BarbedTimer as a Jone shot‚ timer that will expire in 8.00 seconds
      • Unit - Add Barbed Armor to BarbedUnit
      • Trigger - Turn on Disactive <gen>
Second Trigger
  • Disactive
    • Events
      • Time - BarbedTimer expires
    • Conditions
    • Actions
      • Unit - Remove Barbed Armor from BarbedUnit
 
Level 11
Joined
Jun 20, 2009
Messages
880
Use spellbook to hide the icon

"How do i make this stuff work then?:
First of all, create a spellbook and call it something like "dummy" or whatever you want.

Now, go look at the field called " Data - Spell List ".
This is where you can edit what spells there should be in the spell book.
Remove all abilities there, and place your passive skill(s) in there.

After you've done that, go to the trigger editor and do following:

  • Events
  • Map initialization
  • Conditions
  • Actions
  • Player - Disable <Your spellbook ability here> for Player 1 (Red)
  • // Ofcourse do this for every player.
Add the spellbook to the unit you want to have the passive skill(s).
Now it suddenly got all the passive skills without any icon.

Source:
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/mysteries-spellbook-33039/
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
  • Unit - Add Ability to (triggering unit)
ability being that spellbook.

EDIT:
  • abil
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to (==) Sobi Mask
    • Actions
      • Unit - Add NEW Spell Book to (Triggering unit)
I used Acquires an item for the sole reason that it was quicker for me to do. Of course, if you choose an item that isn't passive, and you use it, it would be "Starts the affect of an Ability" instead.

Don't forget to add the ability you want to that spell book, too. :)

I've tested it, and it does work. Just remember one more thing, to hide the spellbook icon.
 
Status
Not open for further replies.
Top