|
Deth_Vladd Newbie
Joined: 09 Dec 2010 Posts: 5 Location: US
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Tue Dec 14, 2010 9:03 pm |
if #YESNO doesnt accept a variable in it... have you tried %yesno?
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
Deth_Vladd Newbie
Joined: 09 Dec 2010 Posts: 5 Location: US
|
Posted: 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 |
|
|
|
|
|