Orion_613
GoblinThief
Registered: Mar 2001
Location: Richmond BC
Posts: 73 |
if #onhear were to work similar to a block but not quite the same, braching possible answers could be dont quite simply (for the admins), what im talking about would look something like the following:
#onhear (or #onhearblock) blockname botname radius keep who-can-activate-it(not needed but nice)
#ifonhear "yes">#fw botname #say you said yes
#ifonhear "no">#fw botname #say you said no
#endonhear
with the above, one could add as many cases as they wanted to cover multiple outcomes based on what the player says .... everytime the bot is spoken too it would check though each " " for the correct word and then execute .. also what would allso be neat but might create major spamage is an #elsehear, where if none of the above is correct then it would exsecute the #elsehear:
#onhear botname 5 false "hi">#call test
#block test
#fw botname #say say yes or no
#callonhear blockname
#endblock
#onhearblock blockname botname radius false %1
#ifonhear "yes">#fw botname #say you said yes
#ifonhear "no">#fw botname #say you said no
#elsehear #fw botname #say you have not said one of the 2 choices
#endonhear
anyways something along those lines .. i think that would be pretty cool, especially for Q/A uselessknoledge quests or other ones that require something to continue with the quest .. anyways .. oh yeah this would also require a #callonhear to be created.
so ah, tell me what you think
__________________
The Road To Hell Is Paved With Good Intentions
Report this post to a moderator | IP: Logged
|