Gw Temp

Menu

Tutorial - 'Egg Hunt Tutorial' by l3vi

An item about RPGMaker 2000 posted on

Blurb

How to make an egg hunt minigame! Festive fun for all!

Body

Okay, this is my third tut, so I hope it is good. You have probably seen one of these scripts before but Mine I have so it is random and it is probably different. But i GARUNTEE you that I CAME UP WITH IT ON MY OWN. Before I start I want you to know that this requires experience with switches and variables. SO if you do not know them, you might want to learn them.Now to the tut...

Start by making these switches: TimeStart ; Prize ; Egg1 ; Egg2 ; Egg3 ; Egg4 (if you are going to make more than 4 eggs than keep going until you are done)

And these Variables: EggsFound ; RandEgg

B4 I start I want to let you know I am doing an egg hunt as the example. You can change it to whatever you want. Okay, you start off your map as a square map, off in the corner somewhere you make a new event. Do not give it a graphic and make it Auto Start. Also, make it below hero. You want to start a new timer operation which is on the first tab. set it for how much time they have to find all of the eggs. DO NOT set it at start timer. Set it as Set timer. Then put a message that says something like "Find all 4 eggs before time runs out!" Then, this is something optional. Put a Show choice (first tab) and say instructions and start. I think that is self explanitory. Under instructions put a messege that says the instructions. Then go to timer operations and say start timer. Change the TimeStart switch On and change the Variable RandEgg to random 1*5 or however different choices you want. Under the start case do the same thing except make the instructions say "BEGIN!!!" this event should now look like this:
<>Timer Operations: Create Xm.Xs
<>Mssg: Bla Bla Bla!
<>Show Choice: Instructions/Start
:[Instructions] Case
<>Mssg: Stupid Instructions about game....
<>Timer Operation:StartTmr
<>Change Switch:[xxxx:TimeStart]-ON Set
<>Variable CH:[xxxx:RandEgg]+,Randm[15]
<>
:[Start] Case
<>Mssg: BEGIN!!!
<>Timer Operation:StartTmr
<>Change Switch:[xxxx:TimeStart]-ON Set
<>Variable CH:[xxxx:RandEgg]+,Randm[15]
<>
:END Case
Now, in this same event, you make a new page. You have the Event Conditions at Switch [xxxx:TimeStart]On. Do not set a graphic. Set it as push key, Over or Under Hero, and do not insert any coding. Then, for the next event. You make new event right next to the last event. Set the event conditions at Timer 0min 0 sec less. No Graphic, parralell process, and over or under hero. In the coding enter a sound effect (Optional) which is located on the third tab. Make a message saying something like "YOU FAILED" and you can have the rest however you want. This was what will happen when you run out of time. Now to the eggs! You can make them have a graphic or not. In this tut there will not be a picture. Just pictures of bushes that you can look in. So, you make trees, but do not add on the bottom of them. and any bushes do not add a graphic. Then go into the event editor. Chose however many places there will be an egg. I will use four. I will use one bush, two tree bottoms, and a tree stump. For the bush, I will make a new event where the bush will appear. On the first page, I will set the event conditions to Variable RandEgg 1 or above. I will set the graphic as a bush, make it push key, and same level as hero. Then for the coding I will start with a fork condition. Have it set so if the variable Egg1 is on and have an else case. Under the first case, have a message that says something like "You have already gotten the egg from here!" Under the else case, make a message that says "Do you want to check here?" Then make a Show choice with yes or no. Under the yes case make a sound effect (optional). Then put a message that says "You found an egg!". And change the variable EggsFound + 1. Then! You add a change switch. Change the switch Egg1 On. Leave the no case blank. Now for the random part... If you want this bush ever to show up again, another time, you copy this page but change the event conditions to Rand Egg x or above. For every time you do not want it to give you an egg, just wait to see the coding. This is what the coding should look like for what you just did:
Egg1 Rand1:
<>Fork Optn: Switch:[xxxx:Egg1]-On
<>Mssg:You already looked here!
:Else Case
<>Mssg:Look here?
<>Show Choice Yes/No
:[Yes] Case
<>Play SE: any! (optional)
<>Mssg: You found an egg!
<>Variable Ch:[xxxx:EggsFound]+ ,1
<>Change Switch:[xxxx:Egg1]-On set
<>
:[No] Case
<>
:End Case
<>
: End Case
All you do for the other four items is copy that page, change it a little, and change the graphics. and the variables. When you do this, make EXTRA SURE, that each random number has four eggs, or however many you chose. Now for the places without eggs. It is SUPER SIMPLE! All you do, is start a new event. Change the graphic to whatever it should be. Change the event conditions to RandEgg 1 or above for the first time. Have it set at push key. and Same Level as Hero. The coding is just a few lines. This is what they should look like:
<>Mssg: Would you like to look here?
<>Show Choice: Yes/No
:[Yes] Case
<>Mssg: Nothing!
:[No] Case
<>
:End Case
I think you should be able to figure out how to do the next few pages of this event. Its about the opposite from what I will now tell you. You know earlier how you made the event for the ones that give you an egg? The random times you get it? Well, now for the times you do not get an egg. All you do is copy the page from the times you did not get an egg, and change the event conditions to Variable RandEgg x or Above! Thats all you do for the eggs, of course you have to have up to five pages if your making it five random times, 6 for 6 random times, 7 for 7 random times etc...
Now for the part where you get points or whatever. BUT FIRST! I want you to remember when you made the very first two events. One for the failure? Put another event next to that! Oooh! This is getting complicated now!!! Well, back to the tut. In that event make the Event conditions be Variable EggsFound 4 above. parralell process, over or under hero. Make the coding just have a Sound Effect (optional) and a message saying to go talk to the man (you will see why later) Then! Make another event somewhere off in the screen. Give it a graphic of a Man or something. Give it two pages. On the first page, leave the event conditions blank, Push Key, and Same Level as Hero. Have the coding have a message saying something like "Please! Find all of the eggs! On the 2 page have the event conditions set Variable EggsFound 4 above. have it Push Key, Same Level as Hero. have the coding having a message saying something like thank you for finding all of my eggs! Teleport the player somewhere(optional). And Change the switch TimeStart off! Now You are done!

I hope you understood it. I understand that it probably is hard to understand. If you would like me to explain it to you please e-mail me @ l3vi_98@yahoo.com. It may take me a day to reply though. I really hoped you like it! And if you cannot understand the part for where there are no eggs, I am really sorry! I only had a few minutes a day to type this and soon I wont even be able to come on. Just e-mail me for more of an explanation. Please tell me if you like it or not! Thank you!