|
@@ -172,7 +172,7 @@ if $ARGS[0] = 'd_bag':
|
|
|
*nl
|
|
|
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>'
|
|
|
+ '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
|
|
@@ -198,7 +198,7 @@ if $ARGS[0] = 'd_bag':
|
|
|
if joint > 0: 'You have enough weed for <b><<joint>></b> joints.'
|
|
|
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:
|
|
|
+ elseif mc_inventory['contraceptive_pill'] = 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 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.'
|
|
@@ -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+mc_inventory['sabotaged_condoms'], mc_inventory['sabotaged_condoms'])>> sabotaged condoms left.'
|
|
|
+ 'You have <<iif(preziktype < 2, mc_inventory[''equipped_condoms'']+mc_inventory[''normal_condoms''], mc_inventory[''normal_condoms''])>> normal condoms left and <<iif(preziktype = 2, mc_inventory[''equipped_condoms'']+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>.'
|
|
@@ -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+mc_inventory['sabotaged_condoms'], mc_inventory['sabotaged_condoms'])>> sabotaged condoms left.'
|
|
|
+ 'You have <<iif(preziktype < 2, mc_inventory[''equipped_condoms'']+mc_inventory[''normal_condoms''], mc_inventory[''normal_condoms''])>> normal condoms left and <<iif(preziktype = 2, mc_inventory[''equipped_condoms'']+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>.'
|
|
@@ -329,8 +329,8 @@ $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.
|
|
|
+!! mc_inventory['equipped_condoms']: Total number of condoms sveta is using (normal or damaged).
|
|
|
+!! mc_inventory['normal_condoms']: Number of normal condoms sveta 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 mc_inventory['equipped_condoms'] > 0:
|
|
@@ -343,30 +343,30 @@ $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: mc_inventory['sabotaged_condoms'] = prezik
|
|
|
- prezik = prezikcount
|
|
|
- prezikcount = 0
|
|
|
+ if preziktype = 2: mc_inventory['sabotaged_condoms'] = mc_inventory['equipped_condoms']
|
|
|
+ mc_inventory['equipped_condoms'] = mc_inventory['normal_condoms']
|
|
|
+ mc_inventory['normal_condoms'] = 0
|
|
|
preziktype = 0
|
|
|
elseif ARGS[0] = 2:
|
|
|
'You will not use a condom the next time you have sex.'
|
|
|
- if preziktype = 0: mc_inventory['normal_condoms'] = prezik
|
|
|
- if preziktype = 2: mc_inventory['sabotaged_condoms'] = prezik
|
|
|
- prezik = 0
|
|
|
+ if preziktype = 0: mc_inventory['normal_condoms'] = mc_inventory['equipped_condoms']
|
|
|
+ if preziktype = 2: mc_inventory['sabotaged_condoms'] = mc_inventory['equipped_condoms']
|
|
|
+ mc_inventory['equipped_condoms'] = 0
|
|
|
preziktype = 1
|
|
|
elseif ARGS[0] = 3:
|
|
|
'Use your sabotaged condom the next time you have sex.'
|
|
|
- if preziktype = 0: mc_inventory['normal_condoms'] = prezik
|
|
|
- prezik = mc_inventory['sabotaged_condoms']
|
|
|
+ if preziktype = 0: mc_inventory['normal_condoms'] = mc_inventory['equipped_condoms']
|
|
|
+ mc_inventory['equipped_condoms'] = mc_inventory['sabotaged_condoms']
|
|
|
mc_inventory['sabotaged_condoms'] = 0
|
|
|
preziktype = 2
|
|
|
elseif ARGS[0] = 4:
|
|
|
if preziktype ! 0 and mc_inventory['normal_condoms'] > 0:
|
|
|
mc_inventory['sabotaged_condoms'] +=1
|
|
|
- prezikcount -=1
|
|
|
+ mc_inventory['normal_condoms'] -=1
|
|
|
'You use a needle to punch holes in one of the condoms.'
|
|
|
elseif preziktype = 0 and mc_inventory['equipped_condoms'] > 0:
|
|
|
mc_inventory['sabotaged_condoms'] +=1
|
|
|
- prezik -=1
|
|
|
+ mc_inventory['equipped_condoms'] -=1
|
|
|
'You use a needle to punch holes in one of the condoms.'
|
|
|
else
|
|
|
'You do not have any condoms to sabotage.'
|
|
@@ -384,35 +384,35 @@ $din_Update_Condom_Counts = {
|
|
|
if mc_inventory['equipped_condoms'] + mc_inventory['normal_condoms'] + mc_inventory['sabotaged_condoms'] > 0: prezikmsg = 1
|
|
|
if preziktype = 0:
|
|
|
if mc_inventory['normal_condoms'] > 0:
|
|
|
- prezik += prezikcount
|
|
|
- prezikcount = 0
|
|
|
+ mc_inventory['equipped_condoms'] += mc_inventory['normal_condoms']
|
|
|
+ mc_inventory['normal_condoms'] = 0
|
|
|
end
|
|
|
if mc_inventory['equipped_condoms'] <= 0:
|
|
|
'You are out of condoms.'
|
|
|
- prezik = 0
|
|
|
- prezikcount = 0
|
|
|
+ mc_inventory['equipped_condoms'] = 0
|
|
|
+ mc_inventory['normal_condoms'] = 0
|
|
|
preziktype = 1
|
|
|
end
|
|
|
elseif preziktype = 1:
|
|
|
if mc_inventory['equipped_condoms'] > 0:
|
|
|
- prezikcount += prezik
|
|
|
- prezik = 0
|
|
|
+ mc_inventory['normal_condoms'] += mc_inventory['equipped_condoms']
|
|
|
+ mc_inventory['equipped_condoms'] = 0
|
|
|
end
|
|
|
elseif preziktype = 2:
|
|
|
if mc_inventory['sabotaged_condoms'] > 0:
|
|
|
- prezik += mc_inventory['sabotaged_condoms']
|
|
|
+ mc_inventory['equipped_condoms'] += mc_inventory['sabotaged_condoms']
|
|
|
mc_inventory['sabotaged_condoms'] = 0
|
|
|
end
|
|
|
if mc_inventory['equipped_condoms'] <= 0 and mc_inventory['normal_condoms'] <= 0:
|
|
|
if prezikmsg = 1:prezikmsg = 2
|
|
|
- prezik = 0
|
|
|
+ mc_inventory['equipped_condoms'] = 0
|
|
|
mc_inventory['sabotaged_condoms'] = 0
|
|
|
- prezikcount = 0
|
|
|
+ mc_inventory['normal_condoms'] = 0
|
|
|
preziktype = 1
|
|
|
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
|
|
|
+ mc_inventory['equipped_condoms'] = mc_inventory['normal_condoms']
|
|
|
+ mc_inventory['normal_condoms'] = 0
|
|
|
preziktype = 0
|
|
|
end
|
|
|
end
|
|
@@ -427,9 +427,9 @@ $d_tabletkied = {
|
|
|
tabloc = 0
|
|
|
if tabletkiday < daystart and thinkpreg = 0 and knowpreg = 0: '<a href="exec:dynamic $d_tabletkieda, 1">Take the birth control pill now.</a>'
|
|
|
if tabletkicheck = 0 and thinkpreg = 0 and knowpreg = 0:
|
|
|
- if (tabletki > 0 or pillsleft[ptype] > 0) and birth_control['remind_hour'] = 0:
|
|
|
+ if (mc_inventory['contraceptive_pill'] > 0 or pillsleft[ptype] > 0) and birth_control['remind_hour'] = 0:
|
|
|
'<a href="exec:gs ''din_bad'', ''set_bc_reminder''">Set a reminder to take your birth control pills.</a>'
|
|
|
- elseif (tabletki > 0 or pillsleft[ptype] > 0) and birth_control['remind_hour'] > 0:
|
|
|
+ elseif (mc_inventory['contraceptive_pill'] > 0 or pillsleft[ptype] > 0) and birth_control['remind_hour'] > 0:
|
|
|
'<a href="exec:gs ''din_bad'', ''set_bc_reminder''">Change your birth control reminder.</a>'
|
|
|
'<a href="exec:gs ''din_bad'', ''turn_off_bc_reminder''">Turn off your birth control reminder.</a>'
|
|
|
end
|
|
@@ -461,9 +461,9 @@ $d_tabletkiedt = {
|
|
|
if tabletkiday < daystart and thinkpreg = 0 and knowpreg = 0: '<a href="exec:*clr & dynamic $d_tabletkieda, 1">Take the birth control pill now.</a>'
|
|
|
|
|
|
if tabletkicheck = 0 and thinkpreg = 0 and knowpreg = 0:
|
|
|
- if (tabletki > 0 or pillsleft[ptype] > 0) and birth_control['remind_hour'] = 0:
|
|
|
+ if (mc_inventory['contraceptive_pill'] > 0 or pillsleft[ptype] > 0) and birth_control['remind_hour'] = 0:
|
|
|
'<a href="exec:gs ''din_bad'', ''set_bc_reminder''">Set a reminder to take your birth control pills.</a>'
|
|
|
- elseif (tabletki > 0 or pillsleft[ptype] > 0) and birth_control['remind_hour'] > 0:
|
|
|
+ elseif (mc_inventory['contraceptive_pill'] > 0 or pillsleft[ptype] > 0) and birth_control['remind_hour'] > 0:
|
|
|
'<a href="exec:gs ''din_bad'', ''set_bc_reminder''">Change your birth control reminder.</a>'
|
|
|
'<a href="exec:gs ''din_bad'', ''turn_off_bc_reminder''">Turn off your birth control reminder.</a>'
|
|
|
end
|
|
@@ -1044,34 +1044,34 @@ $use_bcream = {
|
|
|
if $ARGS[0] = 'takepill':
|
|
|
|
|
|
if mc_inventory['contraceptive_pill'] > 0 and pillsleft[ptype] = 0:
|
|
|
- tabletkirand = rand(1, tabletki)
|
|
|
+ tabletkirand = rand(1, mc_inventory['contraceptive_pill'])
|
|
|
if tabletkirand <= tabletkiold:
|
|
|
- tabletki -=1
|
|
|
+ mc_inventory['contraceptive_pill'] -=1
|
|
|
tabletkiold -=1
|
|
|
ptype = 1
|
|
|
pillsleft[ptype] = 28
|
|
|
elseif tabletkirand <= tabletkiold + tabletkifake:
|
|
|
- tabletki -=1
|
|
|
+ mc_inventory['contraceptive_pill'] -=1
|
|
|
tabletkifake -=1
|
|
|
ptype = 2
|
|
|
pillsleft[ptype] = 28
|
|
|
elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej:
|
|
|
- tabletki -=1
|
|
|
+ mc_inventory['contraceptive_pill'] -=1
|
|
|
tabletkirej -=1
|
|
|
ptype = 3
|
|
|
pillsleft[ptype] = 28
|
|
|
elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej + tabletkisug:
|
|
|
- tabletki -=1
|
|
|
+ mc_inventory['contraceptive_pill'] -=1
|
|
|
tabletkisug -=1
|
|
|
ptype = 4
|
|
|
pillsleft[ptype] = 28
|
|
|
elseif tabletkirand <= tabletkiold + tabletkifake + tabletkirej + tabletkisug + tabletkifert:
|
|
|
- tabletki -=1
|
|
|
+ mc_inventory['contraceptive_pill'] -=1
|
|
|
tabletkifert -=1
|
|
|
ptype = 5
|
|
|
pillsleft[ptype] = 28
|
|
|
else
|
|
|
- tabletki -=1
|
|
|
+ mc_inventory['contraceptive_pill'] -=1
|
|
|
ptype = 0
|
|
|
pillsleft[ptype] = 28
|
|
|
end
|