What does this spell do?
-This spell is a "Gold Steal" and "Damage" ability. It will steal a amount of gold that is the Level of the Caster + The number of units in a range + The level of the Targeted Unit
Variables:
The variables we'll use in this spell are:
Trigger:
I will attach the map with the spell soon.
-- Nice Spell? -- Or -- Bad Spell? --
-This spell is a "Gold Steal" and "Damage" ability. It will steal a amount of gold that is the Level of the Caster + The number of units in a range + The level of the Targeted Unit
Variables:
The variables we'll use in this spell are:
Code:
RCaster, Unit
AtackedUnit, Unit
Trigger:
Code:
Range Steal Skill
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Range Steal
Actions
Set RCaster = (Casting unit)
Set AtackedUnit = (Target unit of ability being cast)
Special Effect - Create a special effect at (Position of RCaster) using UI\Feedback\GoldCredit\GoldCredit.mdl
Wait 0.70 seconds
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at (Position of AtackedUnit) using Abilities\Spells\Undead\AntiMagicShell\AntiMagicShell.mdl
Wait 0.70 seconds
Special Effect - Destroy (Last created special effect)
Player - Add (((Hero level of RCaster) + (Number of units in (Units within 250.00 of (Position of RCaster)))) + (Level of AtackedUnit)) to (Owner of RCaster) Current gold
Unit Group - Pick every unit in (Units within 250.00 of (Position of RCaster)) and do (Actions)
Loop - Actions
Unit - Cause RCaster to damage circular area after 0.00 seconds of radius 250.00 at (Position of RCaster), dealing (((Random real number between 1.00 and 20.00) + (Real((Hero level of RCaster)))) + ((Real((Intelligence of RCaster (Exclude bonuses)))) + 1.00)) damage of attack type Chaos and damage type Sonic
Unit - Cause RCaster to damage RCaster, dealing 50.00 damage of attack type Spells and damage type Normal
Floating Text - Create floating text that reads (((String((Hero level of RCaster))) + (String((Number of units in (Units within 250.00 of (Position of RCaster)))))) + (String((Level of AtackedUnit)))) at (Position of AtackedUnit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
I will attach the map with the spell soon.
-- Nice Spell? -- Or -- Bad Spell? --