• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Two Spell Requests!

Status
Not open for further replies.
Level 2
Joined
Feb 11, 2009
Messages
12
Two Spell Requests! - SOLVED.

Hey there. I tried as bad as i could but couldn't get two spells to work, maybe someone can help me out:

- I need a spell that damages a target unit for 2/3/4/5x the user's Strength and gives 1/8 - 1/7 - 1/6 - 1/5 of Strength in gold to the user, and

- One spell that deals bonus damage to the target equal to 4%/8%/12% of remaining mana on the casting unit.

Preferably in GUI, but JASS works too. Thanks in advance.:infl_thumbs_up:

EDIT: Both spells done, case closed.
 
Last edited:
Level 2
Joined
Feb 11, 2009
Messages
12
Huh, that's weird. I did exactly the same thing for spell 1, using some variables, but it always returned 0. Yours works though, so it's +rep for the help and your name will get a space on the credits, thanks :thumbs_up:

Second spell still up, can someone do it?

EDIT: Gah, just took a quick look at my triggering and saw the obvious flaw ¬¬
 
Last edited:
Level 2
Joined
Feb 11, 2009
Messages
12
Yeah, haha, i used every line referencing to PirateoftheDeep[variable], but it didn't work. When i rearranged everything with Casting and Triggering unit, it worked perfectly. With that i could fix the second spell too, so that's it. Thanks again.

THREAD CLOSED.
 
Status
Not open for further replies.
Top