Icon Appearance Problem (Repeat)

Status
Not open for further replies.
Level 5
Joined
Dec 12, 2008
Messages
112
I found the option to change items to hero abilities and adding button positions for learning them. When I launch the game, click to learn the ability for the selected hero, there is no icon for me to use the hero ability on my user interface; just a black square where it should be. How do I get the ability to display a clickable icon on the UI? (In Trigger Form)

Also once the spell is learned, the icon will not appear on the spot, how do i make a dummy spell? (In Trigger Form)
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
What do you mean with "in trigger form"?
You don't need triggers for that, I don't know which ability you have changed to a hero ability, but there is something called:

"Data - Hide Button"

Set it to false, then it should show the icon.

If this isn't the case, give more information, please.
 
Level 3
Joined
May 27, 2007
Messages
67
Let me guess. You are editing a passive ability?
I had this problem before. The only thing you can do is to make a trigger.
I have no image but i'll try to explain.
Make a dummy ability off like Critical Strik or smtn. Then set all the variables to 0 and such so that the ability doesnt do anything. Change the tooltips to the same as "Your ability". This ability will then serve as an icon for your REAL ability.

Trigger
EVENT: A hero/unit learns a skill
CONDITION: Ability learned is equal to <Your ability>
ACTION 1: Add <Dummie ability> to triggering unit
ACTION 2:
If level of <Your ability> is equal to 1 Set level of <Dummie ability> to 1 else do nothing.
If level of <Your ability> is equal to 2 Set level of <Dummie ability> to 2 else do nothing.
If level of <Your ability> is equal to 3 Set level of <Dummie ability> to 3 else do nothing.

Okay if it's not a passive ability then i have no clue :p
 
Level 5
Joined
Dec 12, 2008
Messages
112
Ok. It the Generate Corpse ability in the Undead Graveyard. I made it into a Hero ability but when i seem to learn the skill, the icon will not appear.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
In that case, a dummy ability is indeed the solution.
As Izzen@WC3 has already said: create a new ability (if it is active, base it off Thunder Clap or War Stomp or any slam spell, if it is passive any passive spell would do), then if it is an active ability, just create a trigger that activates when the spell is activated, set TempLoc to the position of the hero and create a corpse at TempLoc (don't forget to remove the TempLoc).

I'm not really in the mood to create the actual trigger, but it's really easy.
 
Level 3
Joined
May 27, 2007
Messages
67
The "Generate Corpse" spell will work with a dummy ability just as the one i wrote, no matter if the original icon shows or not. If you can handle basic triggers this problem is solved! :)
 
Status
Not open for further replies.
Top