Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: maxine on June 22, 2005, 09:19:18 PM

Title: A key problem too a door
Post by: maxine on June 22, 2005, 09:19:18 PM
I have a door at a hotel. I want too rent a room and get a key. I make an custom item called "Key too room 123 ex." Then i canuse the item wherever i want too operate the door. But i want the key too just work when i am at the door.

I´ve just had this game for 2 weeks and i think i have pretty much knowledge but u guys should know this one

Cheers !!!
Title:
Post by: darkrune on June 22, 2005, 09:28:23 PM
Ok, heres what you do.
When you get the item go to the door. Make the door and go to the event under preconditions make it so you can only acess it with the item the key. Then make it to do what you want. :)
Title:
Post by: maxine on June 22, 2005, 09:33:48 PM
hmmm i think u dont get it... Or i aint hehe.

Here i mean: I create item "KEY" when i recieve key. I can use it whenever i enter the menu and press the "KEY" item....

So the door is locked untill i use that item but i can use it everywhere....

I can do it like this

Door:page 1 "its locked" page2 "you used the key"

Cashier: page 1 "here is the key for your room sir" Switch operation "Door page 2"...... Page 2 "you already have a key"..

But then i wont have a key in my item when she says that.

Hope u get my switch thing up here
Title:
Post by: Slippy_Gonzalez on June 22, 2005, 09:37:59 PM
I guess....you could make the item a switch.....when you go to the door, you activate a switch that opens the door...but only if you have the item Key.
Title:
Post by: maxine on June 22, 2005, 09:46:58 PM
hmmm yes i think i can fix this problem.
Title:
Post by: ZeroKirbyX on June 22, 2005, 09:47:57 PM
Okay, here goes:
Cashier-
Page 1- Message: Here's the key to your room
            Inventory: Add "Room Key"
Page 2- Check Item box and select "Room Key"
            Message: I'm sorry sir, you already have a key

Door-
Page 1- Message: You can't get in without the key
Page 2- Check Item box and select "Room Key"
            Change event graphic to Blank
            If you want to get rid of the key when you open the door, add
            Inventory: take "Rom Key"
Title:
Post by: maxine on June 22, 2005, 09:51:10 PM
thnanks pretty helpful !