To dialog or not to dialog? That is the question. - 18/05/05 04:40 AM
I currently have the following code on my bot for a Truth or Dare room
Which works fine, most of the time. However, it's been suggested that I might want to create a dialog where limits that the server sets are already checked and unchangeable, then a list of common limits which can be checked or unchecked, depending on if that is a limit the person wants or not, and finally a box for text entry, where the person can enter other limits that they have that aren't already accounted for previously.
It was suggested that I use DStudio to get started, but I can't make heads or tails of that program.
Would a dialog be able to do all that I've got listed above? If so, could someone please write the code along with descriptive remarks so that I can try to understand the code, before deciding if I want to go with the dialog (presuming it's possible) or keep the status quo.
Code:
on *:text:!limit*:*:{ if !$2 { .msg $nick To set your limits, type !limit your limits here .msg $nick Put your limits in place of your limits here .msg $nick For example: !limit scat, animals, kids, golden showers } else { hadd -m TD $+(Limits.,$address) $2- .msg $nick Your limits have now been set as $hget(TD,$+(Limits.,$address)) .msg $nick If you ever want to change your limits, you can do so by using this same command. .msg $nick Old limits will be replaced with new ones. if $istok(%play_temp,$nick,44) { set %play.list $addtok(%play.list,$nick,44) set %play_temp $remtok(%play_temp,$nick,1,44) describe %td.chan smiles as $nick is added to the players list } } }
Which works fine, most of the time. However, it's been suggested that I might want to create a dialog where limits that the server sets are already checked and unchangeable, then a list of common limits which can be checked or unchecked, depending on if that is a limit the person wants or not, and finally a box for text entry, where the person can enter other limits that they have that aren't already accounted for previously.
It was suggested that I use DStudio to get started, but I can't make heads or tails of that program.
Would a dialog be able to do all that I've got listed above? If so, could someone please write the code along with descriptive remarks so that I can try to understand the code, before deciding if I want to go with the dialog (presuming it's possible) or keep the status quo.