Need help with item

So i've made a common event activating a small light around the player

I've then made a item with effect: Call common event "then the light event"

That works fine but i whould like that if you press the item again you removes the light

Is that possible? if so pls comment how!

Common event: http://gyazo.com/9c509c5ccf4b96d529ea878aa86165d6

Item: http://gyazo.com/eac7bff39b3718d4ebd2af11fdc4e164
it depends on the script you're using.


Basically (without the script) you should be able to do that by using a switch for the light and a conditional branch in the common event, switching it ON if it's OFF and OFF if it's ON.


However, I don't know if the script you're using allows for switching...
Thanks

will try that
Well it still didn't work to turn it off. (and it works to turn off with a event so it's nothing wrong with script)

I probably did something wrong...

Heres what i did

common event: http://gyazo.com/801fba73920eb99dca04a7dfeccd7cde

Item: http://gyazo.com/76ea6c08d6c57bfa6f10733ddf94e72d
do not change the trigger to autorun, keep it NONE as before.


then add two control switch command, one into each branch, manually switching OFF when the light goes off and ON when the light goes ON.
now it dosen't even work to turn it on

Im so confused.

Heres how it looks now...

Common event: http://gyazo.com/4d5bc6a750b4992b29de1d4612a9158e

Common event 2: http://gyazo.com/26b17e327667ffcbdbf2ae5950182ad3

Item: http://gyazo.com/af00fdf8aa6411628b33cb87c8e51b09

If youre still willing to help me i think the easyiest whould be to send a picture of it..
you need one common event, not two - and both the control switch command and the lantern command need to be in the same conditional branch


You need to include the script commands you moved to candle 1 into the candle light common event, because that is the common event called by the item.
Oh now it worked... xD

Thanks so mouch man, youre awesome spending your time help me, even when i didn't understand !

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-item.29788/