|
mykor Newbie
Joined: 21 Nov 2007 Posts: 3
|
Posted: Wed Nov 21, 2007 9:28 pm
Trigger/Button question. |
I am trying to make a button that will come up and ask a question. I think example of what I am talking about would be best.
Say I want to cast a spell at a certain level.
I click the cast button
A screen pops up asking what spell I would like to cast, I can type in an answer here then click ok
Another screen pops up and asks what powerlevel I want to cast it at and it has a box to choose from 1 through 10 then click ok
another box comes up and asks if there is anything else that I need, if not I click no and it casts the spell, if yes it asks for any other information and I type it in then click ok and it casts the spell. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Nov 22, 2007 7:52 am |
You're probably interested in the #PROMPT and #PICK commands. #YESNO and #INPUT may be useful to you as well.
|
|
_________________ Asati di tempari! |
|
|
|
mykor Newbie
Joined: 21 Nov 2007 Posts: 3
|
Posted: Thu Nov 22, 2007 10:19 am |
Tech wrote: |
You're probably interested in the #PROMPT and #PICK commands. #YESNO and #INPUT may be useful to you as well. |
Thats exactly what I was looking for, I knew it was here somewhere and could be done, its been years since I did this but I am happy to see that these things still exist. Now for me to put it all together to work :) |
|
|
|
mykor Newbie
Joined: 21 Nov 2007 Posts: 3
|
Posted: Thu Nov 22, 2007 10:39 am |
Hrmm... I got the #PROMPT to work however if I click cancel it still goes through the rest of the motions, its like nomatter what it will do whatever is listed if I click ok or cancel... any idea on how to fix this ?
|
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Thu Nov 22, 2007 1:32 pm |
What are the full contents of your #prompt command?
|
|
_________________ Taz :) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Nov 22, 2007 1:32 pm |
Use an #IF to check the variable for null something like this:
Code: |
#PROMPT variable {question}
#IF (@variable) {
the rest of the stuff
} |
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|