DoubleX RMMV Action Times

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
Note


This plugin's available for commercial use.


Purpose


Changes the Action Times traits from being each of them calculated independently to be added together before calculating that sum at once


Games using this plugin


None so far


Description


Under the default RMMV setting, if p = p1 + p2 + p3 + ... + pn, where pi is the value of an Action Times trait, then the probability distribution on the final action times will be:
P(0 or smaller) = 0
P(1) = (1 - x1)(1 - x2)(1 - x3)...(1 - xn)
P(2) = x1(1 - x2)(1 - x3)(1 - x4)...(1 - xn) + x2(1 - x1)(1 - x3)(1 - x4)...(1 - xn) + x3(1 - x1)(1 - x2)(1 - x4)...(1 - xn) + ... + xn(1 - x1)(1 - x2)(1 - x3)...(1 - x(n - 1))
P(3) = x1x2(1 - x3)(1 - x4)(1 - x5)...(1 - xn) + x1x3(1 - x1)(1 - x4)(1 - x5)...(1 - xn) + x1x4(1 - x2)(1 - x3)(1 - x5)...(1 - xn) + ... + x(n - 1)xn(1 - x1)(1 - x2)(1 - x3)...(1 - x(n-2))
...
P(n + 1) = x1x2x3...xn
P(n + 2 or larger) = 0
With this plugin's used, if a = the integer part of a p and r = the decimal part of p, then the probability distribution on the final action times will be:
P(a - 1 or smaller) = 0
P(a) = 1 - r
P(a + 1) = r
P(a + 2 or larger) = 0


Prerequisites


Nothing special


Terms Of Use


You shall keep this plugin's Plugin Info part's contents intact


You shalln't claim that this plugin's written by anyone other than DoubleX or his aliases


None of the above applies to DoubleX or his/her aliases


Changelog


* v1.00c(GMT 1300 27-1-2016):
* 1. Fixed using 0 instead of 1 as the initial action times value
* v1.00b(GMT 0900 11-11-2015):
* 1. Added descriptions that will be shown in the plugin manager
* 2. Fixed some syntax errors
* v1.00a(GMT 1400 28-10-2015):
* 1. 1st version of this plugin finished




View attachment DoubleX RMMV Act Times v100c.rar
 
Last edited by a moderator:

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
653
Reaction score
391
First Language
English
Primarily Uses
N/A
So if I have State 1 that adds 75% Action Time+, and another state that adds 25% Action time+... How would this plugin handle that? Does that just mean the battler has a 100% chance of attacking a second time?
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
So if I have State 1 that adds 75% Action Time+, and another state that adds 25% Action time+... How would this plugin handle that? Does that just mean the battler has a 100% chance of attacking a second time?
Exactly.

Under the default RMMV setting, your case will lead to be below probability distribution on the final action times:

P(0-) = 0

P(1) = (1 - 0.75)(1 - 0.25) = 0.1875

P(2) = (0.75)(1 - 0.25) + (1 - 0.75)(0.25) = 0.625

P(3) = (0.75)(0.25) = 0.1875

P(4+) = 0

With this plugin used, the probability distribution on the final action times becomes:

P(1-) = 0

P(2) = 0.75 + 0.25 = 1

P(3+) = 0
 

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
653
Reaction score
391
First Language
English
Primarily Uses
N/A
Got it. So what if we add enough states and the calculation exceeds 100%? For instance, a 25% state, a 75% state, and a 30% state. Does that extra 30% carry over to the chance of a third hit? As in, a 100% of striking a second time, and a 30% chance of striking a third time?

Sorry for the repeated questions, Just want to make sure I understand this, because it's actually a very useful plugin.
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
Got it. So what if we add enough states and the calculation exceeds 100%? For instance, a 25% state, a 75% state, and a 30% state. Does that extra 30% carry over to the chance of a third hit? As in, a 100% of striking a second time, and a 30% chance of striking a third time?

Sorry for the repeated questions, Just want to make sure I understand this, because it's actually a very useful plugin.
Yes. Percisely, in your case, the probability distribution on the final action times becomes:

P(1-) = 0

P(2) = 1 - ((0.25 + 0.75 + 0.3) - 1) = 0.7

P(3) = (0.25 + 0.75 + 0.3) - 1 = 0.3

P(4+) = 0

More generally, if x = the sum of all action times / 100%, y = the integer part of x, and z = the decimal part of x, then the probability distribution on the final action times becomes:

P(y - 1 or lower) = 0

P(y) = 1 - z

P(y + 1) = z

P(y + 2 or higher) = 0

Whereas the default RMMV setting will lead to this probability distribution on the final action times, if x = x1 + x2 + x3 + ... + xn:

P(0 or lower) = 0

P(1) = (1 - x1)(1 - x2)(1 - x3)...(1 - xn)

P(2) = x1(1 - x2)(1 - x3)(1 - x4)...(1 - xn) + x2(1 - x1)(1 - x3)(1 - x4)...(1 - xn) + x3(1 - x1)(1 - x2)(1 - x4)...(1 - xn) + ... + xn(1 - x1)(1 - x2)(1 - x3)...(1 - x(n - 1))

P(3) = x1x2(1 - x3)(1 - x4)(1 - x5)...(1 - xn) + x1x3(1 - x1)(1 - x4)(1 - x5)...(1 - xn) + x1x4(1 - x2)(1 - x3)(1 - x5)...(1 - xn) + ... + x(n - 1)xn(1 - x1)(1 - x2)(1 - x3)...(1 - x(n-2))

...

P(n + 1) = x1x2x3...xn

P(n + 2 or higher) = 0
 
Last edited by a moderator:

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
Updates

Code:
 *      v1.00b(GMT 0900 11-11-2015):                                           *      1. Added descriptions that will be shown in the plugin manager         *      2. Fixed some syntax errors
 
Last edited by a moderator:

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
Updates

Code:
 *      v1.00c(GMT 1300 27-1-2016):                                           
 *      1. Fixed using 0 instead of 1 as the initial action times value
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top