- Joined
- Oct 17, 2012
- Messages
- 394
- Reaction score
- 98
- First Language
- Español
- Primarily Uses
- RMVXA
Hello. I created a battle and I noticed sometimes the slower battler can attack first, I tried to check and I think I found the trouble, and it's the random factor in Game_Action script
I removed the random calc but the problem persists, is there another script is involved in turn order? How can I modify the turn order to remove the involved random factor? Thanks for the help
Code:
#--------------------------------------------------------------------------
# * Calculate Action Speed
#--------------------------------------------------------------------------
def speed
speed = subject.agi + rand(5 + subject.agi / 4)
speed += item.speed if item
speed += subject.atk_speed if attack?
speed
end