This is the code I've got in the Action Speed parameter box for Yanfly's BattleEngine Core script:
Basically, if the AGI for the battler is above 50 (i.e., they are an enemy), I want their Action Speed to be 1. Otherwise: if their AGI is greater than a random number, I want their Action Speed to be 2; otherwise, 0.
This is the error I get:
"ReferenceError: math is not defined".
What is going on here? Is it possible to do what I'd like?
EDIT: Yanfly's Battle Engine Core script
Basically, if the AGI for the battler is above 50 (i.e., they are an enemy), I want their Action Speed to be 1. Otherwise: if their AGI is greater than a random number, I want their Action Speed to be 2; otherwise, 0.
This is the error I get:
"ReferenceError: math is not defined".
What is going on here? Is it possible to do what I'd like?
EDIT: Yanfly's Battle Engine Core script