From e44b1fcdd750b83ce5041994453b7de68ab5dc9a Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Sat, 11 Dec 2021 11:52:12 -0500 Subject: [PATCH] Update Progression instead of Random --- Classic/scripts/autoexec/multipleMapRotation.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Classic/scripts/autoexec/multipleMapRotation.cs b/Classic/scripts/autoexec/multipleMapRotation.cs index 43f0825..51b77c5 100644 --- a/Classic/scripts/autoexec/multipleMapRotation.cs +++ b/Classic/scripts/autoexec/multipleMapRotation.cs @@ -1,3 +1,5 @@ +//$Host::ClassicRotationFile = "prefs/mapRotation1.cs"; + //Enable/Disable $EnableMultipleMapRotation = 0; @@ -9,8 +11,14 @@ function multipleMapRotation() { if($EnableMultipleMapRotation) { - %random = getrandom(1, $mapRotationFilesCount); - %mapRot = "prefs/mapRotation" @ %random @ ".cs"; + %var = stripChars($Host::ClassicRotationFile, "prefs/mapRotation.cs"); + //echo("var: " @ %var); + if(%var $= $mapRotationFilesCount) + %var = 1; + else + %var = %var + 1; + + %mapRot = "prefs/mapRotation" @ %var @ ".cs"; $Host::ClassicRotationFile = %mapRot; //Echo at start