HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How should these triggers be made?

12-21-2003, 02:58 AM#1
Gurrgel
I'm trying to make 2 different spells:

1: Swap Places
You target another unit, friend or foe, 1 second later, the 2 units change places. Tried to make it with moving regions and such, but it didn't work.

2: Call unit
Simply a reversed unit targetting Blink, you target a unit and teleports it to the caster, here below is the trigger I tried to use for this one, but it didn't work.
--Swap--
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Call
Actions
Unit - Move (Target unit of ability being cast) instantly to (Position of (Casting unit))

Don't see any reason why the second one wouldn't work, anyway, I know these ones can be made with simple triggers so pls help me. I have the dummie-spells made, and don't need triggers for the levels since the spells have different range, CD and mana cost for each level.
12-21-2003, 04:05 AM#2
BBDino
for number 2 there is already an abilty that does that, Dark summoning
12-21-2003, 04:10 AM#3
Gurrgel
Damn, forgot about Dark Summoning, thanx for reminding me.
:bangH:

Would still be interested why the trigger doesn't work, if someone could tell me...
12-21-2003, 04:55 AM#4
Balthamos
Well from what I've tried recently with 1.13 it appears that the 'target-point of ability' doesn't work, and I assume the same for target unit of ability. So you'll probably need to use the target of order method. For the first question you require point variables, A and B, you could do it with just 1 but it'll look more accurate with 2, so you set the position of the caster to A and the target to B with targeted unit and then move A to B then B to A and then move A to B again, simply because when A first moves to B A won't actually occupy the position of B since B is technically taking up the space, once B is moved to A then B's position is free and A can take it properly. As long as there aren't any waits there shouldn't be a chance to see A next to B.

I hope this helps. If you don't know about targeted units by orders then I'll explain that, just ask.
12-21-2003, 11:10 AM#5
Gurrgel
I know about them, but dislike the fact that you have to make 2 triggers at least for each spell, one for the order, and one for the casting, did it just since I thought this new Event Response unit targeter would work.
12-21-2003, 11:32 AM#6
chemo
k the first spell i can help u:D

swap places:

trigger01

E:
A unit is issued target object

C:
Type of order is equal to (banish)
Unit type of odered unit is equal to X1
Uniy type of target unit is equal to X2

A:
Set TargetUnit= target unit of issued order
Set PointTarget=Position of target Unit
Set PointCaster=Position of odered Unit



trigger02

E:
A unit starts casting an ability

C:
Unit type of casting unit is equal X1

A:
Set CasterUnit=Casting Unit
Unit - move TargetUnit (instantly) to PointCaster
Unit - move CasterUnit (instanly) to PointTarget



thats my version :D
that was the basic.. u can add some "eye-candy" if u want to :D