How would I make a Bonfire event?

I set up an event for a bonfire. What I'm looking to do is have it empty by default and when the player clicks it, they have the option of lighting it. After they light it, they will have a set of options to proceed further. If possible I would also like to put the fire out.

Unlit bonfire:
V5mem


Bonfire when lit:
LlY1G
On page 1, in the If statement that takes the oil and wood, turn on Self-Switch A right after that.

On page 2, set the condition in the top left to Self-Switch A. On the bottom left of the second page for Options, uncheck Walking and check Stepping and I think you'll need Direction Fix checked as well.
@mlogan when I take everything out of page one and simply put show text "I need oil and firewood" and set page 2 condition to self switch A, the graphic will turn to page 2 for a second (showing the fire) before turning off because I don't have a way of turning self switch A on yet. Any idea why this is happening? I figured it wouldn't get access to page 2 at all.

the fire shows and then it says "I need oil and firewood" and turns off again.
I don't know, I can't see your event to see what you may have changed that could be effecting it.

edit: This is what I meant for you to do. I did not fill in all of the event commands, but hopefully you can see what the intention is.

fire_help1.png

fire_help2.png

Note: Forgot to put the unlit fire graphic in the first page.
@mlogan
XSA1F

5YBGd


Edit:
Just as I uploaded these I noticed I forgot to change stepping and directional fix on page 1.
I'll check if that's the problem.

Edit2:
Yeah that was the problem. It's fixed now. Thanks for the help @mlogan.
don't rely on conditionals inside user-oriented events.
every interaction by the user with the event should set the event up to a given configuration, which would then be processed by a dedicated processing event.

I would make a separate set of common events, with each one controlling a specific thing dealing with the bonfire event, and then just use the bonfire to recieve input from the player.

for instance.
-present the menu: cook, head back to town, put out fire.
-for "cook", call "process cooking", a common event.
-"process cooking" will deal with 1, accounting for ingredients, 2 calculating the result, and 3 presenting the result.
-presenting the result will always be a dialogue of either "you gain X" or "you don't have ingredients". THERE is where you put a conditional.
-if there's a problem with the event "process cooking", the element "bonfire" will still work.
-accounting for ingredients will just run a check of the inventory, and put variable X to a specific setting. Then, you check for that setting and present the result. IF the result doesn't match any combinations, you defer to "presenting the result B, *you don't have ingredients*"

the actual logic can be adjusted, which you will do, and can do much easier because it's a much smaller system than a collection of multiple conditionals.

also, that would enable you to put multiple bonfires anywhere, and modify all of them by just changing one common event, since all of them lead to the same point.
@gstv87 so everything I did in Cook I just put in a common event and then call that common event?
yes.
in cook, or wherever.

the only things you should leave in the actual bonfire event is "put itself up", "put itself out" (meaning changing from one page to another), and "calling process event".
It does make it look nicer.

Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-make-a-bonfire-event.83714/