Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

A little help. [how to make a chest only open once?]

boon

Sponsor

While I don't have RPG Maker atm, I would like to know how you can do the following:

Make a crate or a chest so that once opened, you can NEVER open it again, even if you leave the room and come back.

Any help?
 

mawk

Sponsor

Not true. The status of all the game's switches are perpetually recorded in your save file. If you turn Self Switch A to ON, then save and quit, Self Switch A will still be on when you get back. The same goes for normal switches and variables.

The only way a switch would reset if you leave the room is that you have some other event to turn that switch OFF, and accidentally trigger it each time you leave. Normally, switches stay the way they are.

It should go like this; I'm skipping the graphic stuff for ease of typing.

Code:
@> Show Text: You got a Broom!
@> Change Items: [Broom]+1
@> Self Switch A = ON

And then make a second page. Set it so that page will only be active if Self Switch A is ON. Then you can do whatever with that page.

Code:
@> Show Text: It's empty. Crazy.
 

Injury

Awesome Bro

You'd only need 1 to make a chest. this is how it would work

page 1 (conditions = none)
text:got item
add item
self switch a- on

page 2 (conditions = self switch: a)
text: tis empty

it can't be easier than that, but it is in vx. you get quick events to make teleports, doors, chests, and an inn.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top