Everything is working very well with the script, however, I have run into a small problem. I have a quest in my game where players need to collect flowers for NPC. So I made an event, the following:
Page 1 > Action Touch
Change Item: +1 [Flower]
Control Switch: 0001 Flower ON
Page 2 > Parallel Process > Control Switch 0001 Flower
Wait: 20
Control Switch 0001 Flower OFF
The event works however when looking at the server log after a player clicks on the flower, I am using Mouse Controller, the flower is set to true. But the event doesn't go away in the Map Scene. When I click on it again it is set to true again then disappears for the 20 then reappears and it set to true again. So bacially a player has to click it twice before it will "despawn" giving the player a chance to collect two flowers from one "node". Can anyone help me with this? I don't want them to be able to do that just one click and one flower.
I tested it, I am using blizzard's mouse controller script, and the event works fine with just that script. I am assuming it is either the Enchance mouse controller and mouse controller drop down menu is causing the problem.
Here are both scripts, if anyone has any ideas.
Enhance mouse controller
(click to show/hide)
Mouse Controller Drop Down Menu
(click to show/hide)