Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
mykor
Newbie


Joined: 21 Nov 2007
Posts: 3

PostPosted: 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.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
mykor
Newbie


Joined: 21 Nov 2007
Posts: 3

PostPosted: 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 :)
Reply with quote
mykor
Newbie


Joined: 21 Nov 2007
Posts: 3

PostPosted: 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 ?
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Thu Nov 22, 2007 1:32 pm   
 
What are the full contents of your #prompt command?
_________________
Taz :)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net