Staredit Network

Staredit Network -> UMS Assistance -> Another Question
Report, edit, etc...Posted by flipmonkey on 2006-01-29 at 10:59:26
Im not sure if im setting this right but can sum one tell or give me a trigger on how a unit is not allowed to a certain area with out having this amount of items.
Report, edit, etc...Posted by Carlsagan43 on 2006-01-29 at 11:09:00
OK first put a location around the area that you do not want them to enter. Then have another 1x1 location for the unit you do not want to enter. Have a trigger running that is set up like this:

Trigger
Players:
¤ Player 1
Conditions:
¤ If player one brings at least one any unit to Location 0
¤ PLayer has at most 3 Items
Actions:
¤ Center location 1 on all any unit at location 0
¤ order all any unit at location 1 to location 1
¤ Preserve trigger


Add some hyper triggers and that should work
Report, edit, etc...Posted by Joshgt2 on 2006-01-29 at 11:41:35
Wouldn't that make the unit order itself to move inside the location 0?
Report, edit, etc...Posted by u_dunu_who_me_is on 2006-01-29 at 14:13:11
QUOTE(carlsagan43 @ Jan 29 2006, 10:09 AM)
OK first put a location around the area that you do not want them to enter.  Then have another 1x1 location for the unit you do not want to enter.  Have a trigger running that is set up like this:







Trigger
Players:
¤ Player 1
Conditions:
¤ If player one brings at least one any unit to Location 0
¤ PLayer has at most 3 Items
Actions:
¤ Center location 1 on all any unit at location 0
¤ order all any unit at location 1 to location 1
¤ Preserve trigger


Add some hyper triggers and that should work
[right][snapback]415838[/snapback][/right]


That wouldnt work because location 1 is inside location 0

You would need a few triggers for this.

make 2 locations, one 1x1 square for your unit, and another around the area

Trigger
Players:
¤ Current Player
Conditions:
¤ Brings exactly 0 units to UNIT LOCATION
¤ Brings exactly 0 units to CANT GO HERE
Actions:
¤ Move loaction UNIT LOCATION on whatever unit Anywhere
¤ Preserve


Then:

[c]Commands at most 2 items
Trigger
Players:
¤ Current Player
Conditions:
¤ Bring atleast 1 unit to CANT GO HERE
Actions:
¤ Move (or Order) all men at CANT GO HERE to UNIT LOCATION


that should wrk biggrin.gif
Report, edit, etc...Posted by BLISSARD[VdD] on 2006-01-29 at 22:04:28
What the hell?
you move the UNIT LOCATION on the unit already and then...
you said that to move/order the unit from CANT GO HERE to UNIT LOCATION?
I don't get it... that would do nothing... because the unit is at the UNIT LOCATION already...

Am I right? Humm... maybe I was wrong... or confuse myself... whatever LOL cool1.gif
Report, edit, etc...Posted by IanMM on 2006-01-30 at 13:51:57
Or just use doors.
Report, edit, etc...Posted by fritfrat(U) on 2006-01-30 at 16:27:07
um.. I see this as a much simpler thing. Pardon my lack of using the trigger windows, but I think it's easier to read this way anyways.


Current player brings atleast 3 items to (Item area)

Disable Doodad State for Door.


OR


Current Player Brings at most 2 items to (Item area)
and current player brings atleast 1 any unit to door location,

move all any unit for current player at door location to (location infront of door)
Report, edit, etc...Posted by u_dunu_who_me_is on 2006-01-30 at 16:29:07
QUOTE(BLISSARD[VdD] @ Jan 29 2006, 09:04 PM)
What the hell?
you move the UNIT LOCATION on the unit already and then...
you said that to move/order the unit from CANT GO HERE to UNIT LOCATION?
I don't get it... that would do nothing... because the unit is at the UNIT LOCATION already...

Am I right? Humm... maybe I was wrong... or confuse myself... whatever LOL cool1.gif
[right][snapback]416498[/snapback][/right]


The UNIT LOCATION move condition is only if the unit isnt in CANT GO HERE, so it satys outside of that location
Next Page (1)