Jump to content
DoubleX

DoubleX RMMV Action Times

Recommended Posts

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                               

 

 

 

DoubleX RMMV Act Times v100c.txt

Edited by DoubleX

Share this post


Link to post
Share on other sites

The plugins are supposed to be .js files, not .txt.

As it seems to me that I still can't upload js nor rar files in this forum, I uploaded the txt instead.

To change it to js, simply change the file extension from txt to js :)

Share this post


Link to post
Share on other sites

So what exactly does this do?

Let's say a battler has the following Action Times traits:

Action Times - 40%

Action Times - 40%

Action Times - 40%

In the default RMMV setting, the probability of the final action times are as follows:

P(0-) = 0

P(1) = (1 - 0.4)(1 - 0.4)(1 - 0.4) = 0.216

P(2) = 3(0.4)(1 - 0.4)(1 - 0.4) = 0.432

P(3) = 3(0.4)(0.4)(1 - 0.4) = 0.288

P(4) = 0.4(0.4)(0.4) = 0.064

P(5+) = 0

With this script used, the probability of the final action times are as follows:

P(1-) = 0

P(2) = (1 - (1.2 - 1)) = 0.8

P(3) = 1.2 - 1 = 0.2

P(4+) = 0

As 40% + 40% + 40% = 120%, meaning Math.floor(1.2) = 1 addition action times will always be granted, and there's the remaining 120% - 100% = 20% chance to grant 1 more.

Edited by DoubleX

Share this post


Link to post
Share on other sites

Updates

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

Share this post


Link to post
Share on other sites

Updates

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted