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
jackwest
Novice


Joined: 01 Jan 2009
Posts: 35

PostPosted: Thu Jan 15, 2009 4:43 am   

simple #if statement outputting an unwanted numeric string to the mud [solved]
 
Code:
#trigger {Spell: '&spell_name_temp'&spell_desc for &%dspell_duration_temp hours.} {#if (@spell_duration_temp < 5) {%btncol(@spell_name, blue, steelblue)} {%btncol(@spell_name, blue, grey)}



it works, the problem I am having is the trigger is also outputting text to the mud, specifically a string of numbers 12632256 (if false) or 11829830 (if true).

any suggestions?

thanks


Last edited by jackwest on Thu Jan 15, 2009 5:42 am; edited 1 time in total
Reply with quote
calesta
Apprentice


Joined: 07 Dec 2008
Posts: 102
Location: New Hampshire, USA

PostPosted: Thu Jan 15, 2009 5:20 am   
 
%btncol says it returns the color of the button, so thats prolly where the number comes from. Should be able to make it stop sending that to the mud by sticking a #call in front of it I think.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Thu Jan 15, 2009 5:40 am   
 
You have to use #call %btncol etc.
Reply with quote
jackwest
Novice


Joined: 01 Jan 2009
Posts: 35

PostPosted: Thu Jan 15, 2009 5:42 am   
 
thanks, i should have known that... -slaps head-
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