Topic on User talk:Hautarche

Jump to navigation Jump to search
Line 1: Line 1:
The "mean time between" Pyromaniac's random fire-starting sprees, as well as Gourmand's random food binges, is governed by a field called "randomMentalStateMtbDaysMoodCurve" in the XML. IN THEORY, this is a curve using the "SimpleCurve" code, scaling the mean number of days until next trait-induced mental state based on the pawn's mood. Now for a basic primer on SimpleCurve. SimpleCurve 'evaluates' a value-to-test (in this case the pawn's mood) and returns an answer-value. It evaluates differently depending on how many points (as in distinct <x,y> coordinates) it is given:
+
The "mean time between" Pyromaniac's random fire-starting sprees, as well as Gourmand's random food binges, is governed by a field called "randomMentalStateMtbDaysMoodCurve" in the XML. IN THEORY, this is a curve using the "SimpleCurve" code, scaling the mean number of days until next trait-induced mental state based on the pawn's mood.
 +
 
 +
Now for a basic primer on SimpleCurve. SimpleCurve 'evaluates' a value-to-test (in this case the pawn's mood) and returns an answer-value. It evaluates differently depending on how many points (as in distinct <x,y> coordinates) it is given:
  
 
0) Zero points: the phrase "Evaluating a SimpleCurve with no points." shows up in the error log. The returned value is always 0.
 
0) Zero points: the phrase "Evaluating a SimpleCurve with no points." shows up in the error log. The returned value is always 0.