|
@@ -170,11 +170,11 @@ if $ARGS[0] = 'd_bag':
|
|
|
end
|
|
|
|
|
|
*nl
|
|
|
- if prezik + prezikcount + preziksabo > 0:
|
|
|
- if preziktype = 2 or preziksabo > 0:
|
|
|
- 'You have <b><<iif(preziktype = 2, prezikcount, prezikcount+prezik)>></b> normal condoms left, and <b><<iif(preziktype = 2, prezik+preziksabo, preziksabo)>></b> sabotaged <a href="exec:dynamic $din_Switch_Condom_Menu">condoms left in your purse.</a>'
|
|
|
- elseif preziktype < 2 and preziksabo = 0:
|
|
|
- 'You have <b><<prezik+prezikcount>></b> <a href="exec:dynamic $din_Switch_Condom_Menu">condoms left in your purse.</a>'
|
|
|
+ if mc_inventory['equipped_condoms'] + mc_inventory['normal_condoms'] + mc_inventory['sabotaged_condoms'] > 0:
|
|
|
+ if preziktype = 2 or mc_inventory['sabotaged_condoms'] > 0:
|
|
|
+ 'You have <b><<iif(preziktype = 2, mc_inventory[''normal_condoms''], mc_inventory[''normal_condoms'']+mc_inventory[''equipped_condoms''])>></b> normal condoms left, and <b><<iif(preziktype = 2, mc_inventory[''equipped_condoms'']+mc_inventory['sabotaged_condoms'], mc_inventory['sabotaged_condoms'])>></b> sabotaged <a href="exec:dynamic $din_Switch_Condom_Menu">condoms left in your purse.</a>'
|
|
|
+ elseif preziktype < 2 and mc_inventory['sabotaged_condoms'] = 0:
|
|
|
+ 'You have <b><<mc_inventory[''normal_condoms'']+mc_inventory[''equipped_condoms'']>></b> <a href="exec:dynamic $din_Switch_Condom_Menu">condoms left in your purse.</a>'
|
|
|
end
|
|
|
else
|
|
|
'You are out of condoms.'
|
|
@@ -196,12 +196,12 @@ if $ARGS[0] = 'd_bag':
|
|
|
*nl
|
|
|
if amphetamine > 0: 'You have <b><<amphetamine>></b> tablets of amphetamine left in your purse. <a href="exec: gs ''drugs'', ''amphetamine'' & gs ''din_bad'', ''d_bag''">Take One</a>'
|
|
|
if joint > 0: 'You have enough weed for <b><<joint>></b> joints.'
|
|
|
- if tabletki > 0 and pillsleft[ptype] > 0:
|
|
|
- 'You have <b><<tabletki>></b> unopened packages of <a href="exec:dynamic $d_tabletkied">birth control pills</a> and <b><<pillsleft[ptype]>></b> pills left in your opened package.'
|
|
|
+ if mc_inventory['contraceptive_pill'] > 0 and pillsleft[ptype] > 0:
|
|
|
+ 'You have <b><<mc_inventory[''contraceptive_pill'']>></b> unopened packages of <a href="exec:dynamic $d_tabletkied">birth control pills</a> and <b><<pillsleft[ptype]>></b> pills left in your opened package.'
|
|
|
elseif tabletki = 0 and pillsleft[ptype] > 0:
|
|
|
'You have <b><<pillsleft[ptype]>></b> <a href="exec:dynamic $d_tabletkied">birth control pills</a> left in your purse.'
|
|
|
- elseif tabletki > 0 and pillsleft[ptype] = 0:
|
|
|
- 'You have <b><<tabletki>></b> unopened packages of <a href="exec:dynamic $d_tabletkied">birth control pills</a> in your purse.'
|
|
|
+ elseif mc_inventory['contraceptive_pill'] > 0 and pillsleft[ptype] = 0:
|
|
|
+ 'You have <b><<mc_inventory[''contraceptive_pill'']>></b> unopened packages of <a href="exec:dynamic $d_tabletkied">birth control pills</a> in your purse.'
|
|
|
else
|
|
|
'You are out of birth control pills.'
|
|
|
end
|
|
@@ -284,7 +284,7 @@ $din_Switch_Condom_Menu = {
|
|
|
'<center><table cellspacing="0" cellpadding="20" valign="top"><tr>'
|
|
|
'<td cellspacing="0" cellpadding="0" valign="top">'
|
|
|
i = 0
|
|
|
- 'You have <<iif(preziktype < 2, prezik+prezikcount, prezikcount)>> normal condoms left and <<iif(preziktype = 2, prezik+preziksabo, preziksabo)>> sabotaged condoms left.'
|
|
|
+ 'You have <<iif(preziktype < 2, prezik+prezikcount, prezikcount)>> normal condoms left and <<iif(preziktype = 2, prezik+mc_inventory['sabotaged_condoms'], mc_inventory['sabotaged_condoms'])>> sabotaged condoms left.'
|
|
|
*nl
|
|
|
if preziktype > 0:
|
|
|
'<a href="exec:dynamic $din_Do_Condom_Counts, 1">Switch to using normal condoms</a>.'
|
|
@@ -295,7 +295,7 @@ $din_Switch_Condom_Menu = {
|
|
|
if preziktype ! 2:
|
|
|
'<a href="exec:dynamic $din_Do_Condom_Counts, 3">Switch to using sabotaged condoms</a>.'
|
|
|
end
|
|
|
- if prezikcount > 0 or preziktype = 0:
|
|
|
+ if mc_inventory['normal_condoms'] > 0 or preziktype = 0:
|
|
|
'<a href="exec:dynamic $din_Do_Condom_Counts, 4">Sabotage a condom</a>.'
|
|
|
end
|
|
|
*nl
|
|
@@ -310,7 +310,7 @@ $din_Table_Condom_Menu = {
|
|
|
'<center><img <<$set_imgh>> src="images/shared/home/bedroom/stol.jpg"></center>'
|
|
|
*nl
|
|
|
i = 1
|
|
|
- 'You have <<iif(preziktype < 2, prezik+prezikcount, prezikcount)>> normal condoms left and <<iif(preziktype = 2, prezik+preziksabo, preziksabo)>> sabotaged condoms left.'
|
|
|
+ 'You have <<iif(preziktype < 2, prezik+prezikcount, prezikcount)>> normal condoms left and <<iif(preziktype = 2, prezik+mc_inventory['sabotaged_condoms'], mc_inventory['sabotaged_condoms'])>> sabotaged condoms left.'
|
|
|
*nl
|
|
|
if preziktype > 0:
|
|
|
'<a href="exec:dynamic $din_Do_Condom_Counts, 1">Switch to using normal condoms</a>.'
|
|
@@ -321,7 +321,7 @@ $din_Table_Condom_Menu = {
|
|
|
if preziktype ! 2:
|
|
|
'<a href="exec:dynamic $din_Do_Condom_Counts, 3">Switch to using sabotaged condoms</a>.'
|
|
|
end
|
|
|
- if prezikcount > 0 or preziktype = 0:
|
|
|
+ if mc_inventory['normal_condoms'] > 0 or preziktype = 0:
|
|
|
'<a href="exec:dynamic $din_Do_Condom_Counts, 4">Sabotage a condom</a>.'
|
|
|
end
|
|
|
*nl
|
|
@@ -331,9 +331,9 @@ $din_Table_Condom_Menu = {
|
|
|
!! Condom System
|
|
|
!! prezik: Total number of condoms sveta is using (normal or damaged).
|
|
|
!! prezikcount: Number of normal condoms sveta isn''t using.
|
|
|
-!! preziksabo: Number of damaged condoms seveta isn''t using.
|
|
|
+!! mc_inventory['sabotaged_condoms']: Number of damaged condoms seveta isn''t using.
|
|
|
!! preziktyp: 0 - Use condoms / 1 - don''t use condoms / 2 - use damaged condoms
|
|
|
-!! to check if sveta wants to use a condom use if prezik > 0:
|
|
|
+!! to check if sveta wants to use a condom use if mc_inventory['equipped_condoms'] > 0:
|
|
|
|
|
|
$din_Do_Condom_Counts = {
|
|
|
*clr & cla
|
|
@@ -343,29 +343,29 @@ $din_Do_Condom_Counts = {
|
|
|
'<td cellspacing="0" cellpadding="0" valign="top">'
|
|
|
if ARGS[0] = 1:
|
|
|
'Use a condom the next time you have sex.'
|
|
|
- if preziktype = 2: preziksabo = prezik
|
|
|
+ if preziktype = 2: mc_inventory['sabotaged_condoms'] = prezik
|
|
|
prezik = prezikcount
|
|
|
prezikcount = 0
|
|
|
preziktype = 0
|
|
|
elseif ARGS[0] = 2:
|
|
|
'You will not use a condom the next time you have sex.'
|
|
|
- if preziktype = 0: prezikcount = prezik
|
|
|
- if preziktype = 2: preziksabo = prezik
|
|
|
+ if preziktype = 0: mc_inventory['normal_condoms'] = prezik
|
|
|
+ if preziktype = 2: mc_inventory['sabotaged_condoms'] = prezik
|
|
|
prezik = 0
|
|
|
preziktype = 1
|
|
|
elseif ARGS[0] = 3:
|
|
|
'Use your sabotaged condom the next time you have sex.'
|
|
|
- if preziktype = 0: prezikcount = prezik
|
|
|
- prezik = preziksabo
|
|
|
- preziksabo = 0
|
|
|
+ if preziktype = 0: mc_inventory['normal_condoms'] = prezik
|
|
|
+ prezik = mc_inventory['sabotaged_condoms']
|
|
|
+ mc_inventory['sabotaged_condoms'] = 0
|
|
|
preziktype = 2
|
|
|
elseif ARGS[0] = 4:
|
|
|
- if preziktype ! 0 and prezikcount > 0:
|
|
|
- preziksabo +=1
|
|
|
+ if preziktype ! 0 and mc_inventory['normal_condoms'] > 0:
|
|
|
+ mc_inventory['sabotaged_condoms'] +=1
|
|
|
prezikcount -=1
|
|
|
'You use a needle to punch holes in one of the condoms.'
|
|
|
- elseif preziktype = 0 and prezik > 0:
|
|
|
- preziksabo +=1
|
|
|
+ elseif preziktype = 0 and mc_inventory['equipped_condoms'] > 0:
|
|
|
+ mc_inventory['sabotaged_condoms'] +=1
|
|
|
prezik -=1
|
|
|
'You use a needle to punch holes in one of the condoms.'
|
|
|
else
|
|
@@ -381,35 +381,35 @@ $din_Do_Condom_Counts = {
|
|
|
}
|
|
|
|
|
|
$din_Update_Condom_Counts = {
|
|
|
- if prezik + prezikcount + preziksabo > 0: prezikmsg = 1
|
|
|
+ if mc_inventory['equipped_condoms'] + mc_inventory['normal_condoms'] + mc_inventory['sabotaged_condoms'] > 0: prezikmsg = 1
|
|
|
if preziktype = 0:
|
|
|
- if prezikcount > 0:
|
|
|
+ if mc_inventory['normal_condoms'] > 0:
|
|
|
prezik += prezikcount
|
|
|
prezikcount = 0
|
|
|
end
|
|
|
- if prezik <= 0:
|
|
|
+ if mc_inventory['equipped_condoms'] <= 0:
|
|
|
'You are out of condoms.'
|
|
|
prezik = 0
|
|
|
prezikcount = 0
|
|
|
preziktype = 1
|
|
|
end
|
|
|
elseif preziktype = 1:
|
|
|
- if prezik > 0:
|
|
|
+ if mc_inventory['equipped_condoms'] > 0:
|
|
|
prezikcount += prezik
|
|
|
prezik = 0
|
|
|
end
|
|
|
elseif preziktype = 2:
|
|
|
- if preziksabo > 0:
|
|
|
- prezik += preziksabo
|
|
|
- preziksabo = 0
|
|
|
+ if mc_inventory['sabotaged_condoms'] > 0:
|
|
|
+ prezik += mc_inventory['sabotaged_condoms']
|
|
|
+ mc_inventory['sabotaged_condoms'] = 0
|
|
|
end
|
|
|
- if prezik <= 0 and prezikcount <= 0:
|
|
|
+ if mc_inventory['equipped_condoms'] <= 0 and mc_inventory['normal_condoms'] <= 0:
|
|
|
if prezikmsg = 1:prezikmsg = 2
|
|
|
prezik = 0
|
|
|
- preziksabo = 0
|
|
|
+ mc_inventory['sabotaged_condoms'] = 0
|
|
|
prezikcount = 0
|
|
|
preziktype = 1
|
|
|
- elseif prezik <= 0 and prezikcount > 0:
|
|
|
+ elseif mc_inventory['equipped_condoms'] <= 0 and mc_inventory['normal_condoms'] > 0:
|
|
|
'You have run out of sabotaged condoms so you will have to use normal condoms.'
|
|
|
prezik = prezikcount
|
|
|
prezikcount = 0
|
|
@@ -532,7 +532,7 @@ $d_tabletkieda = {
|
|
|
gs 'stat'
|
|
|
end
|
|
|
|
|
|
- if tabletki = 0 and pillsleft[ptype] = 0:
|
|
|
+ if mc_inventory['contraceptive_pill'] = 0 and pillsleft[ptype] = 0:
|
|
|
msg 'That was your last birth control pill. You need to buy some more.'
|
|
|
end
|
|
|
|
|
@@ -1043,7 +1043,7 @@ $use_bcream = {
|
|
|
|
|
|
if $ARGS[0] = 'takepill':
|
|
|
|
|
|
- if tabletki > 0 and pillsleft[ptype] = 0:
|
|
|
+ if mc_inventory['contraceptive_pill'] > 0 and pillsleft[ptype] = 0:
|
|
|
tabletkirand = rand(1, tabletki)
|
|
|
if tabletkirand <= tabletkiold:
|
|
|
tabletki -=1
|
|
@@ -1125,7 +1125,7 @@ if $ARGS[0] = 'quick_takepill':
|
|
|
pilldaychk = daystart
|
|
|
|
|
|
if birth_control['message_skip'] ! daystart:
|
|
|
- if tabletki = 0 and pillsleft[ptype] = 0:
|
|
|
+ if mc_inventory['contraceptive_pill'] = 0 and pillsleft[ptype] = 0:
|
|
|
msg 'That was your last birth control pill. You need to buy some more.'
|
|
|
else
|
|
|
msg 'You take your birth control pill.'
|