Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. scn NAWSeasionalFramework
  2.  
  3. int iToken
  4. int iReset
  5. int iLoop
  6. int iCount
  7. int iStage
  8. ref rLandscape
  9. string_var sToken
  10. string_var sLandscape
  11. string_var sINI
  12.  
  13. ;Script Control the Seasion function
  14. ;Everthing with "NAWMainn." is MCM related to toggle the different Seasion ON/OFF or disable is entirely
  15. ;Author Anro
  16. ;Time/Date 18:32 24.03.2020
  17.  
  18. begin gamemode
  19.  
  20. if (Gamemonth >= 11 || Gamemonth < 1) && iToken != 1
  21. if NAWMain.iLand && NAWMain.iWinter
  22. Let sToken := "Snow:"
  23. set iLoop to 1
  24. set iToken to 1
  25. else
  26. Let sToken := "Reset:"
  27. set iLoop to 1
  28. set iToken to 1
  29. endif
  30. endif
  31.  
  32. if (Gamemonth >= 2 && Gamemonth < 4) && iToken != 2
  33. if NAWMain.iLand && NAWMain.iSpring
  34. Let sToken := "Spring:"
  35. set iLoop to 1
  36. set iToken to 2
  37. else
  38. Let sToken := "Reset:"
  39. set iLoop to 1
  40. set iToken to 2
  41. endif
  42. endif
  43.  
  44. if (Gamemonth >= 5 && Gamemonth < 7) && iToken != 3
  45. if NAWMain.iLand && NAWMain.iSummer
  46. Let sToken := "Summer:"
  47. set iLoop to 1
  48. set iToken to 3
  49. else
  50. Let sToken := "Reset:"
  51. set iLoop to 1
  52. set iToken to 3
  53. endif
  54. endif
  55.  
  56. if (Gamemonth >= 8 && Gamemonth < 10) && iToken != 4
  57. if NAWMain.iLand && NAWMain.iAutumn
  58. Let sToken := "Autumn:"
  59. set iLoop to 1
  60. set iToken to 4
  61. else
  62. Let sToken := "Reset:"
  63. set iLoop to 1
  64. set iToken to 4
  65. endif
  66. endif
  67.  
  68. if iLoop
  69. set iCount to ListGetCount NAWLandscape
  70. set iStage to 0
  71. while (iCount)
  72. set iCount to iCount - 1
  73. set rLandscape to ListGetNthForm NAWLandscape iCount
  74. Let sINI := $sToken + $iStage
  75. Let sLandscape := GetINIString $sINI "NAW\Terraforming\LandscapeTextures.ini"
  76. SetTextureSetTexture rLandscape 0 $sLandscape
  77. set iStage to iStage + 1
  78. Let sINI := $sToken + $iStage
  79. Let sLandscape := GetINIString $sINI "NAW\Terraforming\LandscapeTextures.ini"
  80. SetTextureSetTexture rLandscape 1 $sLandscape
  81. set iStage to iStage + 1
  82. loop
  83. Console "TG"
  84. set iStage to 0
  85. set iCount to ListGetCount NAWMeshReplacer
  86. while (iCount)
  87. set iCount to iCount - 1
  88. set rLandscape to ListGetNthForm NAWMeshReplacer iCount
  89. Let sINI := $sToken + $iStage
  90. Let sLandscape := GetINIString $sINI "NAW\Terraforming\LandscapeMeshes.ini"
  91. SetModelPathEx $sLandscape rLandscape
  92. set iStage to iStage + 1
  93. loop
  94. Console "TG"
  95. set iLoop to 0
  96. sv_destruct sLandscape sINI sToken
  97. endif
  98. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement