Hello Hive.
After being told that some spells I was looking to fix required Hashtables, I decided to read the tutorial and then make a spell using them
However I'm still kinda clueless on how to do it.
Here's what I want the spell to do
When cast on a unit, it creates a locust unit for 20 seconds. The locust unit attacks the target unit for the duration.
Then, each summoned locust unit grants the caster a raw bonus to damage and a %based movement speed bonus depending on the level (Let's say +5/6/7 to damage and +5/10/15% to movespeed), this effect stacks up to 5 times (meaning you can't have more than +25/30/35 to damage and +25/50/75% movespeed regardless of the amount of locusts alive.). This bonus is constantly updated based on the number of existing locusts (since they are locusts and invulnerable, it is not much of a problem since they only die when their time runs out).
The idea I had to make it:
1: Create 3 "Command Aura" spells with 5 levels each and 3 "Endurance aura" spells with 5 levels each for the whole stacks thing
2: Create a spellbook with 4 levels. At level 1 it holds no spells, at level 2,3,4 it contains Command/Endurance Aura 1/2/3. The hero in question has the spellbook as an ability.
However I'm completely unable to figure the trigger for it
I know I should use hashtables, but I don't know how I should proceed with it.
I figure I would need the following variables
2 Unit Variables (Caster and Target)
1 Point Variable (Target Location)
2 Integer Variables (Number of Stacks and Spell level)
But from that point onwards I'm kinda clueless
Could anyone shed some light on this?
Thanks in advance
After being told that some spells I was looking to fix required Hashtables, I decided to read the tutorial and then make a spell using them
However I'm still kinda clueless on how to do it.
Here's what I want the spell to do
When cast on a unit, it creates a locust unit for 20 seconds. The locust unit attacks the target unit for the duration.
Then, each summoned locust unit grants the caster a raw bonus to damage and a %based movement speed bonus depending on the level (Let's say +5/6/7 to damage and +5/10/15% to movespeed), this effect stacks up to 5 times (meaning you can't have more than +25/30/35 to damage and +25/50/75% movespeed regardless of the amount of locusts alive.). This bonus is constantly updated based on the number of existing locusts (since they are locusts and invulnerable, it is not much of a problem since they only die when their time runs out).
The idea I had to make it:
1: Create 3 "Command Aura" spells with 5 levels each and 3 "Endurance aura" spells with 5 levels each for the whole stacks thing
2: Create a spellbook with 4 levels. At level 1 it holds no spells, at level 2,3,4 it contains Command/Endurance Aura 1/2/3. The hero in question has the spellbook as an ability.
However I'm completely unable to figure the trigger for it
I know I should use hashtables, but I don't know how I should proceed with it.
I figure I would need the following variables
2 Unit Variables (Caster and Target)
1 Point Variable (Target Location)
2 Integer Variables (Number of Stacks and Spell level)
But from that point onwards I'm kinda clueless
Could anyone shed some light on this?
Thanks in advance