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

Spell Request

Status
Not open for further replies.
Level 4
Joined
Jun 5, 2007
Messages
65
Since my proficiency in JASS is limited to not knowing a single letter of the language, and I'm told that the spell I'm trying to make is only possible in JASS, well, I guess I'm in need of some help.

The spell is somewhat like critical strike, but instead of an x% chance to deal xtimes normal damage, I want it to be x% chance to deal x% of the units current life to it in damage.

5 Levels:
1 - 5% chance to knock off 30% of the target's current life.
2 - 10% chance to knock off 45% of the target's current life.
3 - 15% chance to knock off 60% of the target's current life.
4 - 20% chance to knock off 75% of the target's current life.
5 - 25% chance to knock off 90% of the target's current life.

It would be nice if it could be MUI (though not entirely necessary) and I'd really appreciate it if there were no leaks. Thank you VERY much in advance.
-Z
 
Level 3
Joined
May 27, 2007
Messages
43
Hmm, if being MUI isn't really necessary, it can be done easily in GUI with a trigger that fires once a unit is attacked (and checks if the attacking unit has your passive spell).

Anyway, a passive skill that 25% of the time doesn't let you do that final blow can become VERY annoying.
 
Level 4
Joined
Jun 5, 2007
Messages
65
Problem with 'unit is attacked' is that it's very buggy and sometimes fires when it shouldn't, especially on ranged attacks, and my hero is ranged.
 
Level 3
Joined
May 27, 2007
Messages
43
Problem with 'unit is attacked' is that it's very buggy and sometimes fires when it shouldn't, especially on ranged attacks, and my hero is ranged.

There are several better ways to detect when a unit is damaged/attacked. I suggested a simple event since you do not know JASS. A much better way to do it is using Vexorian's Attack Detect Engine, but it requires a little bit JASS knowledge (at least to put some code in your map).

You can find it here: http://www.wc3jass.com/viewtopic.php?t=2020

Once you use this system your spell becomes quite easy to create. Hope it helps.
 
Status
Not open for further replies.
Top