HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help pleas simple spell

03-30-2007, 06:15 PM#1
ZODD
I just need a trigger that will make the hero himself and a enamy hero/unit to be teleported toa area ona map


(spell for map ona anime Fate Stay Night) the moves anme will be Ultimate Blade Works
03-30-2007, 07:36 PM#2
Dil999
Uh.. If you mean target an enemy unit, and you both teleport, its easy.
Unit - Starts the effect of an ability
Ability being cast equal to (Your Ability)
Move (Casting unit) instantly to (Your Point)
Move (Target unit of abiluty being cast) instantly to (Your Point)
03-30-2007, 10:55 PM#3
ZODD
ok i under stand taht i think but . how would i make it so later lets say 13 seconds they get teleported from where the move was first started
03-30-2007, 11:28 PM#4
Dil999
To do that you break into a whole nother form level of GUI. Variables.
To do this (leakily, but it works) do this.
Before any of those actions i described do:
Set POINT_CASTER (A custom variable set to point type) to position of casting unit.
Set POINT_CASTED (A custom variable set to point type) to position of target unit of ability being cast.

At the end of those actions i described, do this:
Wait (Duh?) 13 seconds
Move (Casting unit) to POINT_CASTER
Move (Target unit of ability being cast to POINT_CASTED

Edit: Heres the trigger (I did this in 5 minutes, its NON MUI and LEAKY)
Trigger:
OOOOO TEH UBERLEET HAXOR YET STILL LEAKY TRIGGERZORS OOOOOO
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Your Ability
Collapse Actions
Set CASTEDUNITPOINT = (Position of (Target unit of ability being cast))
Set CASTERUNITPOINT = (Position of (Triggering unit))
Unit - Move (Triggering unit) instantly to (Center of (Playable map area))
Unit - Move (Target unit of ability being cast) instantly to (Center of (Playable map area))
Wait 13.00 seconds
Unit - Move (Triggering unit) instantly to CASTERUNITPOINT
Unit - Move (Target unit of ability being cast) instantly to CASTEDUNITPOINT
03-30-2007, 11:52 PM#5
ZODD
ok ill try this
03-31-2007, 02:32 AM#6
Dil999
If that doesnt work (It might not, im not really sure, waits fuck up stuff sometimes) you have to do this:
Make 2 more variables; these should be UNIT type variables. One should be the triggering unit, and one should be the target unit of ability being cast. Then, whenever you see triggering unit or target unit of ability being cast replace it with that corresponding variable.
03-31-2007, 04:03 AM#7
ZODD
yea the first 1 dident work but its working now thanks
03-31-2007, 05:17 AM#8
Dil999
I knew it wouldnt work. After 13 seconds the 'casting unit' and triggering unit had been unused for 13 seconds, so they were cleared.