Just so I didn't misunderstand your request.
What you want is a separated time system for each used skill, for example:
Skill1 is used at 10AM, and then skill2 is used 10 minutes after. When come to the next 10am actor regain skill1's costed MP, and then 10 minutes after, actor regain skill2's costed mp.
If above understanding is wrong, just ignore the following:
First of all, about the time system.
I don't know what kind of time system you are using, so this part may have better ways of doing depending on your time system.
I am assuming your timing system has at least three variables: day, hour, and minute.
I also assum since you request this function, your project doesn't go into a different battle scene. By this, I mean all the battles are controled by events, and skills are also controled by events.
(This being said, if you do enter battle scene, the function can still be done, but it just much more complicated. I do recommend to seek a plugin is this case.)
If above assumptions are correct, lets go in to the solution.
First, We need
at least 5 variables:
Day, Hour, Minutes, Next Day, and Skill ID. (you can name them differnetly.)
Then we need 1 switch:
Skill Time Set
This is how it work:
After each events that triggers skills, add the following in the end of those event:
-----Get the current day, hour, and minute in your time system into the corresponding variables: Day, Hour, and Minutes.
-----Get the skill id into the variable 'Skill ID'.
(This is the one part that will get tricky, if you do need to enter a battle scene. I believe you will need a script to get the last used skill id, and put the script in the battle event page for every troop.)
-----Get the variable of current day+1 into variable 'Next Day'.
This can be done by putting $gameVariables.value(X)+1 into the script collum of the control variables function.
(X being the ID for the variable 'Day')
Now lets set up an autorun map event to turn on the switch Skill Time Set. Remember to also turn on selfswithch-A for this event, and add a second page which runs when selfswitch-A is on. This is to stop this event.
Finally, set up a parallel common event that runs when Skill Time Set switch is on.
In this event, add following
Gain MP conditional branch set:
If time system's day = variable 'Next Day'.
-----If time system's hour = variable 'Hour'.
----------If time system's minutes = variable 'Minutes'
---------------If variable 'Skill iD' = X
--------------------ActorY gain mp Z
---------------If variable 'Skill iD' = X
--------------------ActorY gain mp Z
---------------If variable 'Skill iD' = X
--------------------ActorY gain mp Z
.......you will have to add this 'If variable 'Skill ID' = X' conditional branch for every skill you have.
And at the end of this event, add a wait content.
How long to wait?
This depends on your ingame time system. The basic idea is to wait for one game minute.
For example:
If in your project, 1 real world second = 1 game minute, then just set up wait 60 frame。
The END!
Before try out, there are few things you have to keep in mind:
- If you have multiple skills, you will need a seperate set of the 4 variables (Hour, Minutes, Next Day, and Skill ID) for each of your skills.
- If you have multiple skills, you will also need to add extral Gain MP conditional branch set for each of your skills.
You will also have to keep in mind for conditions, like when player use same skill several time in a roll.
Depending on your project's theoretical max MP and how many times you can use the same skill under this theoretical max MP, you will need extral set of the 4 variables for the same skill.
For example:
if your theorietical max MP is 100 and skill 1 costs 10MP, then you will have to create 10 set of the 4 variables for skill 1, and add 10
Gain MP conditional branch sets in the parallel common event for each set of those 4 variables.
If under the same theorietical max MP and skill 2 costs only 1MP ...... HELL A LOT OF WORK!
This problem can be reduced if you set a limit for how many times a skill can be used in one day.
Remenber to change the condition for
Gain MP conditional branch sets to the corresponding variables.
For example:
If you set up Hour2, Minutes2, Next Day2, and Skill ID2 for skill2, your
Gain MP conditional branch sets for skill2 will be as follow:
If time system's day = variable 'Next Day2'.
-----If time system's hour = variable 'Hour2'.
----------If time system's minutes = variable 'Minutes2'
---------------If variable 'Skill iD' = X
--------------------ActorY gain mp Z
---------------If variable 'Skill iD' = X
--------------------ActorY gain mp Z
---------------If variable 'Skill iD' = X
--------------------ActorY gain mp Z
.......
Last but not least, back to the condition where you do enter battle scene in your project, the otherthing makes it trick is your time system.
The time plugins I came across, all stoped when enter a battle scene. So if this is same for your time system, this will create a problem to get the correct time.
This problem can be fixed, but how to fix will have to depend on the set up of your project and your time system.
After all, if you have the script skill or know people who have the skill and willing to help, I do recommond to create a plugin for your request.
Hope this helps
😂