CHESTS & OPTIONS help...

i have a chest with 3 options:
Map
Card
Letter

now if i take one.. how do i remove the item from the list of options? so for example i took "Map"... and i revisted the chest later that only "Card" & "Letter" would be there? Would i create a new options list?

this is what i have so far with a second event page that has nothing yet.. but will say the chest is empty later when there are no more items to obtain.

sorry for putting an image, but whenever i try to copy and paste the code it won't paste so i took a screenshot.. :/
wstxoab.png
Not sure why you're turning a self switch on and then off again - what does that achieve?

It's messy. If you allocate a self switch to each item - A:Map, B:Card, C:Letter ...

Code:
Text: Let's see what's in here ...

If self switch A is ON
  Comment: the map has been taken
  If self switch B is ON
    Comment: the card has been taken
    If self switch C is ON
      Comment: the letter has been taken
      Text: It's Empty
    Else
      Comment: there's a letter
      Show Choices: Letter, None
      When [Letter]
        Jump to label: GetLetter
      When [None]
        Text: Maybe I'll grab it later
      End
    End
  Else
    Comment: there's a card
    If self switch C is ON
      Comment: the letter has been taken
      Show Choices: Card, None
      When [Card]
        Jump to label: GetCard
      When [None]
        Text: Maybe I'll grab it later
      End
    Else
      Comment: there's a letter
      Show Choices: Card, Letter, None
      When [Card]
        Jump to label: GetCard
      When [Letter]
        Jump to label: GetLetter
      When [None]
        Text: Maybe I'll grab them later
      End
    End
  End
Else
  Comment: there's a map
  If self switch B is ON
    Comment: the card has been taken
    If self switch C is ON
      Comment: the letter has been taken
      Show Choices: Map, None
      When [Map]
        Jump to label: GetMap
      When [None]
        Text: Maybe I'll grab it later
    Else
      Comment: there's a letter
      Show Choices: Map, Letter, None
      When [Map]
        Jump to label: GetMap
      When [Letter]
        Jump to label: GetLetter
      When [None]
        Text: Maybe I'll grab them later
      End
    End
  Else
    Comment: there's a card
    If self switch C is ON
      Comment: the letter has been taken
      Show Choices: Map, Card, None
      When [Map]
        Jump to label: GetMap
      When [Card]
        Jump to label: GetCard
      When [None]
        Text: Maybe I'll grab them later
      End
    Else
      Comment: there's a letter
      Show Choices: Map, Card, Letter, None
      When [Map]
        Jump to label: GetMap
      When [Card]
        Jump to label: GetCard
      When [Letter]
        Jump to label: GetLetter
      When [None]
        Text: Maybe I'll grab them later
      End
    End
  End
End

Comment: If we reach this line, the chest was empty or the player took nothing
Exit Event Processing

Comment: Get the Map
Label: GetMap
  Change Items: [Map] + 1
  Text: Map obtained!
  Control Self Switches A = ON
  Exit Event Processing

Comment: Get the Card
Label: GetCard
  Change Items: [Card] + 1
  Text: Card obtained!
  Control Self Switches B = ON
  Exit Event Processing
 
Comment: Get the Letter
Label: GetLetter
  Change Itesm: [Letter] + 1
  Text: Letter obtained!
  Control Self Switches C = ON
  Exit Event Processing


What we're doing is turning on a self switch when the player takes something, so next time they look in the chest you know what they've taken and what's still there. Doing a series of conditional branches and the choices, but separating the results, means you don't have to put all the logic for each item in multiple times. There are 4 situations where the player could get the map - if the map is on its own in the chest, if it's with the letter, if it's with the card, or if all 3 items are in there. You don't want to have to do the "get map" logic 4 times! Using self switches would allow you to have up to 4 items in the chest. If you did go for a 4th item with self switch D, your event would be nearly twice as long.

This way also means you don't have to have the second event page for an empty chest, though if you did want to (to make the chest disappear or change the graphic), it's just a matter of checking the other two self switches when you turn one on, and if they are both on, also turn on self switch D, which will condition the next page (in that case, you could only have 3 items unless you had a 'more self switches' script/plugin):

Code:
Comment: Get the Map
Label: GetMap
  Change Items: [Map] + 1
  Text: Map obtained!
  Control Self Switches A = ON
  If Self Switch B = ON
    If Self Switch C is ON
      Control Self Switches D = ON
    End
  End
  Exit Event Processing

(and repeat for the other two, but checking the two self switches for the other items)
how are you getting the IF/else statements.. tried coping your code but it won't paste into event :/
@Ruffsta That's Conditional Branch 🙂 It should look like this.
37dAgOY.png
Sorry - yeah, MV shows it as If, rather than Conditional Branch. Make sure the box is checked to handle the 'else' or 'false' condition, which will give you the Else statement.
lol, yeah i was gonna say i did try the branch but yet still no IF's lol..

still a little confused.. again, i have been away from rpg maker for YEARS.. i don't have any of my old stuff and i feel like a newb again.. there used to be TONS of XP tutorials and such but now all i see mostly on youtube is for MV or VX.. there used to be alot of like sample/tutorial topics in another forum which is not around anymore that had samples you could download too.. like:

cooking, banking... somehow i still have those samples but nothing else... wish there was a sample out there of exactly what i'm trying to accomplish.. i'm more of a visual learner.. like actually seeing how it's done instead of trying to guess or re-create something blindly if you will.

cause, in the chest in what i'm trying to do - i want other items such as matches, cellphone.. etc but that's much later.. sucks you can only use tileset per map... i want certain things from different tilesets... but that's neither here or there at this time.
also, is there a way to put images in the options? like right now i have just text: Map, Letter and Card.. can there be a picture alongside each item or just a picture instead of text?
Using image as a choice selection is whole different matters. I do kind of remember plugin for such, but yea... it's for mv...
I have created a tutorial for rpg maker in general the simplest way of using pictures for choice making via event here, but not for a complete beginner : https://forums.rpgmakerweb.com/inde...diate-eventing-basic-picture-selection.87515/
Where I say IF, you use Conditional Branch. It will probably show up as Conditional Branch after you have saved the event command. Ignore that my version says IF - that is something that was changed sometime after XP.

Original thread: https://forums.rpgmakerweb.com/threads/chests-options-help.87896/