I've been trying to set a morality bar for the hero of my detective game on Harlowe. If they make a good cop decision, it's (set: $attitude to +1). If they make a bad cop decision, it's (set: $attitude to -1). My understanding is that this will add or subtract a number from their current score as they keep going. I'm still pretty new to this.
Now I tried to make it so that different characters react differently to the detective depending on how she's aligned. A rebellious witness, for instance, will react better to her if she's less by the book, so I try to set the dialogue like, (if: $attitude is < 0)[Here's the deal...](else:)[I'm saying nothing.]
But the game's not responding to this. I used the print option, and the game is counting the points correctly. What am I doing wrong?
Comments
I guess this should work.
If you have some doubts with de logical operators you can look for http://twinery.org/wiki/expression
I hope that helps
The following two examples show how to add / subtract a number from the $attitude variable in Harlowe, notice the use of the it keyword: