Skip to content

STAGE 3 Designing A State Machine Handling Emotion:

Leroy "Spydaz" Dyer BSC/MSC edited this page Jun 10, 2020 · 1 revision

STAGE 3 - Designing A State Machine - Handling Emotion:

A state machine can provide a mechanizim to hold Emotional states ; In this iteration an interface has been used to provide a structure for emotional state objects; Each state is loaded in to the Handler; Emotions are detected each turn of the Script adjusting the currently held emotions positivly and negativly allowing for inteisification of emotions. Here a generic Response is given as emotional state is changed. other forms of State can also be carried from turn to turn by using a state machine; Previous programming method often have utilized "traveling vairables" yet often replacing state to state with finite quotient values for emotioanal Skew. IE happy = 0.78 , SAD 0.23 ; this technique does not allow for intensity of emotion ; intensity of emotion is increased ie: happy is increased if happy is detected next turn; but reduced if the next emotion is just simply neutral. until the level of intesity has reduced to the value 0 which can change state to Neutral.