• 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.

Help making an ability

Status
Not open for further replies.
Level 11
Joined
Jun 27, 2010
Messages
625
Hey guys, I was trying to create a spell that gives a unit a 5% chance when attacking an enemy unit to Charm them and take control of them (No heroes or buildings). I was attempting to make a Bash copy with a 5% stun chance, and then make a trigger that would somehow change the owner of the unit being affected by the Bash however I failed miserably.

Would anyone know how to go about doing this?
 
Level 29
Joined
Sep 26, 2009
Messages
2,595
Create a copy of the Charm ability, set it as non-hero ability, no mana cost, etc.
Create a copy of the item ability "Orb of Lightning (new)", in one of the fields, replace the "Purge" ability with your copy of the Charm ability. Set the chance on hit and you're ready to go.
 
Level 11
Joined
Jun 27, 2010
Messages
625
Create a copy of the Charm ability, set it as non-hero ability, no mana cost, etc.
Create a copy of the item ability "Orb of Lightning (new)", in one of the fields, replace the "Purge" ability with your copy of the Charm ability. Set the chance on hit and you're ready to go.

Thanks! It works however it displays a random icon ingame that's just there. How can I get it from showing the icon and tooltip of the Charm copy?
 
Last edited:
Level 33
Joined
Mar 27, 2008
Messages
8,035
The only flaw to this approach is that, you need to actually order the unit to attack or attack-move (or any form of ordered attack) to trigger the chance.

If the unit moves to engage enemy units on-sight (Acquisition Range, without any player-order), the chance won't trigger at all.

This is sometimes we prefer triggering instead.

I have attached a test map for a clearer understanding.
 

Attachments

  • Orb Effect.w3x
    12.6 KB · Views: 23
Level 12
Joined
May 22, 2015
Messages
1,051
Thanks! It works however it displays a random icon ingame that's just there. How can I get it from showing the icon and tooltip of the Charm copy?

I think it shows the ability that will be cast (and not the orb of lightning ability). Just change the tooltip and icon for the charm ability. That should fix it.
 
Level 11
Joined
Jun 27, 2010
Messages
625
The only flaw to this approach is that, you need to actually order the unit to attack or attack-move (or any form of ordered attack) to trigger the chance.

If the unit moves to engage enemy units on-sight (Acquisition Range, without any player-order), the chance won't trigger at all.

This is sometimes we prefer triggering instead.

I have attached a test map for a clearer understanding.

Is there a trigger on the map? I just want an easy way without a tooltip.

I think it shows the ability that will be cast (and not the orb of lightning ability). Just change the tooltip and icon for the charm ability. That should fix it.

Yeah I changed the ability tooltip but the Icon won't show, it just shows as a green square no matter what I put in the Icon selection.
 
Level 11
Joined
Jun 27, 2010
Messages
625
This might help. The flaw is it will still show green square when you pause the game. It shows normal icon during gameplay, at least.

Yeah I did everything stated and it still shows a green square. Might it be because I'm using an imported icon?
 
Level 11
Joined
Jun 27, 2010
Messages
625
If you are using an imported icon, you must cater for all types of icon BTN, DISBTN, PAS, DISPAS.
Did you import all of these yet ?

The imported icon path might be the case then? Have you input the correct path? BTN, DISBTN, PAS, DISPAS?

Yeah I made the icon in Button Manager, and I made a copy of the icon in all the formats aside from ATC.

Clarification: I'm making a Garrosh Hellscream hero, and I want him to have a 5% chance on hit to Charm an enemy unit. The icon I'm using is this one. I made a BTN, DISBTN, DISPAS and PAS in Button Manager and imported all four into my map. I followed the instructions all you guys gave me, and ingame, instead of showing the passive icon it just shows a green square. It's got me fucked up seeing as no matter what it won't show the icon.

Here's an imgur album I made with screenshots of the Charm copy, the Orb of Lightning copy and how it ends up looking in game.
 
Last edited:
Status
Not open for further replies.
Top