| 01-27-2003, 01:41 PM | #1 |
Guest | i need to restrict a special type of unit to an certain area of the map, how can u set up triggers/regions so the unit cant leave... thx |
| 01-27-2003, 01:50 PM | #2 |
EVENT: Unit - A Unit leaves (YOUR REGION) CONDITION: Unit-type of (leaving unit) Equal to (YOUR UNIT TYPE) ACTION: Move (leaving unit) instantly to (Center of (YOUR REGION)) |
| 01-27-2003, 01:52 PM | #3 |
you could do something like Event: unit leaves region Condition: unit-type of triggering unit = whatever ACtion: move him somewhere, like middle of region or to designated spot fr0ggE |
| 01-27-2003, 04:46 PM | #4 |
Guest | that sucks, make it like this: make 4 small region"lines" around the region u want. then make a trigger like: unit enters/leaves (<- both work) region_line_north move unit offset (<- or something like this) .. there u can enter 2 numbers.. x/y .. use for all 4 sides the number 10 (10/10, 10/-10, -10/10, -10/-10) when a unit walks there, it gets moved back, OUT of the region, but no teleporting miles away |
| 01-28-2003, 01:01 PM | #5 |
To avoid the unit being teleported use order unit to move to random point in region. |
| 01-28-2003, 04:01 PM | #6 |
Guest | No, Order Unit is a VERY bad idea. I used this in my gnoll hero rpg map and after some testing I found ways to leave areas even with order AND cinematic showing up when you leave (no controls for player while cinematic). So basicly player could leave the region.. but there is no way to do this if you teleport the unit with a 10 / 10 offset |
| 01-28-2003, 05:17 PM | #7 |
Guest | bloodlusts advice seems to work fine, thx! anyway now i have created a ton of regions, but when i try to save the map it makes an error; "line 920: expected a variable name" any of you know what this means? and just a whole other question, each player gotta start with a handfull of men according to their race, but i can only get it to work if i tell it to remove one unit at the time with a if/then/otherwise (or whatever?), if i tell it to remove a whole group of specific units it just dont work... any help would be appreciated, thx |
