Shaz - Multi Timers Plugin

Hi all,


I can't seem to make Shaz's Multi Timer Plugin count-down and then set my self switch to false. This would take my event back to page one after a certain period of time and make my barrel 'lootable' once more.


The plugin works fine if I'm using switches but not when I use a self switch. 


So at the moment I have the plugin command set to 3 seconds just while I'm testing it.


Screenshots below of both pages of my loot barrel event, the map that the event is on and my plugin manager.


Shaz's Multi Timer Plugin link: http://pastebin.com/B4HK94zG


Thanks for any help!


Capture.PNGCapture.PNGCapture.PNGCapture.PNG
get rid of the leading zeros in the map and event numbers.  Use 12 and 4 instead of 012 and 004.  Leading zeros causes numbers to be handled differently (I think it assumes they're hexadecimal - can't really remember).  This was an ongoing problem for lots of scripts in Ruby.  I didn't realize the problem also exists in javascript.


tbh, I would put the plugin command on the first page, immediately before the self switch change (not before the common event call).  That will start the counter as soon as the loot is gotten from the barrel.  The way you have it right now, if the player kept checking the barrel and getting the "it's empty" message, the timer would get reset every time, so it could take a lot longer than you plan for the loot to refresh.
Thank-you again Shaz - One day when I have a finished game I am going to credit the hell outta you 😛


(I know you've only directly helped me twice now, but when I scroll through these forums looking for answers it always seems to be your suggestions that work!)


I'm at work at the moment but as soon as I get home, I'll make the above changes and see how I go.


Also, thanks for the tip about putting the plugin on the first page!


Much appreciation!
You could also use this format, copied straight from the script documentation:

Code:
\setss([<thismap>, <thisevent>, 'A'], false)

<thismap> and <thisevent> written exactly like that, would substitute the map id and event id for you.  This way, you could copy/paste the event and not have to change anything (also use <thismap> and <thisevent> in the key name - instead of SwitchSS004Off, put SwitchSS<thismap><thisevent>Off - so it gives them all unique names)
Works flawlessly Shaz, I took your advice on the above substitutions as well; definitely will help prevent confusion and like you say, it will enable simple copy paste!


Thank-you again 🙂  
no prob 🙂   The other issue with putting the plugin call on the second page, which I didn't talk about, is that if you get the loot from the barrel and walk away, there's no timer to reset the loot - it required you to interact with the barrel again after getting the loot, before the timer would start.  So if the player didn't do that - if they walked off and did something else for half an hour then came back and checked, the barrel would still be empty and THEN the timer would be set.


It's just a case of being aware that you want to set the timer the moment the loot is given, as the last step; not when the player takes another specific action (checking the barrel again) after getting the loot.

Original thread: https://forums.rpgmakerweb.com/threads/shaz-multi-timers-plugin.61606/