I’m working on a social-interactions prototype and am finding myself blocked. I’ve only been using inform for about a week, and any guidance on this is very greatly appreciated, as I’m finding myself up against a deadline and stressed.
Here’s a quick description of the system:
A player can perform social actions on a non-player character.
An NPC has a number called “romance”. Romance begins at zero. Using social actions increases romance by varying point levels-- "flirt, “touch,” and “kiss” would increase Romance by 10, 20, and 30 respectively.
An NPC also has a value called “state”. The states are indifferent, interested, infatuated, and seduced. An NPC is usually indifferent.
I’m having trouble correlating the states to a range of point values rather than individual social actions. I’ve been able to say “if the player flirts with the NPC, now the NPC is interested.”
But, what I actually need is:
if the romance of a person is 0, the person is indifferent.
if the romance of a person is between 1 and 10, the person is interested.
if the romance of a person is between 11 and 20, the person is infatuated.
(I will then have those states determine which social actions an NPC will allow, but I more or less have this working for now so I’m just giving context.)
How can I make the state value depend on number properties? Should this be in a rule structure? The documentation in Inform 7 is a little dense, and hard to sift through.
Thanks very much for some advice,