• 🏆 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!

Help making an ability

Status
Not open for further replies.
Level 4
Joined
Dec 3, 2012
Messages
51
Hi,

I need help making an ability, but since I have only a limited knowledge of GUI I have not even been able to start.

The idea is it will be a "skill steal" that can steal a non hero ability from an enemy unit.
I wanted to base it off something like finger of death, but reduce the damage to 0. Essentially, I want it to pick a random ability from the target, and then add that ability to the caster. After, the "skill steal" ability needs to be removed from the caster so he cant add more than one ability.

Sorry for not even attempting to code this, but like I mentioned I have no idea where to start, and would be grateful for any help.

Thanks
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Hi,

I need help making an ability, but since I have only a limited knowledge of GUI I have not even been able to start.

The idea is it will be a "skill steal" that can steal a non hero ability from an enemy unit.
I wanted to base it off something like finger of death, but reduce the damage to 0. Essentially, I want it to pick a random ability from the target, and then add that ability to the caster. After, the "skill steal" ability needs to be removed from the caster so he cant add more than one ability.

Sorry for not even attempting to code this, but like I mentioned I have no idea where to start, and would be grateful for any help.

Thanks

This is definitely not an easy one to make.
The hardpoint is finding out what skills your target has.
I can see 2 ways:
1. Store the abilities of all unit types in a hashtable. Not recommended.
2. Use if's to check for each ability separately. Also not recommended.

There is a similar ability called spell steal, but that only steals buffs. If that's not what you want, then you will have to reduce the amount of abilities that skill steal works on.

tl;dr - There is no pretty way of doing this.
 
Level 4
Joined
Dec 3, 2012
Messages
51
The idea is to steal the ability, not the buff. Its meant for an alterted melee unit spellcaster, so maybe if I use hashtables I could limit it to just the other race's spellcasters abilites, which would cut it down to about 20-25.
 
Level 10
Joined
Dec 15, 2012
Messages
650
:psmile:
After, the "skill steal" ability needs to be removed from the caster so he cant add more than one ability.
Did you meant that "skill steal" ability can only be cast one time ?
I think you want the ability just like the skill 4 of Grand Magus (DotA's Hero) but difference is this "skill steal" is picking random ability of the target to the caster.
:ab:
 
Level 4
Joined
Dec 3, 2012
Messages
51
I don't really play Dota, so not sure how similar this ability is to the one you mentioned.

Essentially, it is an active ability, and you target an enemy unit. The caster then copies a random ability from the targeted unit. This "spell steal" ability is then removed from the caster. The targeted unit of course retains his original abilities. It is limited to one use for balance, and also I am not sure what would happen if he exceeded 7 abilities.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
If the Spell Steal is removed, the unit won't be able to cast it ever again ?
Unlike in DotA, the Spell Steal still remain intact with the unit and once the spell is cast again, it will replace the last saved spell instead of adding a new one to the unit.
 
Status
Not open for further replies.
Top