So, I’ve been tinkering around with adv3lite, and converted most of what I was working on before into it, and so far I have to say I am liking most of the changes. However, so far I’ve had trouble getting it chose an object automatically if a sentence is incomplete.
For example, if you’re in a restaurant and there’s a Thing called ‘dinner’, I want it so if you just type “eat” you’ll eat the dinner.
In TADS3 it was easy, just setting the logicalRank in the verify step made it automatically go with whatever’s highest, but that doesn’t seem to work in adv3lite. I also want it to be able to work with requesting an object from an incomplete statement that has a dObj but still requires an iObj; so rather than asking “Put sweater where” it puts it in the wardrobe.
My other quick, unrelated question, is is there a way to tell if a noun is plural or not when you’re given it? That way I can do custom action handling rather than having it default to effecting all objects of that type (so “Take rock” takes a rock, but “Take rocks” says you can’t take all of them, only a couple, and then proceed to give the player two of them, or something).
Thanks.