|
jackwest Novice
Joined: 01 Jan 2009 Posts: 35
|
Posted: 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 |
|
|
|
calesta Apprentice
Joined: 07 Dec 2008 Posts: 102 Location: New Hampshire, USA
|
Posted: 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.
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Thu Jan 15, 2009 5:40 am |
You have to use #call %btncol etc.
|
|
|
|
jackwest Novice
Joined: 01 Jan 2009 Posts: 35
|
Posted: Thu Jan 15, 2009 5:42 am |
thanks, i should have known that... -slaps head-
|
|
|
|
|
|