Hi, RRR! I'm back with another simple eventing tutorial! I hope you enjoyed the puppy last time! This event will allow for random effects on your map, I will show two examples, one where you will have just one event happening at random points on the map, for example: fireballs falling from the sky, and then I will teach you a simple way to make multiple effects happen randomly on the map.
First of all, we are going to be making one event for this, nice and simple. Make the event run on a
Parallel Process, this is kind of important, or it'll lag you or simply won't happen.
Now that the hard part is done, you are going to be required to do a small bit of information gathering. You are going to need to know the amount of squares on your X and Y points of your map. You can actually easily do this by going to your map editor and going to the lower right corner, keep track of the two numbers there.
Next you'll go back to your created event, the first thing you will want to do is create a label; call it something simple like 'Start', next you will make two variables call them Map X and Map Y for easy reference. Set each of those to be random 0 ~ X (X should be the number of either your X or Y maximum that you got earlier).
The next thing you will create is a
move event set it's coordinates to match the variables you just set up Map X and Map Y. I would recommend putting in a WAIT, now so that you do not have it constantly happening and being spammy. Next you must use the
Show Animation button and show whatever effect you wish to have happen.
Finally you will put a
Jump to Label button and put in Start or whatever you named you label. This will cause the event to constantly happen and keep it from randomly throwing out two events at once.
Now, this part covers if you want multiple effects. First you will create another variable, call it something simple like 'effects', set this to be random 0 ~ X (X being the number of effects you want to have).
Next you will create a number of conditional branches equal to the number of effects you are going to have. Have each conditional branch based off the variable effects and have one for each number. Within each number you will put the above event we showed, and simply change the animation in each.
This will cause it to be placed randomly on the map have a random effect each time.
Finally, you can limit the X and Y of the map if you only want this to happen within a small area of your map.
I hope this was helpful and useful to everyone! Until next time!