• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Buying spells and hiding icons

Status
Not open for further replies.
Level 13
Joined
Aug 31, 2005
Messages
823
As for buying spells. Just create an item in a shop based off any item and remove all the items abilities. Then, create a trigger so that when the unit purchases this item, the item is destroyed and the unit has a new ability. It would probably look something like this.
Event: Item - Hero aquires an item
conditions: Item being manipulated equal to bash
actions:
Hero - add ability bash to unit (triggering unit)

And as for making the icons dissappear, I've done it on accident a few times but im not really sure how to make it work. An alternative would be to create a spellbook ability for the hero so that everytime the hero buys the item the ability is added to the spellbook. You'll hafta look in resources and look for it (i know its been done before)
 
Level 2
Joined
Mar 25, 2007
Messages
13
Not quite the thing you need but it still helps

Your first question was answered quite well by the others so I'll simply answer the second...

In the Object editor select the unit you need and go to a field called "Combat-Attack1-Show UI" and then you just untick it. It should look like this:
Combat - Attack 1 - Show UI False

That works 100%, but I'm afraid it only removes the Attack icon - the others stay were they are... Still - that's one icon less :infl_thumbs_up:
 
Status
Not open for further replies.
Top