The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Himanshu on January 17, 2007, 09:20:16 PM

Title: Request: Inn script
Post by: Himanshu on January 17, 2007, 09:20:16 PM
I know there was one posted around here but I cant find it. I'm also not good at all with scripts and how to make them work. People said if you just have one script for the entire game it makes its  size smaller and less laggy. Any help?

Or could I have it so that they get an item (room keys) then the player goes upstairs to the rooms and unless they have keys they wont be able to get in. And once they are in the keys disappear.
Title: Re: Request: Inn script
Post by: pliio8 on January 18, 2007, 01:27:03 AM
Condition Branch>4th page>Item Possessed>Room Key

You don't need a script, just a conditional branch...

Then afterwards:

Change Items>Room key(-1)

And if you want it so they can enter the room as many times as they want aftwerwards...

Switich Operation>(Switch name and ID)on

Then have a conditional branch of:

Conditional branch>Switch(ID) is on

Then under the main part have the teleport, under else have the rest of the system.

That help?
Title: Re: Request: Inn script
Post by: Irock on January 18, 2007, 01:51:22 AM
You could also have

<>Conditonal Branch money 80 or more
<>Message: Would you like to stay for 80 gold?
<>Show Choises: Yes, No
: [Yes] Handler
<> Change money - 80
<> Play ME '014 Inn1' 100 100
<> Tint screen (-255,-255,-255) @20
<> Teleport (to room)
<> Wait 20 Frames
<> Tint Screen (0,0,0) @20
<> Change HP. Entire Party. + 9999
<>
: [No] Handler
<> Message: Okay then, have a nice day.
<>
: End
<>
Else Handler
Message: Would you like to stay for 80 gold?
Message: Oh wait, you don't have enough money.
<>
: End
<>


The numbers can be changed.