- Joined
- Apr 23, 2006
- Messages
- 17
Ok i am making a spell its called Energy Balls ( but my variables will have names like Ball_attack_caster )
i didnt knew name yet when i started ^^.
ok what i made is this:
first a spell based on shockwave made it for units.
also a spell based on shockwave for a hero.
a spell called based of silence for a unit.
a spell based on abolish magic.
this is what it is suppost to do: when the hero cast the spell there will come a dummyunit wich cast silence ( makes the hero have no attack) then there will come each second a dummyunit wich will cast teh unitshockwave at the point of the unit wich the hero casted his spell on. and when the hero moves or run out of mana ( less then 15 ) it will stop.
This is what i got: BTW it works once 2nd time it does take mana but it wont cast the
spell(unitshockwave).
Trigger 1:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Energy Attack
Actions
Unit - Order Ball_Attack_Caster to Hold Position
Set BallAttack_IS_CANCLED = False
Set Ball_Attack_Caster = (Triggering unit)
Set Ball_Attack_AttackPoint = (Position of (Target unit of ability being cast))
Set Energy_Attack_Mana = (Integer((Mana of Ball_Attack_Caster)))
Unit - Create 1 Dummy (Ball Attack) (NOATK) for (Owner of (Target unit of ability being cast)) at (Position of Ball_Attack_Caster) facing Default building facing degrees
Unit - Order (Last created unit) to Neutral Dark Ranger - Silence (Position of Ball_Attack_Caster)
Wait 0.01 seconds
Trigger - Run Ball Attack Attack <gen> (ignoring conditions)
Trigger - Run Ball Attack Animation <gen> (ignoring conditions)
Trigger - Turn on Cancle Ball Attack <gen>
Trigger 2:
Events non
Conditions non
Actions
Animation - Reset Ball_Attack_Caster's animation
Animation - Play Ball_Attack_Caster's attack - 1 animation
Wait 1.00 seconds
Animation - Reset Ball_Attack_Caster's animation
Animation - Play Ball_Attack_Caster's attack - 2 animation
Wait 1.00 seconds
Trigger 3:
Event non
Conditions
Energy_Attack_Mana Greater than or equal to 15
Actions
Unit - Create 1 Dummy (Ball Attack) for (Owner of Ball_Attack_Caster) at ((Position of Ball_Attack_Caster) offset by 50.00 towards ((Facing of Ball_Attack_Caster) - 90.00) degrees) facing Default building facing degrees
Set Ball_Attack_Dummy = (Last created unit)
Unit - Order Ball_Attack_Dummy to Orc Tauren Chieftain - Shockwave Ball_Attack_AttackPoint
Unit - Set mana of Ball_Attack_Caster to ((Mana of Ball_Attack_Caster) - 7.50)
Wait 1.00 seconds
Unit - Remove Ball_Attack_Dummy from the game
Unit - Create 1 Dummy (Ball Attack) for (Owner of Ball_Attack_Caster) at ((Position of Ball_Attack_Caster) offset by 50.00 towards ((Facing of Ball_Attack_Caster) + 90.00) degrees) facing Default building facing degrees
Set Ball_Attack_Dummy = (Last created unit)
Unit - Order Ball_Attack_Dummy to Orc Tauren Chieftain - Shockwave Ball_Attack_AttackPoint
Unit - Set mana of Ball_Attack_Caster to ((Mana of Ball_Attack_Caster) - 7.50)
Wait 1.00 seconds
Unit - Remove Ball_Attack_Dummy from the game
Set Energy_Attack_Mana = (Integer((Mana of Ball_Attack_Caster)))
Trigger - Run (This trigger) (checking conditions)
Trigger 4:
Events
Unit - A unit Is issued an order targeting an object
Unit - A unit Is issued an order targeting a point
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Not equal to (Order(shockwave))
(Triggering unit) Equal to Ball_Attack_Caster
Actions
Set BallAttack_IS_CANCLED = True
Unit - Create 1 Dummy (Ball Attack) (DIspel) for (Owner of Ball_Attack_Caster) at (Position of Ball_Attack_Caster) facing Default building facing degrees
Unit - Order (Last created unit) to Night Elf Dryad - Abolish Magic Ball_Attack_Caster
Trigger - Turn off Ball Attack Animation <gen>
Trigger - Turn off Ball Attack Attack <gen>
Trigger - Turn off Cancle Ball Attack <gen>
Wait 1.00 seconds
Animation - Reset Ball_Attack_Caster's animation
if u want u can use this idea for making normal spells channeling but plzz give me credits ( the one who helps me will get credits in my map.
i didnt knew name yet when i started ^^.
ok what i made is this:
first a spell based on shockwave made it for units.
also a spell based on shockwave for a hero.
a spell called based of silence for a unit.
a spell based on abolish magic.
this is what it is suppost to do: when the hero cast the spell there will come a dummyunit wich cast silence ( makes the hero have no attack) then there will come each second a dummyunit wich will cast teh unitshockwave at the point of the unit wich the hero casted his spell on. and when the hero moves or run out of mana ( less then 15 ) it will stop.
This is what i got: BTW it works once 2nd time it does take mana but it wont cast the
spell(unitshockwave).
Trigger 1:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Energy Attack
Actions
Unit - Order Ball_Attack_Caster to Hold Position
Set BallAttack_IS_CANCLED = False
Set Ball_Attack_Caster = (Triggering unit)
Set Ball_Attack_AttackPoint = (Position of (Target unit of ability being cast))
Set Energy_Attack_Mana = (Integer((Mana of Ball_Attack_Caster)))
Unit - Create 1 Dummy (Ball Attack) (NOATK) for (Owner of (Target unit of ability being cast)) at (Position of Ball_Attack_Caster) facing Default building facing degrees
Unit - Order (Last created unit) to Neutral Dark Ranger - Silence (Position of Ball_Attack_Caster)
Wait 0.01 seconds
Trigger - Run Ball Attack Attack <gen> (ignoring conditions)
Trigger - Run Ball Attack Animation <gen> (ignoring conditions)
Trigger - Turn on Cancle Ball Attack <gen>
Trigger 2:
Events non
Conditions non
Actions
Animation - Reset Ball_Attack_Caster's animation
Animation - Play Ball_Attack_Caster's attack - 1 animation
Wait 1.00 seconds
Animation - Reset Ball_Attack_Caster's animation
Animation - Play Ball_Attack_Caster's attack - 2 animation
Wait 1.00 seconds
Trigger 3:
Event non
Conditions
Energy_Attack_Mana Greater than or equal to 15
Actions
Unit - Create 1 Dummy (Ball Attack) for (Owner of Ball_Attack_Caster) at ((Position of Ball_Attack_Caster) offset by 50.00 towards ((Facing of Ball_Attack_Caster) - 90.00) degrees) facing Default building facing degrees
Set Ball_Attack_Dummy = (Last created unit)
Unit - Order Ball_Attack_Dummy to Orc Tauren Chieftain - Shockwave Ball_Attack_AttackPoint
Unit - Set mana of Ball_Attack_Caster to ((Mana of Ball_Attack_Caster) - 7.50)
Wait 1.00 seconds
Unit - Remove Ball_Attack_Dummy from the game
Unit - Create 1 Dummy (Ball Attack) for (Owner of Ball_Attack_Caster) at ((Position of Ball_Attack_Caster) offset by 50.00 towards ((Facing of Ball_Attack_Caster) + 90.00) degrees) facing Default building facing degrees
Set Ball_Attack_Dummy = (Last created unit)
Unit - Order Ball_Attack_Dummy to Orc Tauren Chieftain - Shockwave Ball_Attack_AttackPoint
Unit - Set mana of Ball_Attack_Caster to ((Mana of Ball_Attack_Caster) - 7.50)
Wait 1.00 seconds
Unit - Remove Ball_Attack_Dummy from the game
Set Energy_Attack_Mana = (Integer((Mana of Ball_Attack_Caster)))
Trigger - Run (This trigger) (checking conditions)
Trigger 4:
Events
Unit - A unit Is issued an order targeting an object
Unit - A unit Is issued an order targeting a point
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Not equal to (Order(shockwave))
(Triggering unit) Equal to Ball_Attack_Caster
Actions
Set BallAttack_IS_CANCLED = True
Unit - Create 1 Dummy (Ball Attack) (DIspel) for (Owner of Ball_Attack_Caster) at (Position of Ball_Attack_Caster) facing Default building facing degrees
Unit - Order (Last created unit) to Night Elf Dryad - Abolish Magic Ball_Attack_Caster
Trigger - Turn off Ball Attack Animation <gen>
Trigger - Turn off Ball Attack Attack <gen>
Trigger - Turn off Cancle Ball Attack <gen>
Wait 1.00 seconds
Animation - Reset Ball_Attack_Caster's animation
if u want u can use this idea for making normal spells channeling but plzz give me credits ( the one who helps me will get credits in my map.