HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

move region?

05-24-2003, 09:59 PM#1
SkylineGT[FB]
does any one know how to use the 'move region' trigger? the only thing that is giving me problem is that the region has to be a variable. just to let u know, i am not to good with understanding the variables. so, its kinda hard to figure it out.

so i was messing with it 2day, and this is what i cam up with:

action
set hill= hill<gen>

action
region - center hill <gen> on (random point in (playable may area))

i didnt have time to test this or add the events. but i think that this should work. i have never seen any moved regions in war3 maps.
05-24-2003, 10:31 PM#2
Draco
Ok, here's the facts when you move a region.

1. Events can not tell that the region has moved. That means if you are using a unit enters region event, it will register the first location of the region, NOT ANY OTHER SPOT.

2. If units are ordered to move to a region that has been relocated (or they are moved instantly, whatever), THEY WILL MOVE TO THE NEW SPOT.

- - -

There, do ya see? Actions are good but Conditions and Events won't work with it anymore. :D
05-24-2003, 10:35 PM#3
SkylineGT[FB]
events dont work? will this work then? time - elapsed time is equal to 5 minutes

move region to reandom place on map?
05-24-2003, 10:40 PM#4
Draco
Of course you do can that, but remember, after you move a region EVENTS AND CONDITIONS WILL NOT WORK FOR "Entering/Leaving Regions"

:D
05-24-2003, 10:54 PM#5
SkylineGT[FB]
ooo. i see. ok thx.
05-25-2003, 08:05 AM#6
AIAndy
Of course using JASS you can reregister the events after relocating, so they work for the new location.
05-25-2003, 09:35 AM#7
ChrydGod
Very clever AIAndy, i nearly forgot about the event registration functions.

in other words, it can be done... I LOVE JASS !!!

Regards
move region? - Wc3C.net