Howdy all, I've been setting up the ATB system provided by Yanfly and because I have no experience with Java, I've hit a hurdle in setting up the custom Per Tick speed I had wanted. So far, this is the amount of code I've got working:
100 + user.agi + (user.luk/3)
Which is good and all, but then want the result above to be multiplied by a percentage created by dividing the user's agility against the enemies' agility. My first attempt was:
100 + user.agi + (user.luk/3) * ($gameParty.agility/$gameTroop.agility)
Which just seemed to break the ATB system and made turns happen instantly, so that's a bust. Plus, I don't know if the system will just have made the generated percentage the same for the enemies or correctly place their agility in the gameParty position and the Party members' in the gameTroop or if it runs off a completely separate system all together. I also tried:
100 + user.agi + (user.luk/3) * (user.agi/enemy.agi)
Which just crashed the game. It wasn't terribly surprising but no less frustrating. And so, I admit my defeat and come to the Forums to consult those wiser than me for answers. Thank you all for your time and have a pleasant day.
100 + user.agi + (user.luk/3)
Which is good and all, but then want the result above to be multiplied by a percentage created by dividing the user's agility against the enemies' agility. My first attempt was:
100 + user.agi + (user.luk/3) * ($gameParty.agility/$gameTroop.agility)
Which just seemed to break the ATB system and made turns happen instantly, so that's a bust. Plus, I don't know if the system will just have made the generated percentage the same for the enemies or correctly place their agility in the gameParty position and the Party members' in the gameTroop or if it runs off a completely separate system all together. I also tried:
100 + user.agi + (user.luk/3) * (user.agi/enemy.agi)
Which just crashed the game. It wasn't terribly surprising but no less frustrating. And so, I admit my defeat and come to the Forums to consult those wiser than me for answers. Thank you all for your time and have a pleasant day.