Some Noob qustions about switches and events.

I have a set of events and switches that seem to be conflicting in the code i am building and i am unsure what to do.

The issues i have are;

1, how do i set the states of switches on a new game, some i need on and some i need off.
I have tried an auto run event but that just either does not work or freezes the game.

2, Set the opacity of an event to zero so its invisible until i change its state in the event.
i want the events opacity to start at zero.

All help and explanation would be helpful.
also just noticed when moving from map to map the switches seem to reset.
EDIT: doesnt appear to be an issue with the switches resetting, the event resets its opacity when i leave and reenter.
For the switches can you change it round do that what happens when the switch is on actually happens when the switch is off? And vice versa. So instead of turning a switch off to stop doing something you would turn a switch on to stop it?

For the opacity can't you set the event page to have no image and then when a switch is triggered go to thw next event page and have an image. This way the event will always start invisible until you trigger the switch.
For the switches can you change it round do that what happens when the switch is on actually happens when the switch is off? And vice versa. So instead of turning a switch off to stop doing something you would turn a switch on to stop it?

For the opacity can't you set the event page to have no image and then when a switch is triggered go to thw next event page and have an image. This way the event will always start invisible until you trigger the switch.
ill have to give that a shot
As for 1), your problem is that you did not understand that autoruns loop.
The autorun is the correct way to set things at the beginning, but autoruns loop until they're switched off.

I suggest you follow the link to the starting point tutorial in my signature and work through those tutorials until you have the basics. It's almost impossible to learn every trick of the engine by experimenting unless you have some guide for it.
OK i got my auto run working fine, the issue i had with the event was due to switches starting off.
I fixed that in the auto run, the ones i need on are now on at the start.

BUT i cannot seem to fix the issue with the tools.

What i want is them showing on the wall when they are stored, but being gone when i pick them up, BUT when i pick them up they vanish like i want, i can put them back and they come back, the issue is when i pick them up when i leave and come back in, the image they where set with gets reset.

Unsure as to what to do.
https://i.imgur.com/Q3o0ZeV.png

^ the code for the problem item.

when the script has been cycled, it shows as a switch on the wall, but when it resets when i leave and come back, it becomes the bucket again.
You need to use conditions, not conditional branches.
And because the conditions are only for ON, you need to use two event pages with the ON-page being the second one (page priority is important here).
Double-post notice: KingTentacleAU
If you want to add something, simply edit your earlier post.
You need to use conditions, not conditional branches.
And because the conditions are only for ON, you need to use two event pages with the ON-page being the second one (page priority is important here).
ok cool i will have to have a look at it, didnt realize i was doing it with the wrong tree.
Double-post notice: KingTentacleAU
If you want to add something, simply edit your earlier post.
i didnt feel it was a double post the earlier one was about storage containers, this one is about a completely different element of my game.
i didnt feel it was a double post the earlier one was about storage containers, this one is about a completely different element of my game.

They're talking about you replying twice in a row with noone else replying in between.

Also for you picking up tools I would do it as follows. Not sure if this is what you want?

On the first page for the event have an icon for the tool and set to action button. Then in the contents bit put a text saying "tool picked up" and add item to inventory. Then turn self switch a on.

On the second page for the event use the self switch a condition and have no icon and again set to action button on the same level as the player. In the content add text saying "item put back, and remove item from inventory. Then turn self switch a off.
OK so i fixed the watering can.

I gave it 2 pages, with conditional switches, when the chest switch is on, it goes off one page and when the holding switch is on, it changes images and runs the second tree.
In that case a completely different question should be in a new thread - one query, one thread, otherwise it can be confusing and does not help any other Member who might be searching for an answer to that question.

Either way, it is still a double post.
In that case a completely different question should be in a new thread - one query, one thread, otherwise it can be confusing and does not help any other Member who might be searching for an answer to that question.

Either way, it is still a double post.
i didnt realize you meant double posting in this thread, i thought you where referring to another topic i posted.

Ill try to keep double posting to a minimum.
They're talking about you replying twice in a row with noone else replying in between.

Also for you picking up tools I would do it as follows. Not sure if this is what you want?

On the first page for the event have an icon for the tool and set to action button. Then in the contents bit put a text saying "tool picked up" and add item to inventory. Then turn self switch a on.

On the second page for the event use the self switch a condition and have no icon and again set to action button on the same level as the player. In the content add text saying "item put back, and remove item from inventory. Then turn self switch a off.

Thats basically what i did, i posted about it as you posted your comment 😛

Its much neater and simpler then how i initially tried it.

---

UPDATE:
I now moved the same method to the farm plot, and its made that work much easier.

Now i just need to add in some basic way for it to track the flow of time to simulate growing.

Original thread: https://forums.rpgmakerweb.com/threads/some-noob-qustions-about-switches-and-events.85071/