nbt will probably recognize this from an email I sent him.
I have used this in very complex conversations but I'll use this as an example because it is very simple. All I will want from the human player is two possible keywords: Telephone repairman. I could make the sentence structure more complicated but the human player will probably use a sentence structure and all that is needed are several possible keywords that would mean the same thing.
:rpg_newplayerinput:rpg_playerinput_numberseq=1,rpg_playerinput_chatnumber=14|0,rpg_playerinput_keywords=telephone-phone-repairman-bt-engineer,rpg_playerinput_totalnumbercanmatch=3,rpg_playerinput_minimumnumbercanmatch=2,rpg_playerinput_keywordsmustmatch=telephone|phone|bt-repairman|engineer
rpg_playerinput_chatnumber=14|0
This is the chat number that is associated with this response. There can be several possible chat statements that would require these keywords. The bar is an or. If there is only one there needs to be a placeholder for at least a second one. 0 does nicely.
rpg_playerinput_keywords=telephone-phone-repairman-bt-engineer
This is all the possible keywords.
rpg_playerinput_totalnumbercanmatch=5
This is the total number of keywords.
rpg_playerinput_minimumnumbercanmatch=2
This is the total number of keywords in any combination that can match.
rpg_playerinput_keywordsmustmatch=telephone|phone|bt-repairman|engineer
The dash is a logical "and". The bar is a logical "or". So the app will look for telephone|phone|bt-repairman|engineer
("telephone" OR "phone" OR "bt") AND ("repairman" OR "engineer")
The player can then input "telephone repairman," or telephone engineer," or "phone repairman," or "phone engineer," or "bt repairman," or "bt engineer" All of these will return true and then the character can be made to respond to that input.
The coding logic in DBPro for this fpi script took me a long time and a lot of frustrating trial and error. There is quite a few lines of code in DBpro plus looping to accomplish the simple one line of fpi script.
It is not easy to get one's head wrapped around this but it is actually quite powerful. Also, it may not be very pretty.
I reject your reality and substitute my own!
Add more adventure to your game -- use
RPG Mod