HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Mirror World

12-07-2008, 01:31 PM#1
wraith
Erm well I have come back after a long time and is sorry for all the dumb questions i have made over the few years, over the thread I have been trying but weren't really trying. Now I need some help over the water war issue again. I now have some experience with the editor and stuff and i have got this trigger up and running but it teleports me out of the map

Trigger:
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(AboveWater <gen> contains (Triggering unit)) Equal to True
Collapse Then - Actions
Set SubmergeBelow = (Center of Underwater Surface <gen>)
Set SubmergeAbove = (Center of Above Water Surface <gen>)
Unit - Move (Triggering unit) instantly to (SubmergeBelow offset by (Distance between (Position of (Triggering unit)) and SubmergeAbove) towards (Angle from (Position of (Triggering unit)) to SubmergeAbove) degrees)
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(UnderWater <gen> contains (Triggering unit)) Equal to True
Collapse Then - Actions
Set SubmergeBelow = (Center of Underwater Surface <gen>)
Set SubmergeAbove = (Center of Above Water Surface <gen>)
Unit - Move (Triggering unit) instantly to (SubmergeBelow offset by (Distance between (Position of (Triggering unit)) and SubmergeBelow) towards (Angle from (Position of (Triggering unit)) to SubmergeBelow) degrees)
Else - Actions

Above water surface is at Top right of the "1st World"
UnderWater surface is at top right of the "2st world"
12-07-2008, 02:43 PM#2
Anitarf
You need to switch these two:
(Angle from (Position of (Triggering unit)) to SubmergeAbove)

Alternatively, you should just get the absolute offset between worlds, so if the submerged area is some distance to the right of the unsubmerged area then simply move the unit that distance to the right of it's current position.
12-07-2008, 02:56 PM#3
Kwah
I have an old trigger like this, that worked. I'll look for it.

Also, leaks. :P
12-08-2008, 12:28 AM#4
wraith
Solved
12-09-2008, 09:41 AM#5
Tide-Arc Ephemera
Just for the record, look under "WRONG" in my signature. Though, it does help if you point out what your problems are when you solve them, as in - It was a problem with how the points were being set, I fixed up the math and it's A-OK!