Region Common Events

Burgerland

Veteran
Veteran
Joined
Sep 26, 2015
Messages
331
Reaction score
90
First Language
English
Primarily Uses
N/A
One problem with the event is that any conditional branch "button pressed" needs to be in a parallel process, because otherwise you need to hit the button at exactly the correct time frame (one frame is 1/60 of a second, only luck can get you to hit that short time), and the erase event after a single frame blocked the parallel as well.
I made the common event a parallel process, but it still doesn't activate.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I would not use this script for something you want timed by a button press.


The script is intended to call a common event at the moment you walk onto a tile with that region id.  Chances of you timing your button press to exactly the moment that triggers are incredibly slim.  And as Andar mentioned, you would need it in a parallel process so it keeps on checking just in case it missed it the first time. 


In short - don't use this script.  Have a parallel process event on the map that turns on a new switch then erases itself.  Set your common event to parallel process and condition it by that switch.  Do the test for the button press, and then use Get Location Info to get the player's region into a variable.  Finally, test whether that region is any of the ones you want to know about.


If you need further help, please start a new thread in the Support forum, as it will no longer be an issue/question about this script.


Also, Erase Event does not work on common events.  Only on map events.
 
Last edited by a moderator:

Burgerland

Veteran
Veteran
Joined
Sep 26, 2015
Messages
331
Reaction score
90
First Language
English
Primarily Uses
N/A
I would not use this script for something you want timed by a button press.


The script is intended to call a common event at the moment you walk onto a tile with that region id.  Chances of you timing your button press to exactly the moment that triggers are incredibly slim.  And as Andar mentioned, you would need it in a parallel process so it keeps on checking just in case it missed it the first time. 


In short - don't use this script.  Have a parallel process event on the map that turns on a new switch then erases itself.  Set your common event to parallel process and condition it by that switch.  Do the test for the button press, and then use Get Location Info to get the player's region into a variable.  Finally, test whether that region is any of the ones you want to know about.


If you need further help, please start a new thread in the Support forum, as it will no longer be an issue/question about this script.


Also, Erase Event does not work on common events.  Only on map events.
Alright, see if this works.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top