I need help with the Multi Timers plugin

Status
Not open for further replies.

link12

Veteran
Veteran
Joined
May 18, 2014
Messages
63
Reaction score
6
First Language
English
Primarily Uses
RMMV
How do I add a cooldown timer for a common event and where in the event do I add it?
 

Attachments

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,698
Reaction score
7,362
First Language
German
Primarily Uses
RMMV
please give a link to the plugin you're writing about, we can't guess which one you're using.
 

link12

Veteran
Veteran
Joined
May 18, 2014
Messages
63
Reaction score
6
First Language
English
Primarily Uses
RMMV
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
The shown common Event in the Pictures only runs when it is called by an Event.
(Or by some unknown kind of Plugin?)
So i would Guess we need to take a look at that Event and what its code does.
Than we can maybe find an access point to insert a Timer.
Can you show a Picture?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,698
Reaction score
7,362
First Language
German
Primarily Uses
RMMV
the cooldown would have to start at the beginning of the event with a conditional branch checking a switch. You need to select which switch to use as "in cooldown", it must not be used anywhere else.

The conditional branch checks if the switch is ON. if yes, the command in the branch will be exit event processing.
if not, then you go to the regular code of your jump. proceed through that code as normal, but at the end you add two commands:
control switch "in cooldown" to ON
plugin command for the timer: AddTimer key seconds command
they key is whatever name you want to give the timer (again, don't use that name for any other timer)
seconds is your time for cooldown
command is the command to switch the switch "in cooldown" off as described in the plugin
 

link12

Veteran
Veteran
Joined
May 18, 2014
Messages
63
Reaction score
6
First Language
English
Primarily Uses
RMMV
I managed to figure it out, but I still appreciate the help.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,137
Reaction score
8,417
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Recent threads, and my very poor algorithm for my minimap plugin have made me face the fact that I need to review algorithms and such.

Going through Cracking the Coding Interview now. I am so excited.
Kes
I've seen a reference to a Community Lighting plugin for MZ, but cannot find it. Is it still in beta?

Todo:
Add fog of war
Add enemy indicators
Make window draggable
Optimise map drawing algorithm (5 seconds to load the map you see, so it's a... poo-poo algorithm)

Any suggestions? :kaoblush:
bleh studio hell job haha at least they like it didnt had time to do much laundry tho ;w;'....YES I DO AT LEAST TAKE A SHOWER everyday!
Ami
--- Food Ingredients ---

Hero: Since the Chef are in Hospital,we can't eat his Dish in 3 Days.
F.Mage: What we have to Eat?
M.Healer: Don't worry,we can Eat the Food Ingredients.
Hero & F.Mage
: Really?

(3 Days Later)

Chef: Hi,Guys. I'm Ba---
(Entire Party Collapse After Eat Raw Meat)
Chef: Wha...WHAT GOING ON HERE!!!!!!

Forum statistics

Threads
102,913
Messages
995,916
Members
134,361
Latest member
cribo65
Top