- Joined
- Feb 24, 2018
- Messages
- 71
I need some help in making attribute based hero spells.For example
StormBolt
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Storm Bolt
Actions
Set Strength = (Strength of (Casting unit) (Include bonuses))
Set Convert = (Real(Strength))
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Convert x 5.00) damage of attack type Spells and damage type Normal
or
AoE Heal
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Mass Heal
Actions
Set Inteligence = (Intelligence of (Casting unit) (Include bonuses))
Set Convert = (Real(Inteligence))
Set UnitGroup = (Units within 600.00 of (Target point of ability being cast) matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))
Game - Display to (All players) the text: (Currently Casting: + (Name of (Ability being cast)))
Unit Group - Pick every unit in UnitGroup and do (Unit - Set life of (Picked Unit) to ((Life of (Picked unit)) + (Convert x 4.00)))
Unit Group - Pick every unit in UnitGroup and do (Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl)
Special Effect - Destroy (Last created special effect)
Custom script: call DestroyGroup(udg_UnitGroup)
I'm confused about how to make these to scale for 10 levels (without making 10 different spells) so I can use them for my heroes.For example first level deals 0.50 x STR , second level deals 0.75 X STR and so on.Thanks !
StormBolt
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Storm Bolt
Actions
Set Strength = (Strength of (Casting unit) (Include bonuses))
Set Convert = (Real(Strength))
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Convert x 5.00) damage of attack type Spells and damage type Normal
or
AoE Heal
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Mass Heal
Actions
Set Inteligence = (Intelligence of (Casting unit) (Include bonuses))
Set Convert = (Real(Inteligence))
Set UnitGroup = (Units within 600.00 of (Target point of ability being cast) matching ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))
Game - Display to (All players) the text: (Currently Casting: + (Name of (Ability being cast)))
Unit Group - Pick every unit in UnitGroup and do (Unit - Set life of (Picked Unit) to ((Life of (Picked unit)) + (Convert x 4.00)))
Unit Group - Pick every unit in UnitGroup and do (Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl)
Special Effect - Destroy (Last created special effect)
Custom script: call DestroyGroup(udg_UnitGroup)
I'm confused about how to make these to scale for 10 levels (without making 10 different spells) so I can use them for my heroes.For example first level deals 0.50 x STR , second level deals 0.75 X STR and so on.Thanks !