1
0
Selaa lähdekoodia

[added] flash option for willpower + included voyeur_sex in the voyeur check calculation

Sicaa 4 vuotta sitten
vanhempi
sitoutus
48c372011d
1 muutettua tiedostoa jossa 35 lisäystä ja 10 poistoa
  1. 35 10
      locations/willpower.qsrc

+ 35 - 10
locations/willpower.qsrc

@@ -3,7 +3,7 @@
 !!To use it call it with gs 'willpower', 'action', 'type'
 !!Action: Determines what action sveta is resisting, forcing somebody to do or forcing herself to do
 !!List of actions: 
-!!		'voyeur', 'mast', 'hj', 'bj', 'cuni', 'sex', 'anal', 'group', 'gangbang', 'prostitution', 'swallow', 'cum_inside', 'cum_inside_anal', 'rape',
+!!		'voyeur', 'flash', 'mast', 'hj', 'bj', 'cuni', 'sex', 'anal', 'group', 'gangbang', 'prostitution', 'swallow', 'cum_inside', 'cum_inside_anal', 'rape',
 !!		'kiss', 'humiliation', 'footjob', 'titjob', 'trib', 'rimming', 'BDSM', 'pee', 'cum_outside', 'drink', 'drugs', 'crime', 'exhib', 'sleep'
 !!		there is also 'foreplay' for things like touching and fondling
 !!		and two special cases 'misc' and 'skill' 
@@ -50,7 +50,7 @@
 		end
 	else
 		act 'Kick him in the balls (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
-	end	
+	end
 }
 
 !{ Code Example 2 (several actions need willpower)
@@ -69,7 +69,7 @@
 		end
 	else
 		act 'Kick him in the balls (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
-	end	
+	end
 	
 	gs 'willpower', 'misc', 'self', 'medium'
 	if will_cost <= pcs_willpwr:
@@ -85,7 +85,7 @@
 		end
 	else
 		act 'Slap him across the face (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
-	end	
+	end
 }
 
 if $ARGS[0] = 'calc':
@@ -143,20 +143,45 @@ if $ARGS[0] = 'voyeur':
 	gs 'willpower', 'calc'
 	
 	if $ARGS[1] = 'self':
-		if stat['voyeur'] <= 90:
-			will_cost = (100 - stat['voyeur'] + will_calc)/10
+		if stat['voyeur'] + stat['voyeur_sex'] <= 90:
+			will_cost = (100 - stat['voyeur'] - stat['voyeur_sex'] + will_calc)/10
+		else
+			will_cost = (10 + will_calc)/10
+		end
+	elseif $ARGS[1] = 'force':		
+		if stat['voyeur'] + stat['voyeur_sex'] <= 40:
+			will_cost = (110 - will_enforced - stat['voyeur'] - stat['voyeur_sex'] + will_calc)/10
+		else
+			will_cost = (70 - will_enforced + will_calc)/10
+		end	
+	else
+		if stat['voyeur'] + stat['voyeur_sex'] <= 90:
+			will_cost = (10 + stat['voyeur'] + stat['voyeur_sex'] + will_calc)/10
+		else
+			will_cost = (100 + will_calc)/10
+		end
+	end
+	gs 'willpower', 'difficulty', '<<$ARGS[2]>>'
+end
+
+if $ARGS[0] = 'flash':
+	gs 'willpower', 'calc'
+	
+	if $ARGS[1] = 'self':
+		if stat['flash'] + (stat['flashlite'] / 2) <= 90:
+			will_cost = (100 - stat['flash'] - (stat['flashlite'] / 2) + will_calc)/10
 		else
 			will_cost = (10 + will_calc)/10
 		end
 	elseif $ARGS[1] = 'force':		
-		if stat['voyeur'] <= 40:
-			will_cost = (110 - will_enforced - stat['voyeur'] + will_calc)/10
+		if stat['flash'] + (stat['flashlite'] / 2) <= 40:
+			will_cost = (110 - will_enforced - stat['flash'] - (stat['flashlite'] / 2) + will_calc)/10
 		else
 			will_cost = (70 - will_enforced + will_calc)/10
 		end	
 	else
-		if stat['voyeur'] <= 90:
-			will_cost = (10 + stat['voyeur'] + will_calc)/10
+		if stat['flash'] + (stat['flashlite'] / 2) <= 90:
+			will_cost = (10 + stat['flash'] + (stat['flashlite'] / 2) + will_calc)/10
 		else
 			will_cost = (100 + will_calc)/10
 		end