![]() |
||||||||||||||
|
||||||||||||||
blade2k
» articles & tutorialsImproved Inn
Okay, now with the standard RPG Maker inns some players may be looking for a difference. Well this tutorial will show you how to make an more interesting inn where the inn charges a rate per person so the amount the player will pay will changed depending on how many people they have in the party. First off start yout Inn event by making the Innkeeper say hello or something, such as: InnKeeper: Goodday sir! How may I help you? Then you'll want to do a show choice in which you put: Choice 1: I'd like a room please: Choice 2: How much is a room? Choice 3: Cancel Next you'll want to decide how much you'll want your inn to cost PER party member. So you could have for instance: Innkeeper: It is 10 Gil per person. This is what you'd out under the 'How much is a room?' choice. So with a full party the Inn should now cost 40 Gil. So in the 1st Choice: 'I'd like a room please.' you'll need the following: 1st step: Make a variable option linking to the amount of party members in the team, (this is found in the bottom section under 'Other') so if there is one part memeber the variable will be set to 1, etc etc.. Call it something like 'Party Size'. 2nd Step: Make a Branch (or Fork Option) to link with your 'Party Size' Varibale and set it to activae if the variable is eqaul to 4. No excepting case is required here. 3rd Step: In the Branch have the Innkeeper say: Innkeeper: 4 people? That will be 40 gil. Do you wish to stay the night? So, the innkeeper will recoginse that there is 4 people in the party and charge then the rate it is per person, so 4 people x 10 Gil = 40 Gil 4th Step: Now give the player the option to stay at the inn so we'll need another show choice command here. Make it something like... Choice 1: Yes Choice 2: No 5th Step: Under the 'Yes' option create another branch and set it to have an execpting case. Make this Branch condition activate if the party has 40 Gil or more using the money option. 6th step: Under the Branch make remove 40 Gil from the party's money. Then have the innkeeper say something like: Innkeeper: Goodnight! 7th Step: Now for the creative part. You can modify this to your own taste or you can leave it how i suggest it. Fade the screen out and play the inn music making sure there is a 'wait' long enougth for the inn music to finnish. At this point, I put an emoticon in of a sleep bubble. Then fade the picture back in and use the complete healing option to fully heal your active party. The have the Innkeeper say something like: Innkeeper: Did you enjoy your stay? Please come again. Step 8: Now to round it off, in the excepting case of the branch we've just been working on, put something like: Innkeeper: I'm sorry, it looks like you don't have enough Gil to spend the night. You've just now made an inn which will charge you 40 for 4 people staying the night! Pretty cool huh? Now you'll need to expand this a bit! but don't worry you can copy and past most of this and only have to change a few things! Step: 9 Copy your 1st variable, the 'Party Size' Varibale and the 1st branch. Now Paste this after the no option in the 'do you wish to stay yes/no' choice. The change it so the variable will be 3 and the amount and gil taken from the team mathec so it would be 3 people x 10 gil = 30 gil. Repeate step 9 two more time,s reducing the price and varibale so the inn will now let any party of size stay at the inn with the equivalent cost to the size. It now should look something like this: <Message>Innkeeper: Goodday sir. How may I help you? [Show Choice] I'd like a room please/How much is a room?/Cancel [I'd like a room please].handler Variable Oper[0005:Party Size] Set Party Size Branch Var if [0005:Party Size] is 4 <message>Innkeepr: 4 people? That will be 40 gil. Do you wish to stay the night? [Show Choice] Yes/No [Yes].handler Branch if money is 40 or more Change money: 40 remove <message>Innkeeper: Goodnight! Tint Screen (R000,G000,B000,S100), 3.0 secs Play BGM: inn 2 Wait 6.0 secs Play BGM: town 3 Tint Screen (r100,G100,B100,s100) 3.0 secs (wait) Full Heal: Entire Party <message> Innkeeper: Did you enjoy your stay? Please Come again. <> Else Handler <message> Innkeeper: I'm afraid you don't have enough money. <> end [no].handler <message>Innkeeper: Very well then. <> end <> end Branch Var if [0005:Party Size] is 3 <message>Innkeepr: 3 people? That will be 30 gil. Do you wish to stay the night? [Show Choice] Yes/No [Yes].handler Branch if money is 30 or more Change money: 30 remove <message>Innkeeper: Goodnight! Tint Screen (R000,G000,B000,S100), 3.0 secs Play BGM: inn 2 Wait 6.0 secs Play BGM: town 3 Tint Screen (r100,G100,B100,s100) 3.0 secs (wait) Full Heal: Entire Party <message> Innkeeper: Did you enjoy your stay? Please Come again. <> Else Handler <message> Innkeeper: I'm afraid you don't have enough money. <> end [no].handler <message>Innkeeper: Very well then. <> end <> end Branch Var if [0005:Party Size] is 2 <message>Innkeepr: 2 people? That will be 20 gil. Do you wish to stay the night? [Show Choice] Yes/No [Yes].handler Branch if money is 20 or more Change money: 20 remove <message>Innkeeper: Goodnight! Tint Screen (R000,G000,B000,S100), 3.0 secs Play BGM: inn 2 Wait 6.0 secs Play BGM: town 3 Tint Screen (r100,G100,B100,s100) 3.0 secs (wait) Full Heal: Entire Party <message> Innkeeper: Did you enjoy your stay? Please Come again. <> Else Handler <message> Innkeeper: I'm afraid you don't have enough money. <> end [no].handler <message>Innkeeper: Very well then. <> end <> end Branch Var if [0005:Party Size] is 1 <message>Innkeepr: 1 people? That will be 10 gil. Do you wish to stay the night? [Show Choice] Yes/No [Yes].handler Branch if money is 10 or more Change money: 10 remove <message>Innkeeper: Goodnight! Tint Screen (R000,G000,B000,S100), 3.0 secs Play BGM: inn 2 Wait 6.0 secs Play BGM: town 3 Tint Screen (r100,G100,B100,s100) 3.0 secs (wait) Full Heal: Entire Party <message> Innkeeper: Did you enjoy your stay? Please Come again. <> Else Handler <message> Innkeeper: I'm afraid you don't have enough money. <> end [no].handler <message>Innkeeper: Very well then. <> end <> end [How much is a room?].handler <message> Innkepper: It is 10 Gil per person. <> [Nothing for Now].handler <messeage> Innkeeper: Come back again soon. <> end <> Hope this tutorial helps! |
|
|||||||||||||
|
©2002-2008 blade2k.net - parsed in 0.002 seconds - view active users
[16010 members][newest member: Markaz]
Active Users (1)[ cima55 ]
|
||||||||||||||