Преглед изворни кода

Merge remote-tracking branch 'Felix/master'

Kevin_Smarts пре 7 месеци
родитељ
комит
28c4afd3fc
4 измењених фајлова са 84 додато и 78 уклоњено
  1. 16 51
      locations/Cheatmenu_din.qsrc
  2. 3 2
      locations/mirror.qsrc
  3. 46 3
      locations/shortgs.qsrc
  4. 19 22
      locations/stat_display.qsrc

+ 16 - 51
locations/Cheatmenu_din.qsrc

@@ -777,13 +777,13 @@ $cheatmenu['rename'] = {
 }
 
 $cheatmenu['setLooks'] = {
-	dynamic $cheatmenu['setStatValue'], '<<$ARGS[0]>>', ARGS[1]
+	gs 'shortgs', 'setStat', $ARGS[0], ARGS[1]
 	dynamic $cheatmenu['looks']
 }
 
 $cheatmenu['setLooksInput'] = {
 	temp_input = input("Set your <<$ARGS[1]>> level:")
-	dynamic $cheatmenu['setStatValue'], '<<$ARGS[0]>>', temp_input
+	gs 'shortgs', 'setStat', $ARGS[0], temp_input
 	dynamic $cheatmenu['looks']
 }
 
@@ -1143,59 +1143,20 @@ $cheatmenu['tatoo'] = {
 	if cosmetic_tattoo >= 1:'<a href="exec:tattCount-=1 & tathand = 0 & dynamic $cheatmenu[''tatoo'']">Remove your makup tattoo</a>'
 }
 
-$cheatmenu['setStatValue'] = {
-	temp_input = func('shortgs', 'clamp', ARGS[1], 0, 100)
-	if temp_input > 1:
-		temp_xpnxt = (func('_difficulty','getexpadj') * (temp_input - 1) * (temp_input - 1) / 180) + 1
-	end
-	!! magik is based on `orgasm` variable thus the need to intoruce `_adj`
-	if $ARGS[0] = 'magik':
-		dynamic "<<$ARGS[0]>>_lvl = temp_input
-		<<$ARGS[0]>>_adj = temp_xpnxt - orgasm
-		<<$ARGS[0]>>_exp = orgasm + <<$ARGS[0]>>_adj
-		<<$ARGS[0]>>_mem = <<$ARGS[0]>>_exp
-		<<$ARGS[0]>>_lvlst = <<$ARGS[0]>>_lvl
-		<<$ARGS[0]>>_flr = <<$ARGS[0]>>_lvl / 5"
-	!! inhib needs its `_flr` set at `_lvl` and not `_lvl / 5`
-	elseif $ARGS[0] = 'inhib':
-		dynamic "<<$ARGS[0]>>_lvl = temp_input
-		<<$ARGS[0]>>_exp = temp_xpnxt
-		<<$ARGS[0]>>_mem = temp_xpnxt
-		<<$ARGS[0]>>_lvlst = <<$ARGS[0]>>_lvl
-		<<$ARGS[0]>>_flr = <<$ARGS[0]>>_lvl"
-	!! `stren` and `stren_plus` cheats should also update strenbuf
-	elseif $ARGS[0] = 'stren' or $ARGS[0] = 'stren_plus':
-		dynamic "<<$ARGS[0]>>_lvl = temp_input
-		<<$ARGS[0]>>_exp = temp_xpnxt
-		<<$ARGS[0]>>_mem = temp_xpnxt
-		<<$ARGS[0]>>_lvlst = <<$ARGS[0]>>_lvl
-		<<$ARGS[0]>>_flr = <<$ARGS[0]>>_lvl"
-		strenbuf = stren_lvl + stren_plus_lvl
-		gs 'body', 'UpdateBodyImage'
-	else
-		dynamic "<<$ARGS[0]>>_lvl = temp_input
-		<<$ARGS[0]>>_exp = temp_xpnxt
-		<<$ARGS[0]>>_mem = temp_xpnxt
-		<<$ARGS[0]>>_lvlst = <<$ARGS[0]>>_lvl
-		<<$ARGS[0]>>_flr = <<$ARGS[0]>>_lvl / 5"
-	end
-	killvar 'temp_input' & killvar 'temp_xpnxt'
-}
-
 $cheatmenu['setStat'] = {
-	dynamic $cheatmenu['setStatValue'], '<<$ARGS[0]>>', ARGS[1]
+	gs 'shortgs', 'setStat', $ARGS[0], ARGS[1]
 	dynamic $cheatmenu['stats']
 }
 
 $cheatmenu['setStatInput'] = {
 	temp_input = input("Set your <<$ARGS[1]>> level:")
-	dynamic $cheatmenu['setStatValue'], '<<$ARGS[0]>>', temp_input
+	gs 'shortgs', 'setStat', $ARGS[0], temp_input
 	dynamic $cheatmenu['stats']
 }
 
 $cheatmenu['setStatInputInverted'] = {
 	temp_input = input("Set your <<$ARGS[1]>> level:")
-	dynamic $cheatmenu['setStatValue'], '<<$ARGS[0]>>', (100 - temp_input)
+	gs 'shortgs', 'setStat', $ARGS[0], (100 - temp_input)
 	dynamic $cheatmenu['stats']
 }
 
@@ -1204,7 +1165,7 @@ $cheatmenu['setAttrs'] = {
 	!! skip stren_plus and butt_tr
 	loop_index_max = arrsize('$att_name') - 2
 	:set_attrs_loop
-		dynamic $cheatmenu['setStatValue'], '<<$att_name[loop_index]>>', ARGS[0]
+		gs 'shortgs', 'setStat', $att_name[loop_index], ARGS[0]
 		loop_index += 1
 		if loop_index < loop_index_max: jump 'set_attrs_loop'
 	killvar 'loop_index' & killvar 'loop_index_max'
@@ -1217,7 +1178,7 @@ $cheatmenu['setSkills'] = {
 	:set_skills_loop
 		!! Inhibition (number 33) isn''t a skill so we''ll skip it
 		if loop_index = 33: loop_index += 1 & jump 'set_skills_loop'
-		dynamic $cheatmenu['setStatValue'], '$skl_name[loop_index]>>', ARGS[0]
+		gs 'shortgs', 'setStat', $skl_name[loop_index], ARGS[0]
 		loop_index += 1
 		if loop_index < loop_index_max: jump 'set_skills_loop'
 	killvar 'loop_index' & killvar 'loop_index_max'
@@ -2112,11 +2073,15 @@ $cheatmenu['setting'] = {
 	'<B>Difficulty Setting</B>'
 	'At the moment it only improves rate of skill gain'
 
-	'Difficulty: Currently at <<func(''_difficulty'',''getdifficulty'')>>'
-	'<ul><li>set to <a href="exec:FUNC(''_difficulty'',''setdifficulty'',''easy peasy'') & dynamic $cheatmenu[''setting'']">easy peasy</a></li>'
-	'<li>set to <a href="exec:FUNC(''_difficulty'',''setdifficulty'',''relaxed'') & dynamic $cheatmenu[''setting'']">relaxed</a></li>'
-	'<li>set to <a href="exec:FUNC(''_difficulty'',''setdifficulty'',''realistic'') & dynamic $cheatmenu[''setting'']">realistic</a></li>'
-	'<li>set to <a href="exec:FUNC(''_difficulty'',''setdifficulty'',''hardcore'') & dynamic $cheatmenu[''setting'']">hardcore</a></li></ul>'
+	$temp_diff = func('_difficulty', 'getdifficulty')
+	'Difficulty: Currently at <<$temp_diff>>'
+	'<ul>'
+	'<li>set to ' + iif($temp_diff = 'easy peasy', 'easy peasy', '<a href="exec:FUNC(''_difficulty'',''setdifficulty'',''easy peasy'') & dynamic $cheatmenu[''setting'']">easy peasy</a>') + '</li>'
+	'<li>set to ' + iif($temp_diff = 'relaxed', 'relaxed', '<a href="exec:FUNC(''_difficulty'',''setdifficulty'',''relaxed'') & dynamic $cheatmenu[''setting'']">relaxed</a>') + '</li>'
+	'<li>set to ' + iif($temp_diff = 'realistic', 'realistic', '<a href="exec:FUNC(''_difficulty'',''setdifficulty'',''realistic'') & dynamic $cheatmenu[''setting'']">realistic</a>') + '</li>'
+	'<li>set to ' + iif($temp_diff = 'hardcore', 'hardcore', '<a href="exec:FUNC(''_difficulty'',''setdifficulty'',''hardcore'') & dynamic $cheatmenu[''setting'']">hardcore</a>') + '</li>'
+	'</ul>'
+	killvar '$temp_diff'
 	'</tr></table></b></center>'
 }
 

+ 3 - 2
locations/mirror.qsrc

@@ -485,6 +485,7 @@ if $ARGS[0] = 'routine_description':
 	*nl 'Make-up routine <<ARGS[1]>> is called <font color="#268bd2"><<$makeup[''routine_<<ARGS[1]>>_name'']>></font> and consists of:'
 	*nl
 	if makeup['routine_<<ARGS[1]>>_makeup'] > 0:
+		killvar '$temp_prefix' & killvar '$temp_postfix'
 		if $ARGS[2] = '' and pcs_makeup < makeup['routine_<<ARGS[1]>>_makeup'] + 1:
 			if mc_inventory['cosmetics'] >= min(makeup['routine_<<ARGS[1]>>_makeup'], 3):
 				$temp_prefix = '<font color="#E5C07B">'
@@ -505,8 +506,8 @@ if $ARGS[0] = 'routine_description':
 		end
 	end
 	if makeup['routine_<<ARGS[1]>>_lipbalm'] > 0:
+		killvar '$temp_prefix' & killvar '$temp_postfix'
 		if $ARGS[2] = '' and pcs_lipbalm < makeup['routine_<<ARGS[1]>>_lipbalm']:
-			killvar '$temp_prefix' & killvar '$temp_postfix'
 			if mc_inventory['lipbalm'] > 0:
 				$temp_prefix = '<font color="#E5C07B">'
 				$temp_postfix = ' - Not applied</font>'
@@ -518,8 +519,8 @@ if $ARGS[0] = 'routine_description':
 		' <<$temp_prefix>>Lipbalm<<$temp_postfix>>'
 	end
 	if makeup['routine_<<ARGS[1]>>_lashes'] > 0:
+		killvar '$temp_prefix' & killvar '$temp_postfix'
 		if $ARGS[2] = '' and lashextensionstyle <= 0 and pcs_lashes < makeup['routine_<<ARGS[1]>>_lashes'] + 2:
-			killvar '$temp_prefix' & killvar '$temp_postfix'
 			if (makeup['routine_<<ARGS[1]>>_lashes'] = 1 and mc_inventory['eyelash_fake'] >= 1) or (makeup['routine_<<ARGS[1]>>_lashes'] = 2 and mc_inventory['eyelash_mink'] >= 1):
 				$temp_prefix = '<font color="#E5C07B">'
 				$temp_postfix = ' - Not applied</font>'

+ 46 - 3
locations/shortgs.qsrc

@@ -895,7 +895,7 @@ end
 !! example: func('shortgs' 'roll', 'unlucky' 0, 100, 5)
 if $ARGS[0] = 'roll':
 	temp_roll = rand(ARGS[2], ARGS[3])
-	i = 1
+	shortgs_i = 1
 	:roll
 		temp_rand = rand(ARGS[2], ARGS[3])
 		if $ARGS[1] = 'lucky' and temp_rand > temp_roll:
@@ -903,8 +903,8 @@ if $ARGS[0] = 'roll':
 		elseif $ARGS[1] = 'unlucky' and temp_rand < temp_roll:
 			temp_roll = temp_rand
 		end
-		i += 1
-	if i < ARGS[4]: jump 'roll'
+		shortgs_i += 1
+	if shortgs_i < ARGS[4]: jump 'roll'
 	result = temp_roll
 	killvar 'temp_roll'
 	killvar 'temp_rand'
@@ -919,6 +919,49 @@ if $ARGS[0] = 'clamp':
 	result = min(max(ARGS[1], ARGS[2]), ARGS[3])
 end
 
+!! sets a stat or attribute level to a number
+!! use: gs 'shortgs', 'setStat', 'stat', number
+!! example:  gs 'shortgs', 'setStat', 'stren', 70
+!! example:  gs 'shortgs', 'setStat', 'inhib', 10
+if $ARGS[0] = 'setStat':
+	temp_input = func('shortgs', 'clamp', ARGS[2], 0, 100)
+	if temp_input > 1:
+		temp_xpnxt = (func('_difficulty','getexpadj') * (temp_input - 1) * (temp_input - 1) / 180) + 1
+	end
+	!! magik is based on `orgasm` variable thus the need for `_adj`
+	if $ARGS[1] = 'magik':
+		dynamic "<<$ARGS[1]>>_lvl = temp_input
+		<<$ARGS[1]>>_adj = temp_xpnxt - orgasm
+		<<$ARGS[1]>>_exp = orgasm + <<$ARGS[1]>>_adj
+		<<$ARGS[1]>>_mem = <<$ARGS[1]>>_exp
+		<<$ARGS[1]>>_lvlst = <<$ARGS[1]>>_lvl
+		<<$ARGS[1]>>_flr = <<$ARGS[1]>>_lvl / 5"
+	!! inhib needs its `_flr` set at `_lvl` and not `_lvl / 5`
+	elseif $ARGS[1] = 'inhib':
+		dynamic "<<$ARGS[1]>>_lvl = temp_input
+		<<$ARGS[1]>>_exp = temp_xpnxt
+		<<$ARGS[1]>>_mem = temp_xpnxt
+		<<$ARGS[1]>>_lvlst = <<$ARGS[1]>>_lvl
+		<<$ARGS[1]>>_flr = <<$ARGS[1]>>_lvl"
+	!! `stren` and `stren_plus` changes should also update strenbuf
+	elseif $ARGS[1] = 'stren' or $ARGS[1] = 'stren_plus':
+		dynamic "<<$ARGS[1]>>_lvl = temp_input
+		<<$ARGS[1]>>_exp = temp_xpnxt
+		<<$ARGS[1]>>_mem = temp_xpnxt
+		<<$ARGS[1]>>_lvlst = <<$ARGS[1]>>_lvl
+		<<$ARGS[1]>>_flr = <<$ARGS[1]>>_lvl"
+		strenbuf = stren_lvl + stren_plus_lvl
+		gs 'body', 'UpdateBodyImage'
+	else
+		dynamic "<<$ARGS[1]>>_lvl = temp_input
+		<<$ARGS[1]>>_exp = temp_xpnxt
+		<<$ARGS[1]>>_mem = temp_xpnxt
+		<<$ARGS[1]>>_lvlst = <<$ARGS[1]>>_lvl
+		<<$ARGS[1]>>_flr = <<$ARGS[1]>>_lvl / 5"
+	end
+	killvar 'temp_input' & killvar 'temp_xpnxt'
+end
+
 !! Recursively computes a simple exponent - https://en.wikipedia.org/wiki/Exponentiation_by_squaring
 !! use: func('shortgs', 's_pow', var, exp)
 !! returns var ^ exp

+ 19 - 22
locations/stat_display.qsrc

@@ -18,7 +18,7 @@ if Enable_showstatimg = 1:
 	else
 		$stat_imgtool_msg += '<a href="exec:Enable_statimg_face = 0 & gs ''$menu_obnovit''">◆Face</a>'
 		$img_temp = FUNC('$face_image')
-		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
+		if $img_temp ! '':  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
 	end
 
 	if Enable_statimg_body = 0:
@@ -26,7 +26,7 @@ if Enable_showstatimg = 1:
 	else
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_body = 0 & gs ''$menu_obnovit''">◆Body</a>'
 		$img_temp = FUNC('$body_image','body')
-		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
+		if $img_temp ! '':  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
 	end
 
 	if Enable_statimg_coat = 0:
@@ -34,7 +34,7 @@ if Enable_showstatimg = 1:
 	else
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_coat = 0 & gs ''$menu_obnovit''">◆Coat</a>'
 		$img_temp = FUNC('$body_image','coat')
-		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
+		if $img_temp ! '':  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
 	end
 
 	if Enable_statimg_cloth = 0:
@@ -42,7 +42,7 @@ if Enable_showstatimg = 1:
 	else
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_cloth = 0 & gs ''$menu_obnovit''">◆Clothes</a>'
 		$img_temp = FUNC('$body_image','clothes')
-		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
+		if $img_temp ! '':  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
 	end
 
 	if Enable_statimg_bra = 0:
@@ -50,7 +50,7 @@ if Enable_showstatimg = 1:
 	else
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_bra = 0 & gs ''$menu_obnovit''">◆Bra</a>'
 		$img_temp = FUNC('$body_image','bra')
-		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
+		if $img_temp ! '':  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
 	end
 
 	if Enable_statimg_panties = 0:
@@ -58,15 +58,12 @@ if Enable_showstatimg = 1:
 	else
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_panties = 0 & gs ''$menu_obnovit''">◆Panties</a>'
 		$img_temp = FUNC('$body_image','panties')
-		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
+		if $img_temp ! '':  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
 	end
 
-	if Enable_statimg_bodysuit = 0:
-		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_bodysuit = 1 & gs ''$menu_obnovit''">◇Bodysuit</a>'
-	else
-		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_bodysuit = 0 & gs ''$menu_obnovit''">◆Bodysuit</a>'
+	if bodysuitwornnumber > 0 and (Enable_statimg_bra = 1 or Enable_statimg_panties = 1):
 		$img_temp = FUNC('$body_image','bodysuit')
-		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
+		if $img_temp ! '':  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
 	end
 	
 	if Enable_statimg_shoes = 0:
@@ -74,7 +71,7 @@ if Enable_showstatimg = 1:
 	else
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_shoes = 0 & gs ''$menu_obnovit''">◆Shoes</a>'
 		$img_temp = FUNC('$body_image','shoes')
-		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
+		if $img_temp ! '':  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
 	end
 	if $menu_loc ! '': $stat_imgtool_msg += ' <a href="exec:gs ''Cheatmenu_din'' & dynamic $cheatmenu[''setting'']">◎Settings</a>'
 end
@@ -1539,7 +1536,7 @@ if Enable_showattr = 0:
 else
 	$stat_tool_msg += '<a href="exec:Enable_showattr = 0 & gs ''$menu_obnovit''">▲Attributes</a>'
 	!skip if this is first message
-	if $stat_extra_msg ! null: $stat_extra_msg += '<br><a href="exec:Enable_showattr = 0 & gs ''$menu_obnovit''">▲Attributes:</a>'
+	if $stat_extra_msg ! '': $stat_extra_msg += '<br><a href="exec:Enable_showattr = 0 & gs ''$menu_obnovit''">▲Attributes:</a>'
 	if Enable_scalepic = 2:
 		$stat_extra_msg += '<font color="<<$st_temp>>"><TABLE cellpadding="1" cellspacing="0" width="300"><TR><TD width="85%">'+FUNC('indiktab', '1', 100 - pcs_inhib, 100 - pcs_inhib)+'</TD><TD> Inhibition</TD></TR><TR><TD width="85%">'+FUNC('indiktab', '1', pcs_stren, pcs_stren)+'</TD><TD> Strength</TD></TR><TR><TD width="85%">'+FUNC('indiktab', '1', pcs_agil, pcs_agil)+'</TD><TD> Agility</TD></TR><TR><TD width="85%">'+FUNC('indiktab', '1', pcs_vital, pcs_vital)+'</TD><TD> Endurance</TD></TR><TR><TD width="85%">'+FUNC('indiktab', '1', pcs_intel, pcs_intel)+'</TD><TD> Intelligence</TD></TR><TR><TD width="85%">'+FUNC('indiktab', '1', pcs_sprt, pcs_sprt)+'</TD><TD> Spirit</TD></TR><TR><TD width="85%">'+FUNC('indiktab', '1', pcs_react, pcs_react)+'</TD><TD nowrap> Reaction</TD></TR><TR><TD width="85%">'+FUNC('indiktab', '1', pcs_chrsm, pcs_chrsm)+'</TD><TD> Charisma</TD></TR><TR><TD width="85%">'+FUNC('indiktab', '1', pcs_prcptn, pcs_prcptn)+'</TD><TD> Perception</TD></TR>'
 		if $start_type[1] ! 'nomagic': $stat_extra_msg += '<TR><TD width="85%">'+FUNC('indiktab', '1', pcs_magik, pcs_magik)+'</TD><TD> Magic</TD></TR>'
@@ -1665,7 +1662,7 @@ else
 		if workPTU > 1: gs 'show_table','<<teachlevel>> Teacher credibility','2'
 	end
 	!skip if this is first message
-	if $stat_extra_msg ! null:
+	if $stat_extra_msg ! '':
 		$stat_extra_msg += '<br><a href="exec:Enable_showskill = 0 & gs ''$menu_obnovit''">▲Skills:</a> <<$stat_sktool_msg>>'
 	else
 		$stat_extra_msg += '<br><<$stat_sktool_msg>>'
@@ -1715,7 +1712,7 @@ else
 	end
 	if st_count > 0 :
 		!skip if this is first message
-		if $stat_extra_msg ! null: $stat_extra_msg += '<BR><a href="exec:Enable_showrelation = 0 & gs ''$menu_obnovit''">▲Relations:</a>'
+		if $stat_extra_msg ! '': $stat_extra_msg += '<BR><a href="exec:Enable_showrelation = 0 & gs ''$menu_obnovit''">▲Relations:</a>'
 		$stat_extra_msg += '<BR><TABLE BORDER=1> <<$show_table>></TR></TABLE>'
 	end
 end
@@ -1727,7 +1724,7 @@ if Enable_statimg_loc = 0:
 	else
 		$stat_tool_msg += ' <a href="exec:Enable_showstatimg = 0 & gs ''$menu_obnovit''">▲Image</a>'
 		!skip if this is first message
-		if $stat_extra_msg ! null:
+		if $stat_extra_msg ! '':
 			$stat_extra_msg += '<br><a href="exec:Enable_showstatimg = 0 & gs ''$menu_obnovit''">▲Image:</a> <<$stat_imgtool_msg>>'
 		else
 			$stat_extra_msg += '<br><<$stat_imgtool_msg>>'
@@ -1745,7 +1742,7 @@ end
 !all end, push back and clean up
 $stat_msg += '<br>'
 $stat_msg += func('cleanHTML',$stat_tool_msg)
-if $stat_extra_msg ! NULL : $stat_msg += func('cleanHTML',$stat_extra_msg)
+if $stat_extra_msg ! '' : $stat_msg += func('cleanHTML',$stat_extra_msg)
 $stat_msg += '<br>'
 killvar 'stat_tool_msg'
 killvar 'stat_extra_msg'
@@ -1809,9 +1806,9 @@ if enable_extra_msg = 1:
 		$stat_msg += '</font>'
 	end
 
-	if $cycreport_txt ! null and menu_off = 0 and cheatSlut = 0:
+	if $cycreport_txt ! '' and menu_off = 0 and cheatSlut = 0:
 		$stat_msg += '<BR><a href="exec:dynamic $d_cycreport_choice"><<$cycreport_txt>></a><br>'
-	elseif $cycreport_txt ! null and menu_off = 1 and cheatSlut = 0:
+	elseif $cycreport_txt ! '' and menu_off = 1 and cheatSlut = 0:
 		$stat_msg += '<BR><a href="exec:gs ''obj_din'', ''menu_disabled''"><<$cycreport_txt>></a><br>'
 	end
 
@@ -2388,9 +2385,9 @@ proverka4 = 0
 proverka5 = 0
 
 if disable_LoadSave = 0:
-	$stat_msg += '<br><br><a href="exec:savegame ''quicksave.sav'' && pl''Quicksave Done''"><img src="images/system/icons/stat_qsave.png"></a>  <a href="exec:savegame"><img src="images/system/icons/stat_save.png"></a>  <a href="exec:opengame"><img src="images/system/icons/stat_load.png"></a>  <a href="exec:if input(''Input Anything to confirm Quick Load'') ! null: opengame ''quicksave.sav''"><img src="images/system/icons/stat_qload.png"></a>'
+	$stat_msg += '<br><br><a href="exec:savegame ''quicksave.sav'' && pl''Quicksave Done''"><img src="images/system/icons/stat_qsave.png"></a>  <a href="exec:savegame"><img src="images/system/icons/stat_save.png"></a>  <a href="exec:opengame"><img src="images/system/icons/stat_load.png"></a>  <a href="exec:if input(''Input Anything to confirm Quick Load'') ! '''': opengame ''quicksave.sav''"><img src="images/system/icons/stat_qload.png"></a>'
 elseif disable_LoadSave = 2:
-	$stat_msg += '<br><br><a href="exec:savegame ''quicksave.sav'' && pl''Quicksave Done''">Quick Save</a>  <a href="exec:savegame">Save</a>  <a href="exec:opengame">Load</a>  <a href="exec:if input(''Input Anything to confirm Quick Load'') ! null: opengame ''quicksave.sav''">Quick Load</a>'
+	$stat_msg += '<br><br><a href="exec:savegame ''quicksave.sav'' && pl''Quicksave Done''">Quick Save</a>  <a href="exec:savegame">Save</a>  <a href="exec:opengame">Load</a>  <a href="exec:if input(''Input Anything to confirm Quick Load'') ! '''': opengame ''quicksave.sav''">Quick Load</a>'
 end
 
 if PillToggle = 1 and mc_inventory['contraceptive_pill'] > 0:
@@ -2409,7 +2406,7 @@ elseif CondomToggle = 0 and Sprezik > 0:
 	Sprezik = 0
 end
 
-$stat_android +=  ' <a href="exec:savegame ''quicksave.sav'' && pl''Quicksave Done''">Q.S</a>  <a href="exec:if input(''Input Anything to confirm Quick Load'') ! null: opengame ''quicksave.sav''">Q.L</a>'
+$stat_android +=  ' <a href="exec:savegame ''quicksave.sav'' && pl''Quicksave Done''">Q.S</a>  <a href="exec:if input(''Input Anything to confirm Quick Load'') ! '''': opengame ''quicksave.sav''">Q.L</a>'
 
 if Enable_statimg_loc = 2: $stat_msg += '<br><<$stat_imgtool_msg>><br><<$stat_imgextra_msg>>'