Mriganka
I took a standard gui script as a base, then I edited for me. In my script has a lot of added variables.
title page:
;AIScript from Wizard
;Header
desc = Title Page Wizard V103
;Установка GUI
:state=0:resetgui,music=audiobank\music\generic\title.wav
;Загрузка нажатых кнопок
:state=0:loadimage=NGO languagebank\english\gamecore\backdrops\basic\newgameover.dds
:state=0:loadimage=CGO languagebank\english\gamecore\backdrops\basic\continueover.dds
:state=0:loadimage=OPO languagebank\english\gamecore\backdrops\basic\optionsover.dds
:state=0:loadimage=EGO languagebank\english\gamecore\backdrops\basic\exitgameover.dds
:state=0:loadimage=MMO languagebank\english\gamecore\backdrops\basic\mainmenuover.dds
:state=0:loadimage=TO languagebank\english\gamecore\backdrops\basic\trainingover.dds
:state=0:loadimage=BO languagebank\english\gamecore\backdrops\basic\backover.dds
:state=0:loadimage=SO languagebank\english\gamecore\backdrops\basic\startover.dds
:state=0:loadimage=YO languagebank\english\gamecore\backdrops\basic\yesover.dds
:state=0:loadimage=NO languagebank\english\gamecore\backdrops\basic\noover.dds
;Загрузка ненажатых кнопок
:state=0:loadimage=MG languagebank\english\gamecore\backdrops\basic\gamemenu.dds,makehud=GameMenu MG MG 50 10
:state=0:loadimage=NG languagebank\english\gamecore\backdrops\basic\newgame.dds,makehud=NewGame NG NGO 50 40
:state=0:loadimage=CG languagebank\english\gamecore\backdrops\basic\continue.dds,makehud=Continue CG CGO 50 50
:state=0:loadimage=OP languagebank\english\gamecore\backdrops\basic\options.dds,makehud=Options OP OPO 50 60
:state=0:loadimage=T languagebank\english\gamecore\backdrops\basic\training.dds,makehud=Training T TO 50 70
:state=0:loadimage=EG languagebank\english\gamecore\backdrops\basic\exitgame.dds,makehud=ExitGame EG EGO 50 80
:state=0:loadimage=MM languagebank\english\gamecore\backdrops\basic\mainmenu.dds
:state=0:makehud=OptionsTitle OP OP 50 10
:state=0:loadimage=SC languagebank\english\gamecore\backdrops\basic\selectcharacter.dds,makehud=SelectCharacter SC SC 50 10
:state=0:loadimage=B languagebank\english\gamecore\backdrops\basic\back.dds,makehud=Back B BO 15 90
:state=0:loadimage=S languagebank\english\gamecore\backdrops\basic\start.dds,makehud=Start S SO 85 90
:state=0:loadimage=Y languagebank\english\gamecore\backdrops\basic\yes.dds,makehud=Yes Y YO 65 55
:state=0:loadimage=N languagebank\english\gamecore\backdrops\basic\no.dds,makehud=No N NO 35 55
:state=0:loadimage=C languagebank\english\gamecore\backdrops\basic\confirm.dds,makehud=Confirm C C 50 40
;Загрузка курсора
:state=0:loadimage=Cursor1 languagebank\english\gamecore\backdrops\basic\cursor1.dds
:state=0:loadimage=Cursor2 languagebank\english\gamecore\backdrops\basic\cursor2.dds
:state=0:loadimage=Cursor3 languagebank\english\gamecore\backdrops\basic\cursor3.dds,setcursor=Cursor1,showcursor
;Загрузка слайдеров
:state=0:loadimage=SBACI languagebank\english\gamecore\backdrops\basic\sliderback.dds,loadimage=SBARI languagebank\english\gamecore\backdrops\basic\sliderbar.dds
:state=0:makechoice=ResChoice SBACI NONE SBARI 800x600 1024x768 30 35,addchoicevalue=ResChoice 1280x768,addchoicevalue=ResChoice 1440x960,setchoicevalue=ResChoice 1024x768
:state=0:makechoice=AntiAlias SBACI NONE SBARI Off 2x 30 55,addchoicevalue=AntiAlias 4x,addchoicevalue=AntiAlias 8x,addchoicevalue=AntiAlias 16x,setchoicevalue=AntiAlias Off
:state=0:makechoice=TexQuality SBACI NONE SBARI Low Medium 30 75,addchoicevalue=TexQuality High,setchoicevalue=TexQuality Medium
;Загрузка чекбоксов
:state=0:loadimage=CBU languagebank\english\gamecore\backdrops\basic\checkboxunselect.dds,loadimage=CBS languagebank\english\gamecore\backdrops\basic\checkboxselect.dds
:state=0:makecheckbox=CheckFSS CBU CBS 80 30,makecheckbox=CheckOS CBU CBS 80 40,makecheckbox=CheckPEF CBU CBS 80 50,makecheckbox=CheckSHA CBU CBS 80 60,makecheckbox=CheckINM CBU CBS 80 70
;Загрузка меню настроек
:state=0:loadimage=TAA languagebank\english\gamecore\backdrops\basic\textlabels\antialiasing.png
:state=0:loadimage=TRS languagebank\english\gamecore\backdrops\basic\textlabels\resolution.png
:state=0:loadimage=TTQ languagebank\english\gamecore\backdrops\basic\textlabels\texturequality.png
:state=0:makehud=AATitle TAA TAA 30 48,makehud=RETitle TRS TRS 30 28,makehud=TQTitle TTQ TTQ 30 68
:state=0:loadimage=FSS languagebank\english\gamecore\backdrops\basic\textlabels\fullscreenshaders.png
:state=0:loadimage=OSS languagebank\english\gamecore\backdrops\basic\textlabels\objectshaders.png
:state=0:loadimage=PEF languagebank\english\gamecore\backdrops\basic\textlabels\particleeffects.png
:state=0:loadimage=SHS languagebank\english\gamecore\backdrops\basic\textlabels\shadows.png
:state=0:loadimage=INM languagebank\english\gamecore\backdrops\basic\textlabels\invertmouse.png
:state=0:makehud=FSSTitle FSS FSS 65 30,makehud=OSSTitle OSS OSS 65 40,makehud=PEFTitle PEF PEF 65 50,makehud=SHSTitle SHS SHS 65 60,makehud=INMTitle INM INM 65 70,makehud=MainMenu MM MMO 50 90
;Переменные для работы меню GUI
:state=0:makesvar=FSSVar 0 postprocessing,readsetupline=FSSVar postprocessing
:state=0,svarequal=FSSVar 0:setcheckboxchecked=CheckFSS 0
:state=0,svarequal=FSSVar 1:setcheckboxchecked=CheckFSS 1
:state=0:makesvar=OSVar 0 useeffects,readsetupline=OSVar useeffects
:state=0,svarequal=OSVar 0:setcheckboxchecked=CheckOS 0
:state=0,svarequal=OSVar 1:setcheckboxchecked=CheckOS 1
:state=0:makesvar=PEVar 0 particleused,readsetupline=PEVar particleused
:state=0,svarequal=PEVar 0:setcheckboxchecked=CheckPEF 0
:state=0,svarequal=PEVar 1:setcheckboxchecked=CheckPEF 1
:state=0:makesvar=SHVar 0 dynamicshadows,readsetupline=SHVar dynamicshadows
:state=0,svarequal=SHVar 0:setcheckboxchecked=CheckSHA 0
:state=0,svarequal=SHVar 1:setcheckboxchecked=CheckSHA 1
:state=0:makesvar=IMVar 0 invmouse,readsetupline=IMVar invmouse
:state=0,svarequal=IMVar 0:setcheckboxchecked=CheckINM 0
:state=0,svarequal=IMVar 1:setcheckboxchecked=CheckINM 1
:state=0:makesvar=WVar 0 width,readsetupline=WVar width
:state=0:makesvar=HVar 0 height,readsetupline=HVar height
:state=0,svarequal=WVar 800,svarequal=HVar 600:setchoicevalue=ResChoice 800x600
:state=0,svarequal=WVar 1024,svarequal=HVar 768:setchoicevalue=ResChoice 1024x768
:state=0,svarequal=WVar 1280,svarequal=HVar 768:setchoicevalue=ResChoice 1280x768
:state=0,svarequal=WVar 1440,svarequal=HVar 960:setchoicevalue=ResChoice 1440x960
:state=0:makesvar=AAVar 0 antialias,readsetupline=AAVar antialias
:state=0,svarequal=AAVar 0:setchoicevalue=AntiAlias Off
:state=0,svarequal=AAVar 2:setchoicevalue=AntiAlias 2x
:state=0,svarequal=AAVar 4:setchoicevalue=AntiAlias 4x
:state=0,svarequal=AAVar 8:setchoicevalue=AntiAlias 8x
:state=0,svarequal=AAVar 16:setchoicevalue=AntiAlias 16x
:state=0:makesvar=TQVar 0 dividetexturesize,readsetupline=TQVar dividetexturesize
:state=0,svarequal=TQVar 0:setchoicevalue=TexQuality High
:state=0,svarequal=TQVar 2:setchoicevalue=TexQuality Medium
:state=0,svarequal=TQVar 4:setchoicevalue=TexQuality Low
:state=0:makesw=CurTime 1,dimvar=CVar,setvar=CVar 1,dimvar=SVar,setvar=SVar 1,hideall,state=3
;Фон
:state=3:backdrop=languagebank\english\gamecore\backdrops\basic\background.jpg
;Главное меню
:state=3,varequal=SVar 1:hudshow=time_hour,hudshow=time_min
:state=3,varequal=SVar 1,loadgamevisible=0:showhud=NewGame,showhud=Continue,showhud=ExitGame,showhud=GameMenu,showhud=Options,showhud=Training
:state=3,varequal=SVar 1,hudmouseup=NewGame 1:hideall,setvar=SVar 3
:state=3,varequal=SVar 1,hudmouseup=Training 1:setvar=level 2,hideall,destroy
:state=3,varequal=SVar 1,hudmouseup=Continue 1:savesetupvars,setvar=level 3,destroy
:state=3,varequal=SVar 1,hudmouseup=Options 1:hideall,setvar=SVar 2
:state=3,varequal=SVar 1,hudmouseup=ExitGame 1:quitgame,destroy
;Настройки
:state=3,varequal=SVar 2:hudunshow=time_min,hudunshow=time_hour
:state=3,varequal=SVar 2:showhud=OptionsTitle,showhud=MainMenu,showhud=FSSTitle,showhud=PEFTitle,showhud=OSSTitle,showhud=SHSTitle,showhud=INMTitle,showhud=RETitle,showhud=AATitle,showhud=TQTitle
:state=3,varequal=SVar 2:showcheckbox=CheckFSS,showcheckbox=CheckOS,showcheckbox=CheckPEF,showcheckbox=CheckSHA,showcheckbox=CheckINM,showchoice=ResChoice,showchoice=AntiAlias,showchoice=TexQuality
:state=3,varequal=SVar 2,hudmouseup=MainMenu 1:state=4
:state=4:hideall,setsvartogui=FSSVar CheckFSS,setsvartogui=OSVar CheckOS,setsvartogui=PEVar CheckPEF,setsvartogui=SHVar CheckSHA,setsvartogui=IMVar CheckINM
:state=4,choicevalueequal=ResChoice 800x600:setsvarvalue=WVar 800,setsvarvalue=HVar 600
:state=4,choicevalueequal=ResChoice 1024x768:setsvarvalue=WVar 1024,setsvarvalue=HVar 768
:state=4,choicevalueequal=ResChoice 1280x768:setsvarvalue=WVar 1280,setsvarvalue=HVar 768
:state=4,choicevalueequal=ResChoice 1440x960:setsvarvalue=WVar 1440,setsvarvalue=HVar 960
:state=4,choicevalueequal=AntiAlias Off:setsvarvalue=AAVar 0
:state=4,choicevalueequal=AntiAlias 2x:setsvarvalue=AAVar 2
:state=4,choicevalueequal=AntiAlias 4x:setsvarvalue=AAVar 4
:state=4,choicevalueequal=AntiAlias 8x:setsvarvalue=AAVar 8
:state=4,choicevalueequal=AntiAlias 16x:setsvarvalue=AAVar 16
:state=4,choicevalueequal=TexQuality Low:setsvarvalue=TQVar 4
:state=4,choicevalueequal=TexQuality Medium:setsvarvalue=TQVar 2
:state=4,choicevalueequal=TexQuality High:setsvarvalue=TQVar 0
:state=4:savesvars,reset,setvar=SVar 1,state=3
;Выбор персонажа
:state=3,vargreater=SVar 3,varless=SVar 6:hudunshow=time_min,hudunshow=time_hour,showhud=SelectCharacter,showhud=Back,showhud=Start
;Начало новой игры
:state=3,varequal=SVar 3,varequal=hour 0,varequal=min 0:setvar=SVar 4
:state=3,varequal=SVar 4,hudmouseup=Back 1:setvar=SVar 1,hidehud=SelectCharacter,hidehud=Back,hidehud=Start
:state=3,varequal=SVar 4,hudmouseup=Start 1:state=10
;Поддверждение новой игры
:state=3,varequal=SVar 3,varequal=hour 0,varnotequal=min 0:setvar=SVar 5
:state=3,varequal=SVar 3,varnotequal=hour 0,varequal=min 0:setvar=SVar 5
:state=3,varequal=SVar 3,varnotequal=hour 0,varnotequal=min 0:setvar=SVar 5
:state=3,varequal=SVar 5,hudmouseup=Back 1:setvar=SVar 1,hidehud=SelectCharacter,hidehud=Back,hidehud=Start
:state=3,varequal=SVar 5,hudmouseup=Start 1:setvar=SVar 6
:state=3,varequal=SVar 6:showhud=Confirm,showhud=Yes,showhud=No
:state=3,varequal=SVar 6,hudmouseup=Yes 1:state=10
:state=3,varequal=SVar 6,hudmouseup=No 1:setvar=SVar 3,hidehud=Confirm,hidehud=Yes,hidehud=No
;Старт игры
:state=10:setsvarvalue=TimeHour 0,setsvarvalue=TimeMin 0,setvar=hour 0,setvar=min 0,setvar=SVar 1,savesvars,setvar=level 3,hideall,destroy
:always,swgreater=CurTime 100,varequal=CVar 1:setcursor=Cursor2,startsw=curTime 1,setvar=CVar 2
:always,swgreater=CurTime 100,varequal=CVar 2:setcursor=Cursor3,startsw=curTime 1,setvar=CVar 3
:always,swgreater=CurTime 100,varequal=CVar 3:setcursor=Cursor2,startsw=curTime 1,setvar=CVar 4
:always,swgreater=CurTime 100,varequal=CVar 4:setcursor=Cursor1,startsw=curTime 1,setvar=CVar 1
setuplevel:
;AIScript from Wizard
;Header
desc = Setup Wizard
; Setup Level Stats
:state=0:resetgui,plrdisable=500
:state=0:sky=skybank\ww2\Gas
:state=0:music=,musicvolume=50,soundscale=25
:state=0:fog=1,fogred=13,foggreen=28,fogblue=24
:state=0:ambience=50,ambiencered=15,ambiencegreen=22,ambienceblue=23
:state=0:hudreset,hudx=85,hudy=8,hudhide=ammo,hudimage=gamecore\huds\ammo.dds,hudtype=3,hudhide=1,hudmake=status
:state=0:hudreset,hudx=88,hudy=12,hudhide=num3,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric5.png,hudtype=3,hudhide=1,hudmake=numeric
;Загрузка нажатых кнопок
:state=0:loadimage=EGO languagebank\english\gamecore\backdrops\basic\exitgameover.dds
:state=0:loadimage=RGO languagebank\english\gamecore\backdrops\basic\returntogameover.dds
;Загрузка ненажатых кнопок
:state=0:loadimage=MG languagebank\english\gamecore\backdrops\basic\gamemenu.dds,makehud=GameMenu MG MG 50 10,hidehud=GameMenu
:state=0:loadimage=RG languagebank\english\gamecore\backdrops\basic\returntogame.dds,makehud=ReturnGame RG RGO 50 70,hidehud=ReturnGame
:state=0:loadimage=EG languagebank\english\gamecore\backdrops\basic\exitgame.dds,makehud=ExitGame EG EGO 50 80,hidehud=ExitGame
;Загрузка курсора
:state=0:loadimage=Cursor1 languagebank\english\gamecore\backdrops\basic\cursor1.dds
:state=0:loadimage=Cursor2 languagebank\english\gamecore\backdrops\basic\cursor2.dds
:state=0:loadimage=Cursor3 languagebank\english\gamecore\backdrops\basic\cursor3.dds,setcursor=Cursor1,hidecursor
;Загрузка экрана крови и т.д.
:state=0:hudreset,hudx=50,hudy=50,hudname=black,hudsizex=2000,hudsizey=2000,hudimage=gamecore\huds\fader.dds,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\fader.dds,hudhide=1,hudtype=3,hudmake=internal
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\eyehud.dds,hudhide=1,hudtype=2,hudmake=internal
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=128,hudblue=128,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\zoom.dds,hudhide=1,hudtype=4,hudmake=internal
;Загрузка худов часов
:state=0,levelnotequal=1,levelnotequal=2:hudreset,hudx=95.25,hudy=97,hudsizex=90,hudsizey=30,hudimage=languagebank\english\gamecore\huds\clock.dds,hudname=clock,hudmake=display
:state=0,levelnotequal=1,levelnotequal=2:hudreset,hudx=95.25,hudy=97,hudsizex=12,hudsizey=12,hudimage=gamecore\huds\dots.dds,hudname=dots,hudmake=display
:state=0,levelnotequal=1,levelnotequal=2:hudreset,hudx=97,hudy=97,hudsizex=12,hudsizey=12,hudimage=gamecore\huds\numeric4.png,hudname=time_min,hudtype=6,huduservar=min,hudmake=numeric
:state=0,levelnotequal=1,levelnotequal=2:hudreset,hudx=93.5,hudy=97,hudsizex=12,hudsizey=12,hudimage=gamecore\huds\numeric4.png,hudname=time_hour,hudtype=6,huduservar=hour,hudmake=numeric
;Старт игры
:state=0:state=1
;Главное меню
:state=1,escapekeypressed=1:pausegame,state=2
:state=2,escapekeypressed=0:showhud=GameMenu,showhud=LoadGame,showhud=Options,showhud=ReturnGame,showhud=ExitGame,showcursor,state=3
:state=3,varequal=SVar 1,loadgamevisible=0:showhud=LoadGame,showhud=ExitGame,showhud=GameMenu,showhud=Options,showhud=ReturnGame
:state=3,varequal=SVar 1,hudmouseup=ReturnGame 1:state=6
:state=3,varequal=SVar 1,hudmouseup=ExitGame 1:continuegame,destroy
:state=3,varequal=SVar 1,escapekeypressed=1:state=5
:state=5,varequal=SVar 1,escapekeypressed=0:state=6
:state=6:hidehud=GameMenu,hidehud=LoadGame,hidehud=Options,hidehud=ReturnGame,hidehud=ExitGame,hidecursor,resumegame,state=1
loading page:
;AIScript from Wizard
;Header
desc = Loading Page Wizard
;Script
:state=0:resetgui,hidecursor
:state=0:music=
:state=0:backdrop=gamecore\huds\fader.dds
:state=0:loadimage=Loading languagebank\english\gamecore\backdrops\basic\loading.dds,makehud=Loading Loading Loading 50 50
:state=0:hudreset,hudx=50,hudy=95,hudimage=gamecore\huds\loadingbarbox.tga,hudmake=display
:state=0:hudreset,hudx=50,hudy=95,hudimage=gamecore\huds\loadingbar.tga,hudhide=1,hudtype=1,hudmake=internal
:state=0:state=1