Main Menu
  • Welcome to The RPG Maker Resource Kit.

Request: Inn script

Started by Himanshu, January 17, 2007, 09:20:16 PM

0 Members and 1 Guest are viewing this topic.

Himanshu

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.

pliio8

#1
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?
Games in progress:
Tome of Arastovia: 7% complete at 2 hours of gametime

Irock

#2
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.