Notice: fwrite(): Write of 483 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - How to make an inn?[PROBLEM SOLVED]

The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: syafiqpilot on April 27, 2010, 01:56:59 PM

Title: How to make an inn?[PROBLEM SOLVED]
Post by: syafiqpilot on April 27, 2010, 01:56:59 PM
Hey i want to make an inn..i mean like i can check in at the inn ..How?also how to make graphic event move?like people moving one place to other,people going out from door.How?
Title: Re: How to make an inn?
Post by: Grafikal on April 27, 2010, 03:40:19 PM
To make a simple and successful Inn, do something like this:

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Text:
   Welcome! A night's stay is only 10 G. Would you like to stay a night?
Choice Branch:
   >Yes:
         Conditional Branch: IF [Gold] > 10 G
               >I'm sorry, you don't seem to have enough money to stay the night.
               >Exit Event Processing
         ELSE:
               Text:
                    Have a good night!
               Decrease Gold: -10
               Tint Screen: -255,-255,-255 30Frame(s)
               SE: (whatever sound effect you want for a good sleep)
               Party Recover ALL
               Wait: 60 Frame(s)
               Tint Screen: 0,0,0 30Frames(s)
               Exit Event Processing
   >No Thanks:
          Text:
               Ok. Please come back if you need a good night's sleep.
          Exit Event Processing
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

So basically, you walk up to the NPC, the player interacts with the event and the first thing that happens is a text message from the NPC is displayed telling you the price and asking if you want to stay the night. Just after that, a choice box will appear with a YES or NO answer. If yes, then there's a conditional statement checking if you have the correct amount of gold to stay the night. If you do, then the NPC will display a text message, you'll lose 10 gold (for the price), the screen will take 30 frames to fade to black, a sound effect will play denoting that you're sleeping or something, the whole party will recover their stats, the screen will stay black for about 2 seconds, then take 30 frames to fade back to normal. Then you're done. If you do NOT accept sleeping the night, then the NPC will display a text message saying that you can comeback whenever.
Title: Re: How to make an inn?
Post by: Zylos on April 27, 2010, 04:56:40 PM
http://rmrk.net/index.php/topic,32016.0.html

:mad:


Also, to make people move, just use the move event command.
Title: Re: How to make an inn?
Post by: syafiqpilot on April 28, 2010, 10:01:30 AM
Quote from: grafikal on April 27, 2010, 03:40:19 PM
To make a simple and successful Inn, do something like this:

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Text:
   Welcome! A night's stay is only 10 G. Would you like to stay a night?
Choice Branch:
   >Yes:
         Conditional Branch: IF [Gold] > 10 G
               >I'm sorry, you don't seem to have enough money to stay the night.
               >Exit Event Processing
         ELSE:
               Text:
                    Have a good night!
               Decrease Gold: -10
               Tint Screen: -255,-255,-255 30Frame(s)
               SE: (whatever sound effect you want for a good sleep)
               Party Recover ALL
               Wait: 60 Frame(s)
               Tint Screen: 0,0,0 30Frames(s)
               Exit Event Processing
   >No Thanks:
          Text:
               Ok. Please come back if you need a good night's sleep.
          Exit Event Processing
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

So basically, you walk up to the NPC, the player interacts with the event and the first thing that happens is a text message from the NPC is displayed telling you the price and asking if you want to stay the night. Just after that, a choice box will appear with a YES or NO answer. If yes, then there's a conditional statement checking if you have the correct amount of gold to stay the night. If you do, then the NPC will display a text message, you'll lose 10 gold (for the price), the screen will take 30 frames to fade to black, a sound effect will play denoting that you're sleeping or something, the whole party will recover their stats, the screen will stay black for about 2 seconds, then take 30 frames to fade back to normal. Then you're done. If you do NOT accept sleeping the night, then the NPC will display a text message saying that you can comeback whenever.

Okay but i'm using RPG Maker xp..So is it the same ?
Title: Re: How to make an inn?[PROBLEM SOLVED]
Post by: syafiqpilot on April 28, 2010, 11:16:29 AM
Okay i just create my own inn style using the event :) Thnx for the help anyways
Title: Re: How to make an inn?[PROBLEM SOLVED]
Post by: Seroms_01 on July 18, 2010, 08:11:56 AM
syafiqpilot I was wondering if It worked cause I found I minor error in the Event.

grafikal I don't mean to be picky but for people who are new and are trying to find tutorials i would like to add that you got the

Conditional branch: If [GOLD] > 10G Sequence.

Switched with:

The Branches Else statement.

I don't want to seem like ocdish but ya that all.
         
I you want to check /just read this over,

Conditional Branch: IF [Gold] > 10 G
                >I'm sorry, you don't seem to have enough money to stay the night.
                >Exit Event Processing
          ELSE:
                Text:
                     Have a good night!
                Decrease Gold: -10
                Tint Screen: -255,-255,-255 30Frame(s)
                SE: (whatever sound effect you want for a good sleep)
                Party Recover ALL
                Wait: 60 Frame(s)
                Tint Screen: 0,0,0 30Frames(s)
                Exit Event Processing
    >No Thanks:
Title: Re: How to make an inn?[PROBLEM SOLVED]
Post by: Zylos on July 18, 2010, 11:51:02 AM
First of all, the thread is several months old and the original poster has long since left (new people who come just for resources and advice tend to do so once they've found what they're looking for).

Secondly... what the heck is different about what you wrote and what Grafikal wrote? The event should work just fine with the commands that he gave.