Skip to content

Loadvars

stevenruzicka edited this page Sep 21, 2019 · 3 revisions

The loadvars subroutine is important to any new Mombot module you want to write. It will save you a bunch of time and headache, and also sets up the help file creation as well.

The most often used variables are loaded in this routine. If one is missing, you will need to add it manually.

The list of variables loaded are:


	$bot~mode
	$bot~command 
	$SWITCHBOARD~bot_name
	$bot~bot_name 
	$planet~planet_file
	$ship~cap_file
	$bot~user_command_line 
	$bot~parm1
	$bot~parm2
	$bot~parm3
	$bot~parm4
	$bot~parm5
	$bot~parm6
	$bot~parm7
	$bot~parm8
	$bot~bot_turn_limit
	$PLAYER~unlimitedGame
        $MAP~stardock
	$MAP~rylos
	$MAP~alpha_centauri
	$MAP~home_sector
	$MAP~backdoor
	$bot~silent_running
	$bot~botIsDeaf
        $switchboard~self_command
	$planet~planet
	$bot~password
	$bot~letter
	$game~port_max
	$bot~folder
	$game~photon_duration
Clone this wiki locally