Hygiene Monitoring...

In my last post I described adding base effects and actor effects. I'll quickly describe how I'm using some of them. I've created a quest and an associated script to keep these values applied and removed as needed. 

In this case I move on over to the Quests section of the Object Window and right-click and select New. This brings up the quest dialog. I chose the names, "Hygiene Monitor" and "FurtherNeedsHygieneMonitor" for Quest Name and ID, respectively. I've chosen Start Game Enabled, Allow repeated conversation topics and Allow repeated stages. This is mostly because I don't know exactly what they do but, at least for now, I really want everything to work and nothing to block. I've also thought of using quest stages as a way to detect which stage of poor hygiene the character is suffering from if I cannot find a way to detect if an actor effect is currently applied to the player.

Once the quest is created, I clicked on OK in the bottom right corner. I then clicked on the pencil in the tool bar to create a new script. Be sure to select Quest as the Script Type. The script grabs the current hygiene script variable from the FurtherNeeds main quest and then does a buch of comparisons, removing and adding the spells (actor effects) as needed.

(download)