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.
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.
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.
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.