Sfoglia il codice sorgente

[change/added] People skill will now effect how many relationship points you get with npcs. At 100 it will double the gain and half the loss

bgkjdgbizgblzdgbr 1 settimana fa
parent
commit
25b11dbe25
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      locations/npc_relationship.qsrc

+ 10 - 0
locations/npc_relationship.qsrc

@@ -68,8 +68,10 @@ if $ARGS[0] = 'modify':
 		npcRelSetVal = rand(1,2)
 	elseif $ARGS[2] = 'love':
 		npcRelSetVal = rand(3,4)
+		gs 'exp_gain', 'humint', rand(0,1)
 	elseif $ARGS[2] = 'adore':
 		npcRelSetVal = rand(5,6)
+		gs 'exp_gain', 'humint', rand(1,2)
 	elseif $ARGS[2] = 'dislike':
 		npcRelSetVal = 0-rand(1,2)
 	elseif $ARGS[2] = 'hate':
@@ -80,6 +82,14 @@ if $ARGS[0] = 'modify':
 	else
 		npcRelSetVal = 0
 	end
+
+	!Modify for people skill
+	if npcRelSetVal > 0:
+		npcRelSetVal += (npcRelSetVal*pcs_humint)/100
+	elseif npcRelSetVal < 0:
+		npcRelSetVal -= (npcRelSetVal*pcs_humint)/200
+	end
+
 	!Make sure the new value fits within correct range
 	npcRelSetVal += npc_rel[$ARGS[1]]
 	if npcRelSetVal > 100: npcRelSetVal=100