Browse Source

[added] item to grocery, purse.

oldentree 5 năm trước cách đây
mục cha
commit
7af6d80547
1 tập tin đã thay đổi với 27 bổ sung0 xóa
  1. 27 0
      locations/mod_bestmod.qsrc

+ 27 - 0
locations/mod_bestmod.qsrc

@@ -48,6 +48,33 @@ if $loc = 'postdeliveries' and $ARGS[0] = '10':
 	end
 end
 
+!!$mod_beast_var['StatText'] = $stattxt
+!!! this finds the begining of the arousal bar (could be any regex, though)
+!!mod_beast_var['StartPosition'] = strpos($mod_beast_var['StatText'],'<font face="courier new" size = 3>')
+!!
+!!! break stat win text into 2 part, before and after the token you found.
+!!$mod_beast_var['FrontStr'] = mid($mod_beast_var['StatText'],1,mod_beast_var['StartPosition']-1)
+!!$mod_beast_var['EndStr'] = mid($mod_beast_var['StatText'],mod_beast_var['StartPosition'],len($mod_beast_var['StatText']))
+!!
+!!! clear the text in the window
+!!clr
+!!
+!!! build the new window text with your addition
+!!$mod_beast_var['NewWindowText'] = $mod_beast_var['FrontStr'] + "Your New Text" + $mod_beast_var['EndStr']
+!!
+!!! write new out to the window
+!!p $mod_beast_var['NewWindowText']
+
+if $shoplocation = 'grocery':
+	*pl '<center><table align="center" width=80%>'
+	*p func ('$stock_item', 5, 'Dog treat', 100, 'bm_dog_treat', $curloc, '', iif(bag > 0, 0, 1), 'You need a handbag')
+	*p '</table></center>'
+end
+
+if $curloc = 'din_bad' and $ARGS[0] = 'd_bag':
+	if bm_dog_treat > 0: 'You have <b><<bm_dog_treat>></b> dog treat'+iif(bm_dog_treat > 1, 's ', ' ')+'left in your purse.'
+end
+
 !! Some of the variables used in this mod:
 !! bm_beast[''exp'']			Beastiality experience. Incremented each act.
 !! bm_beast[''num'']			Count of animal partners. Incremented once per individual.