Assigning a EnterRegion event to multiple regions [Solved]
Posted: Wed Jan 02, 2013 4:30 pm
I'd like to know if it is possible to assign a EnterRegion event to more than one region?
I have already tried the below:With the code above, the event only happens when I enter on region1, and I'd like it to happen whenever the player enters in one of the specified regions (region1 through region4).
Also, before anyone suggests creating multiple events applying each one to each region, I spent quite some time working on a script that, depending on which region is entered, cause some events to happen on a location. Since these events are all very similar, I'd like to keep them all in one place.
I have already tried the below:
Code: Select all
OnEnterRegion(
function(region, character)
<callbacks n' stuff>
end,
"region1","region2","region3","region4
)Also, before anyone suggests creating multiple events applying each one to each region, I spent quite some time working on a script that, depending on which region is entered, cause some events to happen on a location. Since these events are all very similar, I'd like to keep them all in one place.