|
@@ -10,7 +10,7 @@ if $ARGS[0] = 'shop':
|
|
|
|
|
|
if (clothingfilter['quality'] = 0 and CloQuality = shop_display['clo_i']) or (clothingfilter['inhibition'] = 0 and CloInhibit = shop_display['clo_i']) or clothingfilter['number'] = 0:
|
|
|
if clothingfilter['inc'] = 1 and clothingfilter['only'] = 1:
|
|
|
- $result = '<a href="exec: gt ''clothing'', ''view_clothing_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
+ $result = '<a href="exec: gt ''clothing'', ''view_clothing_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>, <<shop_display[''price_modifier'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
end
|
|
|
end
|
|
|
end
|
|
@@ -22,7 +22,7 @@ if $ARGS[0] = 'shop':
|
|
|
|
|
|
if (Shofilter['quality'] = 0 and ShoQuality = shop_display['clo_i']) or Shofilter['number'] = 0:
|
|
|
if Shofilter['inc'] = 1 and Shofilter['only'] = 1:
|
|
|
- $result = '<a href="exec: gt ''shoes'', ''view_shoe_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
+ $result = '<a href="exec: gt ''shoes'', ''view_shoe_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>, <<shop_display[''price_modifier'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
end
|
|
|
end
|
|
|
end
|
|
@@ -32,7 +32,7 @@ if $ARGS[0] = 'shop':
|
|
|
gs 'underwear_attributes', $shop_display['variable'], shop_display['i']
|
|
|
|
|
|
if (clothingfilter['quality'] = 0 and BraQuality = shop_display['clo_i']) or clothingfilter['number'] = 0:
|
|
|
- $result = '<a href="exec: gt ''bras'', ''view_bra_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
+ $result = '<a href="exec: gt ''bras'', ''view_bra_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>, <<shop_display[''price_modifier'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
end
|
|
|
end
|
|
|
|
|
@@ -41,7 +41,7 @@ if $ARGS[0] = 'shop':
|
|
|
gs 'underwear_attributes', $shop_display['variable'], shop_display['i']
|
|
|
|
|
|
if (clothingfilter['quality'] = 0 and PanQuality = shop_display['clo_i']) or clothingfilter['number'] = 0:
|
|
|
- $result = '<a href="exec: gt ''panties'', ''view_panty_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
+ $result = '<a href="exec: gt ''panties'', ''view_panty_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>, <<shop_display[''price_modifier'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
end
|
|
|
end
|
|
|
|
|
@@ -50,22 +50,22 @@ if $ARGS[0] = 'shop':
|
|
|
gs 'underwear_attributes', $shop_display['variable'], shop_display['i']
|
|
|
|
|
|
if (clothingfilter['quality'] = 0 and BraQuality = shop_display['clo_i']) or clothingfilter['number'] = 0:
|
|
|
- $result = '<a href="exec: gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
+ $result = '<a href="exec: gt ''underwear_bodysuits'', ''view_bodysuit_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>, <<shop_display[''price_modifier'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
end
|
|
|
end
|
|
|
|
|
|
elseif $ARGS[1] = 'coats':
|
|
|
if dyneval('result = <<$shop_display[''variable'']>>_coats[shop_display[''i'']]') = 0:
|
|
|
- $result = '<a href="exec: gt ''coats'', ''view_coat_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
+ $result = '<a href="exec: gt ''coats'', ''view_coat_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>, <<shop_display[''price_modifier'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
end
|
|
|
|
|
|
elseif $ARGS[1] = 'purses':
|
|
|
if dyneval('result = <<$shop_display[''variable'']>>_purses[shop_display[''i'']]') = 0:
|
|
|
- $result = '<a href="exec: gt ''purses'', ''view_purse_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
+ $result = '<a href="exec: gt ''purses'', ''view_purse_item'', ''shop'', ''<<$shop_display[''variable'']>>'', <<shop_display[''i'']>>, <<shop_display[''price_modifier'']>>"><img height="250" src="<<$shop_display[''item_img_path'']>>/<<shop_display[''i'']>>.jpg"></a>'
|
|
|
end
|
|
|
|
|
|
elseif $ARGS[1] = 'func_managed':
|
|
|
- $result = '<a href="exec: gt ''<<$shop_display[''main_func_name'']>>'', ''view_item'', ''shop'', ''<<$shop_display[''item_type'']>>'', <<shop_display[''i'']>>"><img height="250" src="<<func($shop_display[''main_func_name''], $shop_display[''img_func_name''], shop_display[''i''])>>"></a>'
|
|
|
+ $result = '<a href="exec: gt ''<<$shop_display[''main_func_name'']>>'', ''view_item'', ''shop'', ''<<$shop_display[''item_type'']>>'', <<shop_display[''i'']>>, <<shop_display[''price_modifier'']>>"><img height="250" src="<<func($shop_display[''main_func_name''], $shop_display[''img_func_name''], shop_display[''i''])>>"></a>'
|
|
|
|
|
|
end
|
|
|
|
|
@@ -103,7 +103,8 @@ end
|
|
|
! [2] - loop step
|
|
|
! [3] - img path
|
|
|
! [4] - link type - shop, wardrode, cheat
|
|
|
-! [5] - loop index start offset
|
|
|
+! [5] - loop index start offset {OPTIONAL, defaults to 0}
|
|
|
+! [6] - price modifier {OPTIONAL, defaults to 0}
|
|
|
! Populate the 'shop_display_exceptions[]' array with the index of the outfits you want excluded from the display.
|
|
|
! gs 'shop_utils', 'display_clothes', 'shop_type', 1, 'path', 'link_type'
|
|
|
if $ARGS[0] = 'display_clothes':
|
|
@@ -117,6 +118,8 @@ if $ARGS[0] = 'display_clothes':
|
|
|
$shop_display['item_img_path'] = 'images/pc/items/' + $ARGS[3]
|
|
|
end
|
|
|
|
|
|
+ shop_display['price_modifier'] = ARGS[6]
|
|
|
+
|
|
|
gs 'clothing_QV', 'shop_filter_header'
|
|
|
gs 'clothing', 'totals', $shop_display['variable']
|
|
|
|
|
@@ -156,6 +159,8 @@ if $ARGS[0] = 'display_shoes':
|
|
|
$shop_display['item_img_path'] = 'images/pc/items/' + $ARGS[3]
|
|
|
end
|
|
|
|
|
|
+ shop_display['price_modifier'] = ARGS[6]
|
|
|
+
|
|
|
gs 'shoes', 'shop_filter_header'
|
|
|
gs 'shoes', 'totals', '<<$shop_display[''variable'']>>_shoes'
|
|
|
|
|
@@ -195,6 +200,8 @@ if $ARGS[0] = 'display_bras':
|
|
|
$shop_display['item_img_path'] = 'images/pc/items/' + $ARGS[3]
|
|
|
end
|
|
|
|
|
|
+ shop_display['price_modifier'] = ARGS[6]
|
|
|
+
|
|
|
gs 'bras', 'shop_filter_header'
|
|
|
gs 'bras', 'totals', '<<$shop_display[''variable'']>>_bras'
|
|
|
|
|
@@ -234,6 +241,8 @@ if $ARGS[0] = 'display_panties':
|
|
|
$shop_display['item_img_path'] = 'images/pc/items/' + $ARGS[3]
|
|
|
end
|
|
|
|
|
|
+ shop_display['price_modifier'] = ARGS[6]
|
|
|
+
|
|
|
gs 'panties', 'shop_filter_header'
|
|
|
gs 'panties', 'totals', '<<$shop_display[''variable'']>>_panties'
|
|
|
|
|
@@ -273,6 +282,8 @@ if $ARGS[0] = 'display_bodysuits':
|
|
|
$shop_display['item_img_path'] = 'images/pc/items/' + $ARGS[3]
|
|
|
end
|
|
|
|
|
|
+ shop_display['price_modifier'] = ARGS[6]
|
|
|
+
|
|
|
gs 'underwear_bodysuits', 'shop_filter_header'
|
|
|
gs 'underwear_bodysuits', 'totals', '<<$shop_display[''variable'']>>_bodysuits'
|
|
|
|
|
@@ -312,6 +323,8 @@ if $ARGS[0] = 'display_coats':
|
|
|
$shop_display['item_img_path'] = 'images/pc/items/' + $ARGS[3]
|
|
|
end
|
|
|
|
|
|
+ shop_display['price_modifier'] = ARGS[6]
|
|
|
+
|
|
|
gs 'coats', 'totals', '<<$shop_display[''variable'']>>_coats'
|
|
|
|
|
|
if total <= 0:
|
|
@@ -344,6 +357,8 @@ if $ARGS[0] = 'display_purses':
|
|
|
$shop_display['item_img_path'] = 'images/pc/items/' + $ARGS[3]
|
|
|
end
|
|
|
|
|
|
+ shop_display['price_modifier'] = ARGS[6]
|
|
|
+
|
|
|
gs 'purses', 'totals', '<<$shop_display[''variable'']>>_purses'
|
|
|
|
|
|
if total <= 0:
|
|
@@ -370,6 +385,7 @@ end
|
|
|
! - 'action_type' (shop, wardrobe, etc)
|
|
|
! - 'type'
|
|
|
! - 'index'
|
|
|
+! - 'price modifier' (0-100, taken as percentage. used for increases/decreases in price)
|
|
|
! - individual functons for each type that return an image of the item based on its index
|
|
|
!
|
|
|
! Arguments for this function are:
|
|
@@ -379,12 +395,15 @@ end
|
|
|
! [4] - image function name
|
|
|
! [5] - link type
|
|
|
! [6] - loop index start offset {OPTIONAL}
|
|
|
+! [7] - price modifier {OPTIONAL}
|
|
|
! Populate the 'shop_display_exceptions[]' array with the index of the outfits you want excluded from the display.
|
|
|
if $ARGS[0] = 'display_func_managed':
|
|
|
$shop_display['main_func_name'] = $ARGS[1]
|
|
|
$shop_display['item_type'] = $ARGS[2]
|
|
|
$shop_display['img_func_name'] = $ARGS[4]
|
|
|
|
|
|
+ shop_display['price_modifier'] = ARGS[7]
|
|
|
+
|
|
|
|
|
|
total = func($shop_display['main_func_name'], 'totals', $ARGS[2])
|
|
|
|