Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if global.Player1Moving = true && global.Player1AccyCheck = false {
- if Var.MoveAccuracy[global.aMoveChosen]*global.aStoredPlyrAccyMod < 1 && global.aMoveTypeEffect != 0 {
- global.aTotalAccuracy = global.aStoredPlyrAccyMod*Var.MoveAccuracy[global.aMoveChosen];
- global.MoveChance = random_range(0.0,1.0);
- }
- if global.MoveChance > global.aTotalAccuracy && global.MoveChance < 1 { //if misses...
- global.aMoveTypeEffect = -1;
- global.aDamageInflicted *= 0;
- }
- global.Player1AccyCheck = true;
- }
- if global.Player2Moving = true && global.Player2AccyCheck = false {
- if Var.MoveAccuracy[global.bMoveChosen]*global.bStoredPlyrAccyMod < 1 && global.bMoveTypeEffect != 0 {
- global.bTotalAccuracy = global.bStoredPlyrAccyMod*Var.MoveAccuracy[global.bMoveChosen];
- global.MoveChance = random_range(0.0,1.0);
- }
- if global.MoveChance > global.bTotalAccuracy && global.MoveChance < 1 { //if misses...
- global.bMoveTypeEffect = -1;
- global.bDamageInflicted *= 0;
- }
- global.Player2AccyCheck = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement