Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [VX] Random Map Effects, Skill Level: Easy
Shaddow
post Sep 2 2012, 09:20 AM
Post #1


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




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.

Screen Shot



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!


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies (1 - 2)
amerk
post Sep 14 2012, 12:33 PM
Post #2


Level 56
Group Icon

Group: Global Mod
Posts: 1,784
Type: None
RM Skill: Undisclosed
Rev Points: 15




For this, I'm seeing a lava dungeon where fire is bubbling or shooting out of the ground. Or a dark misty cave where different things scurry by in the fog, or different sound effects occur.


__________________________
Go to the top of the page
 
+Quote Post
   
Shaddow
post Sep 14 2012, 01:16 PM
Post #3


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




Yes! Exactly! It's a simple enough task, but the possibilities are really endless, you can even have it damage the player if they get hit, though that'll require a bit of extra work and constantly checking the players location and the randomization of the event and all that.


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 01:04 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker