HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help with another spell

08-14-2003, 06:01 AM#1
badomen
ok i want it so when i cast the spell (based off sleep) it moves the caster to position of targeted unit instantly attacks then moves him back to where he was

problem..not as easy as it sounds can anyone help?

EDIT: oh yeah the sleep spell stuns them for 2,3,4 second (lvl 1,2,3) so i want him at lvl 1 to stay there attacking unit for 2 sec then lvl 2 for 3 sec and so on...
08-14-2003, 06:59 AM#2
ElephantPK
Sorry i can't help ya but thats a pretty cool spell idea
08-14-2003, 07:07 AM#3
badomen
thanks

first.. for saying cool spell

seccond... for getting my hopes up that someone fig out the spell

lol still working on it but cant get it to go!!!!!
08-14-2003, 03:37 PM#4
Jitb
There probably is a better solution, but I think this should work.

You need a Variable called "TARGET" and a region called "CASTER".

Trigger 1
Event - A unit is issued an order targetting an object
Condition - Issued Order = Sleep
Action - Set TARGET = Target of Issued Order

Trigger 2
Event - A unit begins the effect of a spell
Condition - Ability Being Cast = Sleep
Action -
Move CASTER instantly to position of (Casting) unit

Move (Casting) unit instantly to point with offset (Position of TARGET(Random number between 100 and-100, Random number between 100 and -100))

Order (Casting) unit to attack TARGET

Wait .50 seconds

Move (Casting) unit instantly to (Center of(CASTER))

Move CASTER to wherever it was originally
08-14-2003, 09:23 PM#5
Zoi
I think Jitb said exactly what I was going to say.
You might have to play around with the amount of time on that WAIT, depending on your char's cooldown, because it could tele back before he actually hits the target.
08-15-2003, 01:58 AM#6
Thunder-Hunter
I have an idea. Maybe make it so as you start casting (not effect of spell, just start), it will create a SHADE (or w/e, as long as the computer controls it) and then move CASTER STAND *region* to the shade. then move region CASTER TARGET to the postiotion of enemy.

A) Move "Spell Person" to Region CASTER Target, then do w/e u want

B) Move "Spell Person" to region CASTER Stand and then do w/e..

Hope this helps.



Hmm.... The idea before mine might be better/more effecint, I dunno.... anyways here are 2 ideas for you to try out