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
Winger
Beginner


Joined: 23 May 2004
Posts: 14

PostPosted: Thu May 27, 2004 5:50 am   

Showing Value in Echo
 
For the life of me, I have tried innumerous ways to get this to actually show the -value- of the variable, and yet, it doesn't seem to be working.

Combat/tempelm = %expand( %concat( "@Smoking/", %concat( @curchar, "ClassS/pelm")))
Combat/tempsku = %expand( %concat( "@Smoking/", %concat( @curchar, "ClassS/psku")))
Combat/tempval = %expand( %concat( "@Smoking/", %concat( @curchar, "ClassS/pval")))
#ECHO Elm pipe: @Combat/tempelm Skullcap pipe: @Combat/tempsku Valerian pipe: @Combat/tempval
#ECHO Focus: %if( %item( %concat( "@Combat/", %concat( @curchar, "Settings")), 1)=1, Yes, No) Focus: %if( %item( %concat( "@Combat/", %concat( @curchar, "Settings")), 2)=1, Yes, No)

Originally, I had the whole "%expand(.." where the variables "@Combat/temp***" are now, but even then, it would just echo as "@Smoking/WingerClassS/pelm", and not show the value. I've tried several things, none of which seem to be working. I know it has to be -something- simple, because otherwise I'd have gotten it. Sorry to bother you all, again.

PS I even tried it without the "%expand()" function. No good.
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Thu May 27, 2004 6:26 am   
 
Place the %concat(...) within %eval() and leave off the %expand
See if that works.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 27, 2004 4:56 pm   
 
Combat/tempelm = @pelm
#VAR tempelm @pelm {_nodef} {Combat}

If it's necessary to specify the path (usually it's not)
Combat/tempelm = @{Smoking/@{curchar}ClassS/pelm}
#VAR tempelm {@{Smoking@{curchar}ClassS/pelm} {_nodef} {Combat}

Didn't test any of this. I believe your approach is flawed, but I'll address that in one of your other topics.
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