Browse Source

[fixed] missing images, missing willpower, white screen in sister_chat

julzor 4 years ago
parent
commit
a912e3816f
1 changed files with 52 additions and 25 deletions
  1. 52 25
      locations/sister_chat.qsrc

+ 52 - 25
locations/sister_chat.qsrc

@@ -516,13 +516,21 @@ if $ARGS[0] = 'sister_chat':
 		elseif pirsA > 0 and pirsA < 10000 and sisterQW['pirsA'] = 0 and sisterpirsadaytalk ! daystart and $loc = 'bedrPar':
 			sisterpirsadaytalk = daystart
 			if rand(1,100) >= 75:
+				'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/sister2.jpg"></center>'
 				'Your sister looks you in the mouth. "<<$pcs_nickname>>, and what have you got there in your tongue?"'
-				act 'Nothing':
-					cla
-					'You shake your head. "Nothing." Then turn away, so that your sister does not see your pierced tongue.'
-					act 'Move away': gt $loc, $metka
+				gs 'willpower', 'misc', 'resist', 'easy'
+				if will_cost <= pcs_willpwr:
+					act 'Nothing (<<will_cost>> Willpower)':
+						cla
+						gs 'willpower', 'pay', 'resist'
+						gs 'stat'
+						'You shake your head. "Nothing." Then turn away, so that your sister does not see your pierced tongue.'
+						act 'Move away': gt $loc, $metka
+					end
+				else
+					act 'Nothing (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 				end
-
+					
 				act 'Show her your tongue piercing':
 					*clr & cla
 					sisterQW['pirsA'] = 1
@@ -537,8 +545,11 @@ if $ARGS[0] = 'sister_chat':
 					act 'Chat': gt 'sister_chat', 'sister_chat'
 				end
 				exit
+			else
+				gt 'sister_chat', 'sister_chat'
 			end
 		elseif pirsB > 0 and pirsB < 10000 and sisterQW['pirsB'] = 0 and $loc = 'bedrPar':
+			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/sister2.jpg"></center>'
 			'Your sister looks at your lip, studying your piercing. "That''s so cool, and pretty, I love it!"'
 			act 'Thank you':
 				*clr & cla
@@ -552,12 +563,14 @@ if $ARGS[0] = 'sister_chat':
 			exit
 		elseif pirsC > 0 and pirsC < 10000 and sisterQW['pirsC'] = 0 and $loc = 'bedrPar':
 			sisterQW['pirsC'] = 1
+			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/sister2.jpg"></center>'
 			'Your sister looks at your earrings. Reaching up to hold and inspect one closely she says, "Well, finally! I thought you would never get your ears pierced."'
 			act 'Move away': gt $loc, $metka
 			act 'Chat': gt 'sister_chat', 'sister_chat'
 			exit
 		elseif pirsD > 0 and pirsD < 10000 and sisterQW['pirsD'] = 0 and $loc = 'bedrPar':
 			sisterQW['pirsD'] = 1
+			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/sister2.jpg"></center>'
 			'Anya is clearly shocked by your nose ring: "Damn, <<$pcs_nickname>>, tell me who did this to you and I''ll get them for you."'
 			'She dances around you shadow boxing and you both end up laughing loudly.'
 			act 'Move away': gt $loc, $metka
@@ -565,6 +578,7 @@ if $ARGS[0] = 'sister_chat':
 			exit
 		elseif pirsE > 0 and pirsE < 10000 and sisterQW['pirsE'] = 0 and $loc = 'bedrPar':
 			sisterQW['pirsE'] = 1
+			'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/sister2.jpg"></center>'
 			'Your sister takes a good look at your eyebrow piercing and says, "Nice, but be careful, don''t accidentally get it caught on something!"'
 			act 'Move away': gt $loc, $metka
 			act 'Chat': gt 'sister_chat', 'sister_chat'
@@ -834,16 +848,22 @@ if $ARGS[0] = 'sister_chat':
 								'"The last time Roma was here was so good, thank you very much."'
 								'"You''re welcome, I''m always very happy to help my beloved sister and to see her happy."'
 								'"He would like to come here again tomorrow, do you mind taking another walk for about an hour?"'
-								act 'No':
-									*clr & cla
-									npc_rel['A33'] -= 5
-									gs 'stat'
-									'<center><h1><font color="maroon">Anya</font></h1></center>'
-									'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/home/sisboyqw_04.jpg"></center>'
-									*nl
-									'"Sorry Anya, I need to study in the evening."'
-									'"Fine!" Anya turns away angrily and buries her head in her book.'
-									act 'Finish': gt 'sister_chat', 'sister_chat'
+								gs 'willpower', 'misc', 'resist', 'easy'
+								if will_cost <= pcs_willpwr:
+									act 'No (<<will_cost>> Willpower)':
+										*clr & cla
+										npc_rel['A33'] -= 5
+										gs 'willpower', 'pay', 'resist'
+										gs 'stat'
+										'<center><h1><font color="maroon">Anya</font></h1></center>'
+										'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/home/sisboyqw_04.jpg"></center>'
+										*nl
+										'"Sorry Anya, I need to study in the evening."'
+										'"Fine!" Anya turns away angrily and buries her head in her book.'
+										act 'Finish': gt 'sister_chat', 'sister_chat'
+									end
+								else
+									act 'No (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 								end
 								act 'Of course':
 									*clr & cla
@@ -927,16 +947,22 @@ if $ARGS[0] = 'sister_chat':
 								'"You''re welcome, I''m always very happy to help my beloved sister and to see her happy."'
 								'"He would like to come here again tomorrow, do you mind taking another walk for about an hour?"'
 							end
-							act 'No':
-								*clr & cla
-								npc_rel['A33'] -= 5
-								sisboyday = daystart
-								gs 'stat'
-								'<center><h1><font color="maroon">Anya</font></h1></center>'
-								'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/home/sisboyqw_04.jpg"></center>'
-								'"Sorry Anya, I need to study in the evening."'
-								'"Fine!" Anya turns away angrily and buries her head in her book.'
-								act 'Finish': gt 'sister_chat', 'sister_chat'
+							gs 'willpower', 'misc', 'resist', 'easy'
+							if will_cost <= pcs_willpwr:
+								act 'No (<<will_cost>> Willpower)':
+									*clr & cla
+									npc_rel['A33'] -= 5
+									sisboyday = daystart
+									gs 'willpower', 'pay', 'resist'
+									gs 'stat'
+									'<center><h1><font color="maroon">Anya</font></h1></center>'
+									'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/home/sisboyqw_04.jpg"></center>'
+									'"Sorry Anya, I need to study in the evening."'
+									'"Fine!" Anya turns away angrily and buries her head in her book.'
+									act 'Finish': gt 'sister_chat', 'sister_chat'
+								end
+							else
+								act 'No (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
 							end
 							act 'Of course':
 								*clr & cla
@@ -1037,6 +1063,7 @@ if $ARGS[0] = 'sister_chat':
 		end
 		act 'Move away': gt $loc, $metka
 	else
+		'<center><img <<$set_imgh>> src="images/characters/pavlovsk/resident/anya/sister2.jpg"></center>'
 		'OK <<$pcs_nickname>>, it''s time for bed.'
 		act 'Move away': gt $loc, $metka
 	end