Guest User

Revised if statements

a guest
Jul 18th, 2018
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. local function memFusions()
  2.     --footContact var.
  3.     footContact = (not inSlopeNow and not inGroundNow and not inStandNPC)
  4.  
  5.     --bannedPowerUps var.
  6.     usingBannedPowerUps = (currentPowerUp == 4 or currentPowerUp == 5)
  7.  
  8.     --isInSomething var.
  9.     isInSomething = (isInVine or isInMount or isInWater or isInRainbowShell)
  10.  
  11.     --isDoingSomething var.
  12.     isDoingSomething = (isSpinning and timer <= timerLimit)
  13.  
  14.     --isSomePlayer var.
  15.     isDoingSomething = ((pressedAltJump and not unholdingAltJump and isSpinning) or spriteHeld >= 1 or (characterId == 3 or characterId >= 5))
  16. end
  17.  
  18. local function doingBannedStuff()
  19.     isDoingBannedStuff = (footContact or usingBannedPowerUps or isInSomething or isDoingSomething)
  20. end
  21.  
  22. local function timeReload()
  23.     if not isDoingBannedStuff then
  24.         timer = timer + 1;
  25.     else
  26.         timer = 0
  27.     end
  28.  
  29.     isDoingBannedStuff = (timer >= timerLimit)
  30.     allowTwirls = (timer >= timerLimit)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment