Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] Stay the night at an inn and warp? [RM2k3]

Started by alfinchkid, October 26, 2007, 08:06:35 PM

0 Members and 1 Guest are viewing this topic.

alfinchkid

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?

djkdjl

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....
"If u'r about to die,,then think of how good ur life has treated u up to this point.  On the
other hand,,if life hasn't treated u good up to this point,,then take joy in the fact that
it's not going to bother u for much longer."

alfinchkid

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.

djkdjl

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...
"If u'r about to die,,then think of how good ur life has treated u up to this point.  On the
other hand,,if life hasn't treated u good up to this point,,then take joy in the fact that
it's not going to bother u for much longer."

alfinchkid