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

Help with cleaving ability

Status
Not open for further replies.
Level 4
Joined
Feb 25, 2010
Messages
73
Greetings. I want to do a passive skill based on Cleaving Attack, or something like that.
The skill is supposed to works in this manner: the more units there are around the unit when it attacks, bigger is the cleave. So, at level 1, the skill will do 5% Cleave +5% additional for each unit around the attacker. At level 2, it do 10% Cleave +10% additional for each unit around, and so on...

Someone have a idea how i can do it? Thanks ^^
 
Level 4
Joined
Feb 25, 2010
Messages
73
Ok, but what i don't understand is how i use this system in the ability i want... Also, the most things you show me in the links are JASS and i am totally noob in it ^^'
 
Level 8
Joined
May 9, 2010
Messages
266
You can create cleaving ability with some number of levels.
And you can change level of ability with changing number of units in group.
Example:
1 unit in unit group => set level of ability to 1
2 unit in unit group => set level of ability to 2
3 unit in unit group => set level of ability to 3
4 and more unit in unit group => set level of ability to 4
 
Level 4
Joined
Feb 25, 2010
Messages
73
Yeah, this is a good idea, i'll try making something like that.

However, there is a method to not showing the change of level of the ability? (Because, if i do like you say, the player will see the level of the ability changing each attack, what can be strange)

What i THINK is: maybe, like Cleave stacks, i can add a second ou more cleave abilities to the attacking unit each time it attacks... But i don't know how i can detect the number of units around the unit at the moment of the attack
 
Yeah, this is a good idea, i'll try making something like that.

However, there is a method to not showing the change of level of the ability? (Because, if i do like you say, the player will see the level of the ability changing each attack, what can be strange)

What i THINK is: maybe, like Cleave stacks, i can add a second ou more cleave abilities to the attacking unit each time it attacks... But i don't know how i can detect the number of units around the unit at the moment of the attack

How to detect amount of units around:
If you use system i linked above, use as Event "Value of Real variable becomes equal to 0".
and:
1) if angle doen't matter just create a temp group that picks all units in given AoE.
2) if you want unit only from for eg. front just check the facing angles between units around and your hero with cleave ability.
 
Last edited:
Status
Not open for further replies.
Top