This is very useful! I'm using it to create a day/night system in battles where the time of day changes based on a condition that checks if a variable is equal to or a multiple of a number. For the most part, it works well, and I'm still tinkering with it.
--------------------------------------------------------------------------------------------------
Moreover, I have a different question.
I'm working on a skill that uses luck to calculate a chance to grant the actor another action. It assigns the actor's Luck to a variable and then several conditions happen:
If the actor's luck is above 70, a second variable calculates a chance between 1 and 100 and if that variable is greater or equal to 79, then the actor gets to act again (in other words, it has a 21% chance of being able to act again.)
If the actor's luck is above 60, a second variable calculates a chance between 1 and 100 and if that variable is greater or equal to 82, then the actor gets to act again (in other words, it has a 18% chance of being able to act again.)
And so on and so forth based on different luck stat amounts. There could very well be other issues, but for now I want to test things one at a time,
starting with the script that Control Variable uses to assign the Actor's luck to a variable.
I'm using
$gameParty.leader().param(7) to test this with the party leader's luck stat, but eventually I want to make Control Variable assign the luck of any actor using it to the variable.
What is the correct script I should use?
This is the common event that plays after the skill in question is used.