# mod_setting
!'Mod system 1.0 by illume'
gs 'obj_din', 'settingtabs'
cla
if settingmode = 1:
!value= 2, call from Character creation
act '
Return to character creation': killvar 'menu_page' & gt 'begin', 'start'
else
!call from Menu - Game settings
act 'Exit the menu': killvar 'menu_page' & gt 'obj_din', 'menu_exit'
end
*nl 'MODs
'
''
'WARNING: Game slowdown may occur when installing too many mods, or mods with bad structure.'
if mod_list > 0:
'id | Name | Version | Author | Description |
'
mod_i=1
:mod_alllist
if $mod_name[mod_i] ! '':
gs 'mod_<<$mod_name[mod_i]>>_setup'
*p '<> | <<$mod_info[0]>> | '
!name
*p '<>.<<(val($mod_info[1]) mod 10000)/100>> < 0, ''fix <> '', '' '')>> | '
!version
*p '<<$mod_info[2]>> | '
!author
*p ' <<$mod_info[3]>> |
'
!description and readme
else
'ERROR loading mod id <>, no mod name available'
end
if mod_list > mod_i:
mod_i+=1
jump 'mod_alllist'
end
killvar 'mod_info'
'
'
else
'
You have no Mods activated.'
end
''
act ''+iif(settingmode = 1, 'Install new mod','Install new mod')+'':
killvar 'mod_info'
$mod_temp=input('input mod name (as for the example image above, input isample)')
if $mod_temp='':exit
ADDQST 'mod/<<$mod_temp>>.qsp'
gs 'mod_<<$mod_temp>>_setup'
if $mod_info[0] = '':
msg '<<$mod_temp>>.qsp is not a Girl life ECV mod, please contract its author for help'
exit
end
mod_list += 1
$mod_name[mod_list] = $mod_info[0]
$mod_version[mod_list] = $mod_info[1]
$mod_author[mod_list] = $mod_info[2]
$mod_desc[mod_list] = $mod_info[3]
gt curloc
end
act ''+iif(settingmode = 1, 'Disable all mods','Disable all mods')+'':
if input('Are you sure? ALL mod will be disabled!
please input qqq to confirm') = 'qqq':
KILLQST
set mod_list=0
KILLVAR '$mod_name'
KILLVAR '$mod_version'
KILLVAR '$mod_author'
KILLVAR '$mod_desc'
'All mod disabled. You can re-install them later.'
cla
act 'Continue':goto curloc
end
end
--- mod_setting ---------------------------------