Request: New program type

For builders to discuss and ask building questions.
Post Reply
Solaghar
Staff
Staff
Posts: 1283
Joined: Sun Nov 16, 2003 8:33 am
Location: Menzoberranzan

Request: New program type

Post by Solaghar » Sun Aug 28, 2011 6:26 pm

While coding it seemed to me that we might be able to do with, if possible, a new program type. The program would be a question program, and would work like this... the initial program line acting the same as speech_prog, so you could use multiple words to trigger the correct answer, or an entire phrase.

>question_prog hello~
<activates on good match>
else
<activates on bad match>
~
|

For example...
>question_prog hello hi hey heya~
sayto $n Hello to you too!
else
sayto $n Well you're rude
c flamestrike $n
~
|

When asking people to answer questions in quests, I'm struck that unless I can consider a program for every wrong answer they might possibly give, it's not possible to deal with right/wrong answers easily, while using a stringcheck only allows for single-word answers that are exactly right. This isn't a big deal but if it's something that could be added I think it'd be a useful tool for builders, as many quests have question and answer periods.
Post Reply