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

Shadow Meld Buff Ability

Status
Not open for further replies.

osh

osh

Level 2
Joined
Dec 8, 2021
Messages
10
Hello. I've been fiddling with the shadow meld ability and make more appealing. my idea is that when a unit shadow melds (both manual and automatic), the unit receives a buff like extra hp and mp regeneration and armor and magic resistance. i don't know how to use coding techniques like JASS etc. SO here I am seeking your help. Thanks!
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
This one is a little tough because Shadow Meld doesn't fire any Event to let us know when it was cast/ordered.

People have tried to do this in the past, and it's definitely doable, but a little complicated because there's a lot of edge cases to worry about:

Pharaoh_ seems to have created a solid solution in that thread.

For the "buffs", find the trigger that runs when your unit becomes Shadow Melded and add a bunch of item abilities in response:
  • Unit - Add Life Regen (Shadow Meld) to YourUnit
  • Unit - Add Mana Regen (Shadow Meld) to YourUnit
  • Unit - Add Armor (Shadow Meld) to YourUnit
  • Unit - Add Magic Resistance (Shadow Meld) to YourUnit
Most item abilities will stack and are hidden automatically so you shouldn't have any issues there.

Then find the trigger that runs when your unit becomes Un-Melded and Remove those abilities from it.

Also, in the future please let people know which version of Warcraft 3 you're on. The solutions we provide will vary depending on that, and if you're on the most recent patch I can actually send you a demo map since you'll be able to open it.
 

osh

osh

Level 2
Joined
Dec 8, 2021
Messages
10
I typed the post hurriedly so left out what version of Warcraft 3 and other details. Anyways, thanks for this. it's really helpful. i'll look into this carefully later. Thank you very much.
 
Status
Not open for further replies.
Top