Advertisement
Guest User

Untitled

a guest
May 5th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Begin MS_RisingPlatform
  2. ;-AUTHOR: GrandBulwark
  3. ;-MOD: Monastery of Moon and Star
  4.  
  5. Short ControlVar
  6. Float Timer
  7. Short Direction
  8.  
  9.  
  10. if ( MenuMode == 1 )
  11. return
  12. endif
  13.  
  14. if ( OnActivate == 1 )
  15.  
  16. if ( ControlVar != 1 )
  17. If ( "MS_Reference"->GetDisabled != 1 )
  18. Set ControlVar to 1
  19. Else
  20. MessageBox "The Monastery's Defenses have sealed the gate!"
  21. Endif
  22. Else
  23. MessageBox "The Elevator is busy!"
  24. Endif
  25.  
  26. If ( ControlVar <= 1 )
  27. set timer to ( timer + GetSecondsPassed )
  28.  
  29. If ( Timer < 15 )
  30. If ( Direction != 1 )
  31. "MS_Elevator"->MoveWorld -Z 68
  32. Set Direction to 1
  33. Else
  34. "MS_Elevator"->MoveWorld Z 68
  35. Endif
  36. Endif
  37. If ( Timer == 15 )
  38. Set ControlVar to 0
  39. Set Timer to 0
  40. Endif
  41. Endif
  42. Endif
  43.  
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement