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
Zjacer
Newbie


Joined: 15 Nov 2014
Posts: 2

PostPosted: Sun Nov 16, 2014 3:17 am   

Button with 'insert text' option.
 
Hi!
My button sends to MUD:
exec return find_player(~"%%~")->add_prop(~"_live_i_neverknown~", 1)~; (it's example)
I need %% to be variable which i insert after i click my button.
For example: I click button, then new window opens and i have to insert text. For example 'Legolas'. Button will send:
exec return find_player(~"Legolas~")->add_prop(~"_live_i_neverknown~", 1)~;

Could you help me? :)
Reply with quote
hogarius
Adept


Joined: 29 Jan 2003
Posts: 216
Location: islands.genesismuds.org

PostPosted: Sun Nov 16, 2014 10:38 pm   Re: Button with 'insert text' option.
 
Zjacer wrote:
Hi!
My button sends to MUD:
exec return find_player(~"%%~")->add_prop(~"_live_i_neverknown~", 1)~; (it's example)
I need %% to be variable which i insert after i click my button.
For example: I click button, then new window opens and i have to insert text. For example 'Legolas'. Button will send:
exec return find_player(~"Legolas~")->add_prop(~"_live_i_neverknown~", 1)~;

Could you help me? :)


Take a look at the #PROMPT command.

http://forums.zuggsoft.com/modules/mx_kb/kb.php?page=3&mode=doc&k=356
Reply with quote
Zjacer
Newbie


Joined: 15 Nov 2014
Posts: 2

PostPosted: Wed Nov 19, 2014 5:21 pm   
 
Thanks! :)
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