Main Menu
  • Welcome to The RPG Maker Resource Kit.

DoubleX RMMV Action Times

Started by DoubleX, October 28, 2015, 01:19:13 PM

0 Members and 1 Guest are viewing this topic.

DoubleX

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                               


Authors
DoubleX

Credits
DoubleX(Optional)

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 script
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

DoubleX

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

DoubleX

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