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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Deth_Vladd
Newbie


Joined: 09 Dec 2010
Posts: 5
Location: US

PostPosted: Tue Dec 14, 2010 6:54 pm   

#YESNO
 
is it somehow possible to use a variable in the question stated on a #YESNO box? If it's not, I'd like to recommend that it be made possible in a future update :P
I currently have a trig for when someone accepts a resurrection from me to pop up a yesno box that says someone needs ressed, and asks if i want to ress them, but i'd like it to let me know WHO needs ressed :P
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Tue Dec 14, 2010 9:03 pm   
 
if #YESNO doesnt accept a variable in it... have you tried %yesno?
_________________
Discord: Shalimarwildcat
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Dec 14, 2010 9:51 pm   
 
Quote:
#YESNO doesnt accept a variable in it

Umm, yes it does. Here is code that will do what you want:
Code:
target=Zugg
#YESNO {Rez @target?} {cast rez @target}

Works fine. You just need to use {} around the question to allow variables to be expanded.
Reply with quote
Deth_Vladd
Newbie


Joined: 09 Dec 2010
Posts: 5
Location: US

PostPosted: Sat Dec 18, 2010 7:12 am   
 
ah, thanks zugg :) i'd used "" around my question as per the help file example, which displayed the question but wouldn't expand the variable
traded quotes for brackets and all is good now :D
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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