The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: ryanpokekool on September 28, 2009, 06:16:12 PM

Title: (resolved) item changes you back to the player
Post by: ryanpokekool on September 28, 2009, 06:16:12 PM
OK ill try to be precise :)

I'm making a game when you can buy a car which is a item that has a common event so you can drive it (it changes the player into a car sprite) the question i want to ask is:

how do i make the item change you back to your player when the item is selected from menu second time?

similar to the bike system in Pokemon games

any help will be appreciated :D

thank you the people that helped  :lol:
Title: Re: (request) item changes you back to the player
Post by: Kidfox70 on September 28, 2009, 06:41:01 PM
Well, to be honest, there are alot of different ways to do this. But (understand i'm at college, and don't have RMXP with me, so bare with ME) i'd say put in your common event a switch, Car switch. when you become the car, the switch should be on. make a condictional branch within your common event, that when the car switch is on...next time they select the car item in your menu, have a message asking if they want to walk...have a show choices, yes or no. in the 'yes' branch, make it the sprite switch back to the character. then have the switch turn off. Oh and the 'no' you can put some message or something, but i sugest not to. this is pretty simple. if i don't make sense check the spolier, i tryed to map it out for you... i hope it works...haha.

Spoiler for:

YOUR COMMON EVENT
(lets say this line is the last one in the event. the one that makes your character the car)
Switch: Car Switch = On
conditional Branch: Car switch = On
Do you want to walk?
     Show choices: Yes, No
         Yes:
             Move Event: Player
                            :Change Grapic: (what ever your Characters grapic is)
            Switch: Car Switch = Off
        No:

Else
Title: Re: (resolved) item changes you back to the player
Post by: serge282 on January 20, 2010, 12:05:14 PM
I made a small demo for the people that still don't understand. You will probably understand it, but for the people that don't: I added some comments.