This Script allows the user to select any class without scripting arround in config.inc.
Open Editor and insert following code:
________________
_APPNAME = "chr0nos class selector"
gui = OpenGui(_APPNAME,20,90)
botlist = AddList(gui,20,0,60,60)
choose = AddButton(gui,"Choose",20,70,50,20)
ExitOnGuiClose(gui)
botdone = 0
AddListItem(botlist,"ADDYOURCLASS")
AddListItem(botlist,"ADDYOURCLASS")
AddListItem(botlist,"ADDYOURCLASS")
AddListItem(botlist,"ADDYOURCLASS")
while 1 do
if IsButtonPressed(choose) == 1 then
liststate = GetListState(botlist)
botname = GetListItemText(botlist, liststate)
File.Erase("config.inc")
config = File.Create("config.inc")
File.WriteLine(config,"include(\"AI/"..botname.."/"..botname.."_combat.inc\")")
File.WriteLine(config,"include(\"AI/"..botname.."/"..botname.."_rest.inc\")")
File.WriteLine(config,"include(\"AI/"..botname.."/"..botname.."_keys.inc\")")
File.Close(config)
end
end
__________________
Than save as .fss
ADDYOURCLASS should be replaced with a Class like "warrior" .
The folder/files should have the following structure:
\AI\classname\classname_combat.i nc
\AI\classname\classname_keys.inc
\AI\classname\classname_rest.inc
where classname should be replaced with the Name of the Class like "warrior".