| !Run file for Botkiller2 version 1.00 Demo
|
| Load the Botkiller2 icon sprites
IconSprites <Obey$Dir>.!Sprites
|
| Check we aren't using the Ursula joystick module
Set Ursula$Joystick "Yes"
RMEnsure Joystick 0.24 Set Ursula$Joystick "No"
If Ursula$Joystick="Yes" Then Error 0 Botkiller2 is incompatible with your current joystick module. Please '*RMKill Joystick' and try again.
UnSet Ursula$Joystick
|
| Set up the system variables for Botkiller2
Set BotRes$Dir <Obey$Dir>.Resources
Set BotSound$Path <Obey$Dir>.Sound.
Set BotLev$Path <Obey$Dir>.Levels.
Set BotMod1$Temp "Yes"
Set BotMod2$Temp "Yes"
|
| Load modules, and store if they were already loaded
RMEnsure QTMTracker 0.01 Set BotMod1$Temp "No"
RMEnsure QTMTracker 1.27 RMLoad <BotRes$Dir>.QTMTracker
RMEnsure GameModes 0.01 Set BotMod2$Temp "No"
RMEnsure GameModes 1.15 RMLoad <BotRes$Dir>.GameModes
|
| Claim enough memory in the relevant areas
Run <BotRes$Dir>.ScreenMem
WimpSlot -Min 3072k -Max 3072k
|
| Run the game.
Run <Obey$Dir>.!RunImage
|
| Remove any modules which Botkiller2 didn't load
If BotMod1$Temp="No" Then RMKill QTMTracker
If BotMod2$Temp="No" Then RMKill GameModes
|
| Remove system variables set up by Botkiller2
UnSet BotMod2$Temp
UnSet BotMod1$Temp
UnSet BotLev$Path
UnSet BotSound$Path
UnSet BotRes$Dir
