• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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