How do I ... Regen mana after x time.

Im trying to do a take on DND with my skills where you are limited to a number of uses per day based on a time system.

Heres what am I trying to do;
-Mana does no regain with inns or items.
-Player casts fireball it costs 10 mana.
-The moment you cast fireball it takes note of the time ex: 9am and you lose that 10 mana.
-In exactly 24 hours you gain 10 mana.

Its my way to limit your skills, level 1 skills are cheaper while level 2 or 3 cost more. It lets the play decide to cast more lesser skills or focus and burn through higher cost skills.

I have a basic time system in place, but dont know the first place to start on having a skill look at the variable for time :S.
Hmm, instead of restoring a certain spent amount of MP at a certain time, maybe just set the MP back to 100% of maximum at that time?
And as far as attaching it to a variable, I think most time systems have IF statements all over the place, maybe toss another conditional branch up there at 00:00 that says IF MP > or = or whatever, put a script in there that says $gameParty.members().forEach( function(actor) { actor.setMp(actor.mmp * 1.0) } ); Or something similar? Maybe @Aloe Guvner can shine some light on this, as he is the one that gave me this tasty formula.
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:
  1. 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.
  2. 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😂
but dont know the first place to start on having a skill look at the variable for time

you don't.
you make the time system complete it's day (or hour) cycle, and ping the process each time, that will process the skill lot and handle the regeneration.
don't use conditions to check what to do..... *do*, whatever is queued to be done.
if something shouldn't be *done*, set it to 0.
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.)

Im using an event based time system. Im having trouble using oranges time system plugin.
Correct.
Im not sure what this means but events trigger battles and then it goes to the battle screen (aka no random encounters); this is where im having trouble getting started since common events work outside battle.

Basically im hearing I need to request a plugin lol, I have no skills with plugins. Thanks for the help ill look it looks way to complicated already :S.

Currently for simplicity I do have it set to once a day refilling all actors mana. But it really takes away the idea im looking for. I wanted to produce a level of difficulty that when you enter a dungeon the decisions and skill choice would matter, if it resets daily, the player would just enter the dungeon later blow through all the mp and gain a fresh set.
I just came upon an idea but not sure how to do it.
Since I use events to start battles is there a way I can assign Actor's MP to a variable??
What if I have the event;
-Check the Actor's current MP.
-Store the hour and minute ex:930am
-Start Battle
-Turn on self switch A
The next page if self switch A is on
-Remove enemy
-Check Actor's current MP
Some how use math to note the difference and apply the missing MP after X hours?
OH....ah....while, lets explain the battle scene situation later.

For the time system, when I wrote my last post, I was assuming the condition base on the time system I am using, which is a plugin called 'Chronus'.

This is a powerful plugin, which automaticly output year, month, week, day, hour, minute, grand total of playing time, grand total of playing day, into the variables you assined.
Also, it can create time shift affects and support weather change.

BUT! The maker for this plugin is a Japanese girl named Triacontane. So, all the descriptions in this plugin are Japanese......
Even some of the characters in Chinese and Japanese are similar, this plugin still gave me a hard time set it up.

Anyway, why I spend so much time talking about this plugin, is because it's function to automaticly output time variables.

I am not sure how you set up your event base time system, but with this plugin, you don't have to set up any event to check or update the time variables. The plugin will automaticly update them. Which saves a lot of work for your situation.

https://github.com/triacontane/RPGMakerMV/blob/master/Chronus.js

You can get the Chronus plugin from above link.

I will post some image of this plugin to explain it's functions, just ignore them if you don't need this plugin. I will explain the battle scene at the end of this post.

Spoiler
1.png

I will explain the functions one by one:

  1. number of days each month contains. for my case, first month contains 31 days, second month contains 28 days, etc.
  2. the name of each month. This would Jan. Feb. Mar. for English.
  3. name of days. Monday, Tuesday.....
  4. the automatic increase value for time.
  5. The gap to increase 'the automatic increase valuse for time'.....ok admit I don't know how to explain 4 and 5 in English. I will just give you an example for this. In my case, my game clock will automaticly increase 5 minutes for every 60 frames. Get it?
  6. This sets up how many minutes to add when actor move to a different map.
  7. This sets up how many minutes to add when actor entered a battle with a total fixed amount.
  8. This sets up how manny minutes to add when actor entered a battle, with each turn add a fixed amount.
  9. This outputs the number of year to a variable of your choice. In my case, variable 0001 automaticly load the number of year.
  10. This outputs the number of month to a variable of your choice.
  11. This outputs the number of day to a variable of your choice.
  12. This outputs the number of the name of each day of a week to a variable of your choice. 1 being Monday, 2 being Tuesday.....
  13. This .....I still don't get what this do.
  14. Important! This outputs the number of hours to a variable of your choice.
  15. Important! This outputs the number of minutes to a variable of your choice.
  16. This outputs the grand total of played time to a variable of your choice.
  17. Important! This outputs the grand total of played days to a variable of your choice.
  18. This outputs the number of time for a day. 0 being midnight, 1 being early morning, 2 being morning, 3 being noon, 4 being afternoon, 5 being night.
  19. This outputs the number of weather. 0 being ....not sure about this, but should be none. 1 being rain, 2 being windy, 3 being snow.
  20. Still don't know about this one.
  21. This seems to be the formular for time, but I am not sure.
  22. This changes the format of how to show year, month, and day in the time window. YYYY is the number of year, MON is the name of month, MM is the number of month, DD is the number of day, DY is the name of the day.
  23. This changes the format fo how to show hour and minutes. HH24 is to show hours in 24 hour system, HH is to show hours in 12 hour system.
  24. this changes the x coordinate of the time window.
  25. this changes the y coordinate of the time window.
  26. I am not sure what this will do, but it shold be something about the time window.
  27. this changes the transparency of time window.
  28. not sure about this one, but it should be something about time window too.
Functions below 28 are used for set up a round clock to replace the time window. I don't need to set up a round clock, so I didn't look into these functions. Not sure what they mean.

The functions after
Improtant! is what you will need for your desire.

There are also many plugin commands and most of them are self-explanatory, but there is one command that I have to specificly talk about it.

THIS IS IMPROTANT!
DO NOT SKIP!


C_SET_SWITCH_TIMER [分] [スイッチID] [ループ]
This command means after assined minutes, switchX will automaticly turn on.


For example:

After 30 minutes, turn on switch10
C_SET_SWITCH_TIMER 30 10 ON

This is just the kind of command you will need for your desire!

Just one problem, I am not sure if this can trigger mutiple timers at the same time.

And since is over 1am in China, and tomor.....today is Monday, I really have no time to test out for you.

I think I will probably create a test project later today, when I got time, to try to set up your desired function, and hopefully I can get some screenshot if everything works out, so I can explain the process more clearly.

OH...I forgot to mention, this Chronus plugin is under MIT License.

Ah! About the battle scene problem.

If you go into database, and select Troops, there is this 'battle event' collum under each troop. If you need to run events in a battle scene, this is the place you need to set up your events.

Since you know, map events and common events only run outside of battle scene, you will need to connect you battle event with your map events and common events, to get everything work. This it what makes it more complicated.

Besides above problem, when enter battle scene, I believe all the timers will automaticly stop.

This creates the problem, that nomatter how many skills the actor uses in one battle, and how long the battle last, all the skills used in this battle will be assined with one same time variable.

I am not sure if this problem will concern you, but I feel this problem is ...eh... like a small black dot on a white sheet.
It's not a big problem, but it really bothers me.
I just came upon an idea but not sure how to do it.
Since I use events to start battles is there a way I can assign Actor's MP to a variable??
What if I have the event;
-Check the Actor's current MP.
-Store the hour and minute ex:930am
-Start Battle
-Turn on self switch A
The next page if self switch A is on
-Remove enemy
-Check Actor's current MP
Some how use math to note the difference and apply the missing MP after X hours?

Sure, this could be done, actually, this is much easier!

In the events that triggers battles, add following before battle starts:
use Control Variables, and chose the variable you wish to store actor's current MP. For here, lets call this variable 'A'. Then in below operation collum chose set, and in Operand, chose script. and put the following in the script.
$gameActors.actor(x).mp
replace x with the actor's ID who you wish to store.

This will get you the current mp of you actor.

Next you turn on self switch A.....ah.....I am not sure about this, but, there maybe a problem, if you use self switch in this situation.
If you turn on self switch before the content that triggers battle, the battle may not be triggered, since self-switch is on, and the event may just instantly start page2.

And if you turn on self-switch after the content that triggers battle, since mapevents and common events wouldn't run when battle starts, the self-switch may not be able to turn on.

or it maybe turn on after battle is finished?

Anyway, just assum self-switch will work, add the following to page2.
first, do the samething as you did for page1, to get the actor's after battle current mp.
Remember to assign to a different variable. Lets call this variable 'B'.

And then, create another contral variable, select the variable A. Select Sub under operation, and select variable B under operand.

Last, set up a conditional branch, if variable A > 0.

At this step, if variable A is greater then 0, this means actor used up A's amount of MP in the battle.

Then, you just have to add a trigger in the conditional branch to call a common event when A is greater then 0, and in the common event, get the current time, and set up regain A amount of MP to Actor after 24 game hours.

This is much easier becasue you now regain MP not depend on the skills, but depend on each battle.
The condition is much limited, so save a lot of work.

If this solution works for you, please reply this post to let me know, so I will not start the test project.

If not, also reply this post to let me know, so I will get into the test project when I get time.
Sure, this could be done, actually, this is much easier!

In the events that triggers battles, add following before battle starts:
use Control Variables, and chose the variable you wish to store actor's current MP. For here, lets call this variable 'A'. Then in below operation collum chose set, and in Operand, chose script. and put the following in the script.
$gameActors.actor(x).mp
replace x with the actor's ID who you wish to store.

This will get you the current mp of you actor.

Next you turn on self switch A.....ah.....I am not sure about this, but, there maybe a problem, if you use self switch in this situation.
If you turn on self switch before the content that triggers battle, the battle may not be triggered, since self-switch is on, and the event may just instantly start page2.

And if you turn on self-switch after the content that triggers battle, since mapevents and common events wouldn't run when battle starts, the self-switch may not be able to turn on.

or it maybe turn on after battle is finished?

Anyway, just assum self-switch will work, add the following to page2.
first, do the samething as you did for page1, to get the actor's after battle current mp.
Remember to assign to a different variable. Lets call this variable 'B'.

And then, create another contral variable, select the variable A. Select Sub under operation, and select variable B under operand.

Last, set up a conditional branch, if variable A > 0.

At this step, if variable A is greater then 0, this means actor used up A's amount of MP in the battle.

Then, you just have to add a trigger in the conditional branch to call a common event when A is greater then 0, and in the common event, get the current time, and set up regain A amount of MP to Actor after 24 game hours.

This is much easier becasue you now regain MP not depend on the skills, but depend on each battle.
The condition is much limited, so save a lot of work.

If this solution works for you, please reply this post to let me know, so I will not start the test project.

If not, also reply this post to let me know, so I will get into the test project when I get time.

The self switch should work if its last, putting the variable to get MP at the first thing before battle should be good to go.
Sorry im still learning and I couldnt figure this out. I got stuck trying to get the current time (I dont know how to do that ;s still working on properly learning time system or finding a plugin to learn).
Also I think you would need to have a different variable for every encounter in the game. Since wouldnt the next battle replace the MP from the first?
Either way sorry I cant seem to get it working in my game 🙁
Back in the Morning!

Just some quick answers before I go to work.

I got stuck trying to get the current time (I dont know how to do that ;s still working on properly learning time system or finding a plugin to learn).

I will look into this later in the day, to see if we can get this done without a time system. I have an idea that might just work, but I have to test out first to make sure.

Also I think you would need to have a different variable for every encounter in the game. Since wouldnt the next battle replace the MP from the first?

Yes, you do need a different variable for every encounter. Sorry about this, I was too sleepy last night, and forgot to add this in.

Here is what you can do:

Lets first name this variable ...'CDEFG'.

Then all you need is when setting up page2, add following:

Control variables, select CDEFG, set it equals to A.

Then, use CDEFG instead of A to subtract B, and set up the conditional branch base on CDEFG instead of A.

So, you just have to create a different CDEFG for each of your encounters.
About the time system, I just thought if you are having trouble with plugins, I will give you a way of set up time system without plugin.

Here is how we do it.

First, you have to decide the ratio of realtime/gametime.
For example, if you want 1 realtime second = 1 gametime minutes, then this is what you will do.

Your will need 1 switch:
Time.

3 Variables:
Day, Hour, Minute

Then, you create a parallel common event that runs when switch Time is on.

In the common event, add following content:
Wait: 60 frames
(since 60 frames = 1 realtime second)
Control Variable: Minute += 1
If variable Minute = 60
-----Control Variable: Hour +=1
-----Control Variable: Minute = 0
-----If variable Hour = 24
----------Control Variable: Day +=1
----------Control Variable: Hour = 0

Now you have variable for day, hour, and minute, ready in your database.

Thats it, simple right?

Now, all you have to do is to set up an autorun mapevent to turn on switch Time so this common event can start running.
@Icenick Before I go on with the test project, there are a few quesitons I want to ask you. Anwser them if you may, as the anwser for those questions may simplfy or complicate the set up process.

How many skills are you plainning to make?

Can those skills divide into groups by the cost of their MP?
(For example, if you have 30 skills, and 10 of them cost 5MP, 10 of them cost 10MP, 10 of then cost 15MP. Then you can divide your skills into 3 groups by the cost of their MP.)

How many events are you plainning to create which can trigger a battle?

Are those events happen only once in one gameplay, or they can be activate multiple times in one gameplay?
@Icenick Before I go on with the test project, there are a few quesitons I want to ask you. Anwser them if you may, as the anwser for those questions may simplfy or complicate the set up process.

How many skills are you plainning to make?

Can those skills divide into groups by the cost of their MP?
(For example, if you have 30 skills, and 10 of them cost 5MP, 10 of them cost 10MP, 10 of then cost 15MP. Then you can divide your skills into 3 groups by the cost of their MP.)

How many events are you plainning to create which can trigger a battle?

Are those events happen only once in one gameplay, or they can be activate multiple times in one gameplay?

Hard to say, ideally I would like to make around 100 but I still need to find a system that can upgrade skills. EX: Instead of fire, fire 2, fire 3. I want to have Fireball and leveling up you character can improve the skill itself such as increased damage, reduced MP, increase chance of burn %, etc..
Since im not sure if I have the ability to do that it will most likely be more skills.

Yes I need to test it out but most likely the skills will cost around the same, however as mentioned above if I can figure out how to improve skills aka reduce cost it will change their cost.

All battle will be based on trigger, very hard to say since I will have different monster formations, lets say a conservative 200ish.

Planning to reset them using the time system, aka daily or longer.

Edit: Thinking I need to request a plugin for this or just leave it so that every morning at 6am party gains all MP 🙁
@Icenick

Done!

https://forums.rpgmakerweb.com/index.php?threads/multi-timers.50474/

First, you will need to download this plugin made by @Shaz .

Then you have to think about theoretically how many times player can trigger battle events within 24 gamehour.
Lets just say, it is X times.

Then you will need 3+X number of Variables, and 2 switches.

For this example, I will just assume player can only trigger 2 battle events within 24 gamehour.
So I will need the following:
upload_2018-5-28_16-6-14.png

MP before battle, MP After battle, and Timer Count are three variables you will always need.

2.png
BattleCheck and Regain MP are the two switches you will always need.

Now lets set up events:

First, set up a parallel map event to turn on BattleCheck switch.
3.png
Remember to turn on self-switch A and add a blank page that runs when self-switch A is on, Just to stop this event.

Now, go to database, and go into Troops, add the following in the battle event page under every troop:
upload_2018-5-28_17-23-37.png

Don't forget about conditions and span!

Last, Create a parallel common event that runs when switch Regain MP turns on.

upload_2018-5-28_16-8-5.png


Let me explain what is happening here.
-----If Timer Count = y
This conditional branch is to make sure timers don't overwrite themselves.
The number y starts from 0 to X-1. X being the number of times I asked you think at the begain of this post.
If X=50, then y is 0 to 49.
As for this example, X=2, so y is 0 and 1.

The second line you already know, so I will go to the third line.
-----Control Variables: #0004 Timer 1 = $gameVariables.value(1)-$gameVariables.value(2)
Here, $gameVariables.value(1) represents the variable MP before battle.
$gameVariables.value(2) represents the variable MP after battle.
This line is to give variable Timer 1 the value of 'MP before battle - MP after battle'.

Next line, the conditional branch 'If Timer 1 > 0'.
I also explained this before.

Now comes to the plugin command:
-----Plugin Command : AddTimer 1 60 $gameActors.actor(1).gainMp(\v(4))
This command is to control the plugin I ask you to download earler in the post.
There are many other commands in this plugin, but this is what you will need.

AddTimer 1 60 $gameActors.actor(1).gainMp(\v(4))

Within this command, there are few things you need to know:
This '1' after AddTimer is the name of the timer that will be set up by this command. Make sure the name is different for each timer so they don't overwrites themselves.
I do recommond you to set up the name use numbers start for 1 to X.
So, if X=50, then the names will be from 1 to 50.
As for this example, X=2, so the names are 1 and 2.

The '60' after '1'.
This is the is the time this timer will count down from.
This is in realtime seconds.
As for this example, I set it to 60 seconds just for testing purpose, you can set it to whatever you need.

$gameActors.actor(1).gainMp(\v(4))
This final part of this plugin command is to control the action this timer will take, when the count down is finished.
So I input about script to gain mp.

$gameActors.actor(Z)
this Z is the ID number of the actor you want to gain MP to.

gainMp(\v(S))
S is the variable ID which contains the result of 'MP before battle - MP after battle' we calculate earler.
Make sure you put in the corresponding ID for the condtional branch.
As for this example, I used variable4 'Timer1' for the calculation, so I put 4 here for S.

Next, add:
-----Control Variable: #0003 Timer Count += 1
This content is to avoide to trigger the same conditonal branch, thus reset the same timer before it regain MP for the actor.

Now lets goon to the next conditional branch:
-----If : Timer Count = 1
This is correspond with above control variable content. So when this common event is trigger the second time, it will run this branch instead of the first one.

In this branch, change the corresponding numbers and variables, then you will have a new timer runs for to regain MP losed in second battle.

For the last content of this branch:
-----Control Variable : #0003 Time Count = 0
This is to reset this common event.
It is not possible to just add countless conditional branches to this event. This is why I ask you to think how many times actor will trigger battle events in 24 gamehour.
So we can limit conditional branches to X.

For example, if X=50, then the max value of variable Time Count is X-1, which is 49.
So when the conditional branch build up to Time Count = 49, add the above content to this conditional branch to reset everything.

Finally, at the end of everything, add turn off switch Regain MP to stop this event.

One fact about this method is the timer will still run when actor enters a battle, but the regain of MP only happens when the battle is finished.
So if you have three timers runout at the same battle, the MPs set to be gain with these three timer, will gain at the sametime when actor finished the battle.

Oh, one more thing, since timers also run in battle scene, you may add the battle time as a factor when you think about X.
I did it and it worked, I dont understand most of it lol but thanks for the explications it helped.
However this does not work if you use MP from the menu aka to heal outside of combat.
Also if im using Orange time system can I speed the time up (sleep a night at inn) will it affect the MP regain.

Honestly this is way more complicated then I originally thought, Its been giving me a headache for 2 days. I think ill just go with a clock and every midnight it fills MP.
LOL!

You should see how complicated it was, before I found the timer plugin, haha.

For the outside of combat part, this is easy since you don't have to mess arount with battle scene.

For the speed up part, this can't be done by the original timer plugin I use for this method. You will need a timer that can be adjust, or can link to your time system.
Edit: Sorry, I am being unclear. What I mean for 'can't be done' is the regain mp will not effect by 'speed up'. Regain mp will still happen, just it won't speed up by your time system.

If you can, maybe give me a link to download this 'Orange time system' you are using, so I can get a look at it, maybe help you to come up with a better way.

But after all, if you still want to get this funciton done, I do really recommond you to get a plugin. LOL!

I saw your thread about the request for plugin, hope it will works out for you.
LOL!

You should see how complicated it was, before I found the timer plugin, haha.

For the outside of combat part, this is easy since you don't have to mess arount with battle scene.

For the speed up part, this can't be done by the original timer plugin I use for this method. You will need a timer that can be adjust, or can link to your time system.

If you can, maybe give me a link to download this 'Orange time system' you are using, so I can get a look at it, maybe help you to come up with a better way.

But after all, if you still want to get this funciton done, I do really recommond you to get a plugin. LOL!

I saw your thread about the request for plugin, hope it will works out for you.

Haha I know the plugin worked amazing, I thought it would be that simple from the get go.
Im just overwhelmed but I appreciate your help! Ill look into it more later on when I make more progress with the game.
I just imagine this being a hot mess having so many variables for both out of combat and in combat. Im hoping someone can help with a plugin that checks mp, using the "hour" variable to wait 24 hours then restores the mp, all while accounting for multiple instances of MP loss

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-regen-mana-after-x-time.95771/