HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Does anyone know how to do a good push spell?

09-06-2003, 03:18 PM#1
Xzarol
I was wondering if anyone did. And when I mean good is like actually sliding smoothly back. Does anyone know how? Please help me.
09-06-2003, 03:27 PM#2
Bloodlust
i just did it

u need to do the following.......... (i suggest stormbolt as spell)

make triggers to detect that the spell is being cast
then move the unit back with tons of small "move unit instant"
09-06-2003, 03:30 PM#3
Xzarol
In your thread I saw that it had all those problems and stuff. Could you post basically what im supposed to do? I dont know how to set up the target with variables etc. And also I dont know how to make it go the direction the casters facing.
09-06-2003, 06:37 PM#4
Bloodlust
create a new spell based on stormbolt and give it min 3 seconds stun at every lvl

the first trigger u need is:

HeroTargetMS
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Issued order) Equal to (Order(thunderbolt))
Actions
Set MindStrikeTarget = (Target unit of issued order)

"mindstriketarget" is my unit-variable create one with a name u like
this trigger does not more than working around the crappy work of blizzard


HeroMoveMS
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mind Fist
Actions
Set MindstrikeAngle = (Integer((Angle from (Position of MindStrikeTarget) to (Position of (Casting unit)))))
Wait 0.20 game-time seconds
Unit - Move MindStrikeTarget instantly to ((Position of MindStrikeTarget) offset by 100.00 towards (180.00 + (Real(MindstrikeAngle))) degrees)


thats the "basic"... Mind Fist is my spell
MindStrikeTarget is an integer-variable that saves the direction to push the target
"100.00 towards [...]" is how far the unit will be pushed back

ok... ill post the overall trigger of my ability now without further explaintation




HeroMoveMS
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mind Fist
Actions
Set MindstrikeAngle = (Integer((Angle from (Position of MindStrikeTarget) to (Position of (Casting unit)))))
Wait 0.20 game-time seconds
Unit - Move MindStrikeTarget instantly to ((Position of MindStrikeTarget) offset by 100.00 towards (180.00 + (Real(MindstrikeAngle))) degrees)
Animation - Play MindStrikeTarget's death animation
Wait 0.20 game-time seconds
Unit - Move MindStrikeTarget instantly to ((Position of MindStrikeTarget) offset by 100.00 towards (180.00 + (Real(MindstrikeAngle))) degrees)
Wait 0.20 game-time seconds
Unit - Move MindStrikeTarget instantly to ((Position of MindStrikeTarget) offset by 100.00 towards (180.00 + (Real(MindstrikeAngle))) degrees)
Wait 0.20 game-time seconds
Unit - Move MindStrikeTarget instantly to ((Position of MindStrikeTarget) offset by 100.00 towards (180.00 + (Real(MindstrikeAngle))) degrees)
Wait 0.20 game-time seconds
Unit - Move MindStrikeTarget instantly to ((Position of MindStrikeTarget) offset by 100.00 towards (180.00 + (Real(MindstrikeAngle))) degrees)
Wait 0.20 game-time seconds
Unit - Move MindStrikeTarget instantly to ((Position of MindStrikeTarget) offset by 100.00 towards (180.00 + (Real(MindstrikeAngle))) degrees)
Wait 0.20 game-time seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of MindStrikeTarget) Greater than or equal to 1.00
Then - Actions
Animation - Play MindStrikeTarget's stand animation
Else - Actions
Do nothing
09-06-2003, 08:02 PM#5
Xzarol
You are my hero. Your names going down in me map. Oh by the way do you know how to make it where the ability will correctly level or do I just need to stay with stormbolt and increase the damage it does?