Advertisement
TJSJ

PokeAttempt 0.30 mon_accuracy Script

Mar 28th, 2020
1,336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. if global.Player1Moving = true && global.Player1AccyCheck = false {
  3.  
  4. if Var.MoveAccuracy[global.aMoveChosen]*global.aStoredPlyrAccyMod < 1 && global.aMoveTypeEffect != 0 {
  5.     global.aTotalAccuracy = global.aStoredPlyrAccyMod*Var.MoveAccuracy[global.aMoveChosen];
  6.     global.MoveChance = random_range(0.0,1.0);
  7.     }
  8.    
  9. if global.MoveChance > global.aTotalAccuracy && global.MoveChance < 1 { //if misses...
  10.         global.aMoveTypeEffect = -1;
  11.         global.aDamageInflicted *= 0;
  12.         }
  13.  
  14. global.Player1AccyCheck = true;
  15.        
  16. }
  17.        
  18. if global.Player2Moving = true && global.Player2AccyCheck = false {
  19.  
  20. if Var.MoveAccuracy[global.bMoveChosen]*global.bStoredPlyrAccyMod < 1 && global.bMoveTypeEffect != 0 {
  21.     global.bTotalAccuracy = global.bStoredPlyrAccyMod*Var.MoveAccuracy[global.bMoveChosen];
  22.     global.MoveChance = random_range(0.0,1.0);
  23.     }
  24.    
  25. if global.MoveChance > global.bTotalAccuracy && global.MoveChance < 1 { //if misses...
  26.         global.bMoveTypeEffect = -1;
  27.         global.bDamageInflicted *= 0;
  28.         }
  29.        
  30. global.Player2AccyCheck = true;
  31.        
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement