Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. begin AB_LightSourceDay_s
  2.  
  3. short Xposition
  4. short myState
  5.  
  6. dontsaveobject
  7.  
  8. if ( CellChanged == 1 )
  9.  
  10. if ( Xposition > 4520 )
  11.  
  12. set myState to 1
  13. else
  14. set myState to 0
  15. endif
  16. Return
  17. endif
  18.  
  19. If ( MenuMode == 1 )
  20. Return
  21. Endif
  22.  
  23. set Xposition to ( GetPos, x )
  24.  
  25. if ( Gamehour > 21 )
  26.  
  27. if ( Xposition < 5420 )
  28. SetPos x 5420
  29. MoveWorld x 1
  30. endif
  31. return
  32.  
  33. elseif ( Gamehour > 20 )
  34.  
  35. if ( Xposition < 5420 )
  36. MoveWorld x, 10
  37. endif
  38. return
  39. endif
  40.  
  41. if ( getcurrentweather < 2 )
  42.  
  43. if ( Gamehour > 7 )
  44.  
  45. if ( Xposition > 4420 )
  46. SetPos x 4420
  47. MoveWorld x -1
  48.  
  49. elseif ( myState == 1 )
  50. set myState to 0
  51. disable
  52. enable
  53. endif
  54.  
  55. elseif ( Gamehour > 6 )
  56.  
  57. if ( Xposition > 4420 )
  58. MoveWorld x, -10
  59.  
  60. elseif ( myState == 1 )
  61. set myState to 0
  62. disable
  63. enable
  64. endif
  65.  
  66. elseif ( Xposition < 5420 )
  67. SetPos x 5420
  68. MoveWorld x 1
  69. endif
  70. return
  71. endif
  72.  
  73. if ( getcurrentweather < 5 )
  74.  
  75. if ( Gamehour > 7 )
  76.  
  77. if ( Xposition > 4520 )
  78. SetPos x 4520
  79. MoveWorld x -1
  80. elseif ( Xposition < 4510 )
  81. SetPos x 4520
  82. MoveWorld x -1
  83.  
  84. elseif ( myState == 1 )
  85. set myState to 0
  86. disable
  87. enable
  88. endif
  89.  
  90. elseif ( Gamehour > 6 )
  91.  
  92. if ( Xposition > 4520 )
  93. MoveWorld x, -10
  94. elseif ( Xposition < 4510 )
  95. SetPos x 4520
  96. MoveWorld x -1
  97.  
  98. elseif ( myState == 1 )
  99. set myState to 0
  100. disable
  101. enable
  102. endif
  103.  
  104. elseif ( Xposition < 5420 )
  105. SetPos x 5420
  106. MoveWorld x 1
  107. endif
  108. return
  109. endif
  110.  
  111. if ( Xposition < 5420 )
  112. SetPos x 5420
  113. MoveWorld x 1
  114. endif
  115.  
  116. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement