• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Making Feedback Turn on/of

Status
Not open for further replies.
Level 12
Joined
Mar 23, 2008
Messages
942
I gave feedback to my hero, but I want it to be able to turn on and off, and needs mana to cast, like searing arrow.

But even If I edit everything in WE, the ability works like the normal feeback.
Its one of these things you cannot just edit in WE?

Someone know what can I do? (I hate scripts spells...)
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
You need scripts
Any units get damaged (you need a system for that)
if damaged unit has X buff (you simply a skill based on frost arrows or dark arrows and give it X buff)
remove the X buff, do Min(remaining mana of damaged unit, <Feedback power>) damage
and make target lose 20 <Feedback power> mana

Min is a function that returns less one liek:
Min(2,5) = 2
Min(1,-8) = -8
 
Level 12
Joined
Mar 23, 2008
Messages
942
You need scripts
Any units get damaged (you need a system for that)
if damaged unit has X buff (you simply a skill based on frost arrows or dark arrows and give it X buff)
remove the X buff, do Min(remaining mana of damaged unit, <Feedback power>) damage
and make target lose 20 <Feedback power> mana

Min is a function that returns less one liek:
Min(2,5) = 2
Min(1,-8) = -8

But the problem feedback is a orb... So if i give it any other orb spell like fire arrow or dark arrow, I can get a conflict.

I'm trying to do a dummy spell based in replenish (night elve) that give feedback if you turn on/of.
 
Status
Not open for further replies.
Top