The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: alfinchkid on October 26, 2007, 08:06:35 PM

Title: [RESOLVED] Stay the night at an inn and warp? [RM2k3]
Post by: alfinchkid on October 26, 2007, 08:06:35 PM
I want to make it so that if you spend the night at an inn, it warps you to the room you stay in. But it warps me even if I tell it not to stay the night! How do I do this?
Title: Re: Stay the night at an inn and warp? [RM2k3]
Post by: djkdjl on October 26, 2007, 08:14:19 PM
Here is the basic structure of how to do it:

set variable #001money_held = MONEY
Text: Stay the night? (Costs: cost,,you have \v[#001])

Choice: Yes/No

Case: YES
CONDITION BRANCH: if #001money_held >= cost
transfer player to the room,,full recovery,,change money (subtract cost).
else
Text: You don't have enough money

Case: NO
Text: Fine then....
Title: Re: Stay the night at an inn and warp? [RM2k3]
Post by: alfinchkid on October 26, 2007, 08:20:14 PM
Yes, that's all good, but is there a way to mimic the blackout effect normal inns do, then when it fades in you're in the room? I'm using the default inn1 jingle for it, btw.
Title: Re: Stay the night at an inn and warp? [RM2k3]
Post by: djkdjl on October 26, 2007, 08:27:26 PM
Yes,,that's not a problem:

Use SET SCREEN TONE command or something similar [if u set all the values to like 0,,the screen should go completely black]

then you can use PLAY BGM command: INN MUSIC

use WAIT command while the song plays,,like WAIT 7 seconds

then you use PLAY BGM command again: the normal music

Transfer Player to the room

and finally use the SET SCREEN TONE COMMAND AGAIN and set all the values to 100 or something (which should make the screen go back to its original shading)

Hope that helps...
Title: Re: Stay the night at an inn and warp? [RM2k3]
Post by: alfinchkid on October 26, 2007, 08:33:17 PM
It does, problem resolved =)