SRL Archive - General

MSI_SetupVars and DeclareSettings


Coh3n

2010-12-29 16:41:26

I've gotten rid of the setup constants in RunMe.simba and there's now a procedure (DeclareSettings) where the user sets the MSI_SetupVars array. If you didn't know already, I changed this to work with the form, and I think in general it makes more sense. :)

This won't effect the way the script runs at all.

marpis

2010-12-30 02:22:25

If there were some constants that are now variables and you'd like to keep them as constants, you could have them both and set up
Msi_Something_var := MSI_SOMETHING_CONST;
somewhere?

Somehow related to the thread I believe :rolleyes:

Coh3n

2010-12-30 13:17:23

From: marpis
If there were some constants that are now variables and you'd like to keep them as constants, you could have them both and set up
Msi_Something_var := MSI_SOMETHING_CONST;
somewhere?

Somehow related to the thread I believe :rolleyes:

They're technically still constants, but now the represent the indexes of the array. So the user would set them like this if they're not using the form.

procedure DeclareSettings();
begin
MSI_SetupVars[SETUP_DEBUG_SMART] := True; // Debugs things onto SMART (may cause lag)
MSI_SetupVars[SETUP_SAVE_DEBUG] := True; // Save's the debug box text to a file
MSI_SetupVars[SETUP_HUMAN_BREAK] := True; // Take more human like breaks
MSI_SetupVars[SETUP_SWITCH_WORLDS] := True; // Switch worlds when switching players or after breaks
MSI_SetupVars[SETUP_BREAK_TIME] := 15; // Single player only - how long to break for (in minutes)
MSI_SetupVars[SETUP_DEBUG_LEVEL] := 10; // The lower the number, the less the script will debug
MSI_SetupVars[SETUP_ANTIBAN_WAIT] := 15000; // Minimum time to wait between antibans (in milliseconds 1000ms = 1s)
MSI_SetupVars[SETUP_RANDOMS_WAIT] := 10000; // Minimum time to wait between randoms checks
MSI_SetupVars[SETUP_STATS_ID] := ''; // Temporary stats ID (2 digit number)
MSI_SetupVars[SETUP_STATS_PASS] := ''; // Temporary stats password
end;