| 10-28-2003, 03:23 PM | #1 |
I am trying to create moveable regions in my RPG map. I want to move it to the point where a unit was summoned. this is the trigger i am using. Region - Center (Region i want to move) on (Position of (Summoned unit)) The action window states that this must be declared as a variable. I have tried this and the region never moves. Does someone know how to make the region move proplerly? Or if there is an exsiting thread could i be directed there? If there is no way to move the region; is there a way that i can create new regions under a variable name and then destroy them and recreate again as needed? Thanks in advance. |
| 10-28-2003, 03:54 PM | #2 |
first create a region with the region pallette. than instead of putting current camera bounds put the region's name. |
| 10-28-2003, 04:14 PM | #3 |
oops that was a typo it's fixed now. |
| 10-28-2003, 04:19 PM | #4 |
write your whole trigger out. what are your events and your conditions? |
| 10-28-2003, 04:57 PM | #5 |
Ok here is my trigger in it's base from Event: Unit - A unit Spawns a summoned unit Condtion: (Unit-type of (Summoned unit)) Equal to town portal Actions: Region - Center Feild portal <gen> on (Position of (Summoned unit)) This is the trigger i want use with this region after it is moved. Event: Unit - A unit enters Feild portal <gen> Condition: (Unit-type of (Triggering unit)) Not equal to town portal Actions: Unit - Move (Entering unit) instantly to ((Center of Town portal <gen>) offset by (200.00, 200.00)) I can move units to the new location of the region. The problem is that i cannot move units from the new location of the region. I can enter the initial location and it performs as expected. I tried creating a new region as a variable, but there is no Unit-Unit enters Regions where you can select a variable. Only predefined regions. Hope this explains my problem a little better. |
| 10-28-2003, 05:11 PM | #6 |
You don't need a region for this. You can either: A) Give the summoned unit a Waygate ability and target a region defined by position of another summoned unit and the size (point with size) B) Move the unit to a Point with size (no need for regions). |
| 10-28-2003, 05:39 PM | #7 |
i see no reason why it wouldn't work. does the town portal spawn directly next to its caster? if it did you could just move the region to postion of triggering unit. i had this exact same spell and i even have a working map of it somehwre if you want that map. |
| 10-28-2003, 05:51 PM | #8 |
Tufy: That is a good idea but i have tested it and it doesn't fit my application. I need to keep enemy units from using the waygate. Regiond allow me to do that since i can Add conditions that allow me to prevent their movement. Supra God: well i wanted the spell to have about 500 range but i guess i could just spawn next the the caster with an off set. the problem i'm realy having is using the Unit enters regions event in conjustion with the new location of the region. But i'd love to have a look at that map if you don't mind. |
| 10-28-2003, 05:54 PM | #9 |
sure thing here it is...by the way i coulda done more to it but this was my first ever trigger using spell. made it about a month or so back. i hope that is the correct one. if it has a beast master with a bunch of town portals all on the ground by him than thats it. laos(<~omg that word was supposed to be also) to make it look nice you could play the town portals birth animation and not let it work untill the animation is done but the animation takes a little while. |
| 10-28-2003, 06:03 PM | #10 |
I have no problem creating that effect. I wanted to be able to have allies use the portal as well. this is where the region becomes an issue. If i move in the new location nothing happens. The old location is still active however. But thanks for the info and the help. |
| 10-28-2003, 06:36 PM | #11 |
my map that i posted only lets one person use it but that can be changed easily by just altering the destroy portal and leaving the return trigger on long enuff. i forgot exactly how i did that map tho. it's old. |
| 10-28-2003, 07:37 PM | #12 |
I can make then return to the portal away from town. I want to Allow my allies to travel through the portal to town. I would use the whole region entering event where you create regiond around a poit if only you could select a unit stord in a variable and not preplaced ones only. |
