Move Region Problem

Aiden

Member
Reaction score
0
I made a trigger to move the region in a random point inside on other region.
Thats ... Ok.

My problem is this trigger
Trigger:
  • Events
    • Unit - A unit enters Barril<gen>
    • Actions
    • Unit - Add Hideee to (Triggering unit)


This trigger dosent work, just works when the unit enter in the old spot of the moved region...

:C
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
only regions made through triggers can be moved.
 

BloodySkullz

Active Member
Reaction score
10
When moving a region through trigger functions,
Any trigger registered with the same region only works for the old location.
You can add this line AFTER the function that moves the region:
Trigger:
  • Trigger - Add to <your trigger> the event (Unit - A unit enters (<your region>))


However it will still function if the units moves to the old region.
So I suggest you create a new region, destroy the old region, than to move it.
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
You cant use a variable region for an event, try it and you wont be able to find the variable in the list. Also you cant move premade regions only variable regions. This is in gui, I am not sure if it can be done in jass, will need to wait for some one to post.
 

Imp Midna

Active Member
Reaction score
52
Also you cant move premade regions only variable regions.
Simply wrong. "Premade" regions are exactly the same as variable regions, the only difference is the variable name of them. You may move them as you like, theres no problem with that.

Now, if the event makes a copy of the region you wont come around either destroying the trigger and creating a new one or using some mean trick that the normal editor does not natively offer (you will need to modify a few files to make it capable of doing that).
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top