 |
Winger Beginner
Joined: 23 May 2004 Posts: 14
|
Posted: 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. |
|
|
 |
Vorax Apprentice

Joined: 29 Jun 2001 Posts: 198 Location: USA
|
Posted: Thu May 27, 2004 6:26 am |
Place the %concat(...) within %eval() and leave off the %expand
See if that works. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
 |
|
|
|
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
|
|