Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • How Do you make a treasure box stop....
« previous next »
  • Print
Pages: [1]

Author Topic: How Do you make a treasure box stop....  (Read 3230 times)

Offline vytong

  • CPU
  • Initiate
  • *
  • Posts: 42
  • Akatsuki Ownage! and the GAME BOY! [+[__]::]
How Do you make a treasure box stop....
« on: July 17, 2008, 04:31:52 AM »
How Do you make a treasure box stop giving items i want like 1 item and you can keep getting items from it over and over again.... :-X
Logged
Akatsuki Ownage! and the GAME BOY! [+[__]::]

Offline A Forgotten Legend

  • Your neighborhood box of colors
  • Royal
  • *
  • Posts: 4,428
    • Website
Re: How Do you make a treasure box stop....
« Reply #1 on: July 17, 2008, 04:38:06 AM »
Switches.

GO to the event.  Create a new page.  Give it the image that you wan for after you've opened the chest.  Go up to Conditions.  Click the Switch condition.  Create a switch name it Chest "###" for what ever chest it is.  Next, go back to the first page and add a Switch operation at the end of the event.  Make it turn Switch 'Chest "###" ON.

So it'll look something like this:

Code: [Select]
Move Event: Face Right, Face Up, Face Left
Message: You've found a peanut!
Add Item: Peanut +1
Switch Operation: Switch 'Chest 1' ON

Make the second page an action key event.  If you want you can add a message saying that the chest has nothing inside or etc.
Logged

Offline vytong

  • CPU
  • Initiate
  • *
  • Posts: 42
  • Akatsuki Ownage! and the GAME BOY! [+[__]::]
Re: How Do you make a treasure box stop....
« Reply #2 on: July 17, 2008, 05:05:05 AM »
Quote from: A Forgotten Legend on July 17, 2008, 04:38:06 AM
Switches.

GO to the event.  Create a new page.  Give it the image that you wan for after you've opened the chest.  Go up to Conditions.  Click the Switch condition.  Create a switch name it Chest "###" for what ever chest it is.  Next, go back to the first page and add a Switch operation at the end of the event.  Make it turn Switch 'Chest "###" ON.

So it'll look something like this:

Code: [Select]
Move Event: Face Right, Face Up, Face Left
Message: You've found a peanut!
Add Item: Peanut +1
Switch Operation: Switch 'Chest 1' ON

Make the second page an action key event.  If you want you can add a message saying that the chest has nothing inside or etc.
sorry for all that but i got lost on this part: GO to the event.  Create a new page.  Give it the image that you wan for after you've opened the chest.  Go up to Conditions.  Click the Switch condition.  Create a switch name it Chest "###" for what ever chest it is.  Next, go back to the first page and add a Switch operation at the end of the event.  Make it turn Switch 'Chest "###" ON.
Logged
Akatsuki Ownage! and the GAME BOY! [+[__]::]

Offline A Forgotten Legend

  • Your neighborhood box of colors
  • Royal
  • *
  • Posts: 4,428
    • Website
Re: How Do you make a treasure box stop....
« Reply #3 on: July 17, 2008, 05:13:06 AM »
...that was my entire explanation. o.o

Ok.

Go to your chest event and open it up.
You'll see a button at the top that says 'new page' or something of the like.
Click it.
You'll will now have a new page in the event.
In that page, choose the graphic you would like to see when the chest has already opened.
Next, there with be a part above that that says Switch.  Click the check box, and then the "..." (I think...).
Then, click on an empty switch blank. 
Name it.
Now, Click Ok.
Make this page and action key event.
If you want a message that says that this chest has already been opened put it there now.
Go back to the original page of the event. 
Go to the end of what you have, and create a new part to that page.
Choose Switch Operations. 
Choose the switch you have just created.
Set it to ON.

This is what your original page may look like:
Code: [Select]
Move Event: Face Right, Face Up, Face Left
Message: You've found a peanut!
Add Item: Peanut +1
Switch Operation: Switch 'Chest 1' ON

Your event should work now.

Got it?
« Last Edit: July 17, 2008, 05:14:57 AM by A Forgotten Legend »
Logged

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: How Do you make a treasure box stop....
« Reply #4 on: July 17, 2008, 12:06:24 PM »
Heres a simple solution that for all treasure chests.





make this event in your game on page 1 and 2. Change the item name and the item added, and what switch you want the second page to be.
Logged



Offline Cerebus

  • The Poison Lord
  • Royal
  • *
  • Posts: 3,486
  • Chemical Rules
Re: How Do you make a treasure box stop....
« Reply #5 on: July 17, 2008, 12:13:05 PM »
Yeah, but like A Forgotten Legend said, you should add "Move Event: Face Right, Face Up, Face Left" first, so you get some kind of chest opening "animation". Or, just change the graphic if you want the chest to open instantly like in most game.

That's one thing I quite preferred on the PSX version. There were those "Treasure Event" so you didn't need a switch for every chest..
Logged

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: How Do you make a treasure box stop....
« Reply #6 on: July 17, 2008, 12:41:59 PM »
yeah so many switches are bad for lagging out games. I try to keep as few switches ON as I can, in my games, just keep that in mind vytong.
Logged



Offline A Forgotten Legend

  • Your neighborhood box of colors
  • Royal
  • *
  • Posts: 4,428
    • Website
Re: How Do you make a treasure box stop....
« Reply #7 on: July 18, 2008, 08:36:58 PM »
VX has a quick event option for chests and it puts the animation in for you.  *huggles VX*

I've never really had a problem with switches.
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • How Do you make a treasure box stop....
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum