Hello
My fellow WME forumers, I am in need of your wisdom.
My adventure will include chat sequences. I already asked on the IRC forum and they said it's possible, so I am posting this here to get some help how the heck I should script something like that
lol Ok, here's a picture explaining what I want to do:
blabla messages user. (this is easy again, like after player has done X start Y, Y being the chat window). blabla says 'hey hi
' . Text will be displays in the new window. Now it's the players turn to write blabla back. Depending on what the user is writing (must me one of choices below or the new events (messages form blabla won't trigger), blabla's answers are different. Player inputs text in the text box show on the pictures and hit enter or clicks on the 'send' button:
User input:
If "* Hi* *" goto blablaresponse2 print: 'how are you'
If "* I* * busy *" goto blablaresponse3 print: 'what are you doing? :O'
If "* Hi* * how are *" blablaresponse4 print: 'I am fine matey, and you?'
* are wildcards. E.g. "yo yo hi - how are you?" would trigger blablaresponse4.
Player clicks on the 'Log' button. This will open a new window, containing the whole discussion the player had with the npc. It should not only log blabla's text, but also the player input (I think we can compare this with the text log feature some adventure have, were you can check older conversations with NPCs. Should not be hard for this project - if it weren't for the player input and different responses an 'npc' can give.).
There was no example on the wiki about that. While it's possible to add novel-like text to your adventure (user asuka has done this, so I'd quite hapy if you'd response to this post
), I wonder how about to script user input, and especially, how to trigger the various replies based on it AND logging this stuff.
Before I start on the real adventure, I am working on a test demo where I try out various ideas. I will try my luck on this problem today and upload a test build as soon as I figured something out.
PS: I remember that something similiar has been done with the AGS (or something like that) Engine once. The game itself was limited to a chat window though.
EDIT: Basic Test Windows ready.