Staredit Network

Staredit Network -> UMS Assistance -> When You Move Locations...
Report, edit, etc...Posted by Revelade on 2004-08-11 at 23:12:48
Ok what I want is this: the location centers on a marine when hes on the overworld. When he touches an enemy, he goes into a battle area, apart from the overworld and I want the location to stay at the location he stayed last.

So if I make the location center on him when he is NOT in the battle area, when he DOES go into the battle area, will the location stay at the last exact spot when he was in the overworld?
Report, edit, etc...Posted by greenreaper on 2004-08-11 at 23:31:27
Well actually, you might have to make 3+ triggers. Here they are.
Trigger 1

Players
Whichever player
Conditions
Switch "1" is "set"
Actions
-Center Location labeled "Marine" on unit "Marine" owned by player "whatever" at "anywhere"
-Preserve Trigger

TRIGGER TWO

Players
"Enemy" Player that controls the enemy units (preferably, but you don't HAVE to.)
Conditions
Player "Enemy" brings at least "1" "unit" to location "marine"
Set Switch "1" to "Clear"
Preserve Trigger

TRIGGER THREE

Players
"Enemy" Player that controls the enemy units (preferably, but you don't HAVE to.)
Conditions
Player "Enemy" brings exactly "0" units to location "marine"
Set switch "1" to "set"
Preserve Trigger


NOTE: If you center location on a unit that does NOT exist, the location will move to the middle of the location you specified the unit would be in.

EXAMPLE: Center location on marine at anywhere. Wow. No marine.....the location will automatically stay at the middle of the map because that is the middle of the location "Anywhere" which is basically the WHOLE map.
Report, edit, etc...Posted by MapUnprotector on 2004-08-11 at 23:39:50
i think what greenreaper said should work
i used a triggers a lot like that in a map im making now and it uses those triggers to stop an air unit from goin over a highland terrain by centering a location when hes in low ground and stop centering it when he leaves low ground so then when he touches highland it would move him back to the location on low ground jump.gif
tuxedo told me that happy.gif
Report, edit, etc...Posted by Vindexus on 2004-08-11 at 23:55:28
That'd work but it seems like too much work. Just do this

QUOTE
Players
- Humans
Condtions
- Bring exactly 0 men to Battle Area
Actions
- Center location Marine on Marine at anywhere
- Preserve Trigger


And this for the battle

QUOTE
Players
- Players
Conditions
- P8 brings at least 1 men to Marine
- Current Player brings at least 1 marine to Marine
Actions
- Center Location Marine on Marine at anywhere
- Move Marine to Battle Area
- Perserve Trigger
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-11 at 23:58:15
Draw a location over your world area and make this trigger.

Conditions:
-currrent player brings at least one men to locaiton world map
Actions:
-Center location 'unit' on men owned by current player at world map.
-Preserve trigger.

When he leaves that location (is warped to the battle area) then the conditions will no longer be true and the location will quit moveing. Thus it will stay where it was last centered.

Of course you can set the conditions backwards and do it this way

"current player brings exactly 0 men to location battle area"

Then when you move into the battle area the location will not center anymore.

uberwoot.gif 1111th Post uberwoot.gif
(last binary post i'll have until 10,000)
Report, edit, etc...Posted by Revelade on 2004-08-12 at 00:08:47
QUOTE((U)Bolt_Head @ Aug 11 2004, 10:58 PM)
Thus it will stay where it  was last centered.



That is all I needed, thanks Bolt, and everyone who helped.
Next Page (1)