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
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: Fri Feb 11, 2005 1:01 pm   

problem geting character immedietly after variable
 
how can i attatch a letter just after a variable?
"@WarEnsemble_Seconds s" looks stupid and "@WarEnsemble_Secondss" does not work at all.


Last edited by BlackSmith on Fri Feb 11, 2005 2:34 pm; edited 1 time in total
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Fri Feb 11, 2005 1:31 pm   
 
tried with @{WarEnsemble_Seconds}s ?
Reply with quote
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: Fri Feb 11, 2005 1:37 pm   
 
testing as we speak
_________________
BatMUD Best MMORPG around since 1990 telnet://bat.org:23
~ Magic & Mind beats Chrome & Meat anytime ~
Pattern(s) in PERL. Using Cmud 1.34/2.09 & BatClient.
Reply with quote
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: Fri Feb 11, 2005 2:28 pm   
 
nope
_________________
BatMUD Best MMORPG around since 1990 telnet://bat.org:23
~ Magic & Mind beats Chrome & Meat anytime ~
Pattern(s) in PERL. Using Cmud 1.34/2.09 & BatClient.
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Fri Feb 11, 2005 2:49 pm   
 
@WarEnsemble_Seconds"s"

works for me.
_________________
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri Feb 11, 2005 4:10 pm   
 
Another option: This is also something %concat can do

%concat(@warensemble_seconds, "s")
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: Fri Feb 11, 2005 4:57 pm   
 
the "" wont work on this case
Quote:
#TRIGGER "SeeInvisible Off" {^Your vision is less sensitive now.$} {#VA (SeeInvisible) {0} {0} {SeeInvisible};#CO bold;#IF (@SeeInvisible_Caster="me") {#SUB {Your vision is less sensitive now. ~(%if( 0<@SeeInvisible_Minutes, @SeeInvisible_Minutes m, "") %if( 0<@SeeInvisible_Seconds, @SeeInvisible_Seconds s, "")~)}} {party say emote 's vision is less sensitive now. ~(@SeeInvisible_Caster's SeeInvisible lasted: %if( 0<@SeeInvisible_Minutes, @SeeInvisible_Minutes m , "") %if( 0<@SeeInvisible_Seconds, @SeeInvisible_Seconds s, "")~)};#T- "SeeInvisible Alarm"} "" {case}
Confused
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Fri Feb 11, 2005 5:53 pm   
 
try this:

Code:
#TRIGGER "SeeInvisible Off" {^Your vision is less sensitive now.$} {#VA (SeeInvisible) {0} {0} {SeeInvisible};#CO bold;#IF (@SeeInvisible_Caster="me") {#SUB {Your vision is less sensitive now. ~(%if( 0<@SeeInvisible_Minutes, @{SeeInvisible_Minutes}m , "") %if( 0<@SeeInvisible_Seconds, @{SeeInvisible_Seconds}s, "")~)}} {party say emote 's vision is less sensitive now. ~(@SeeInvisible_Caster's SeeInvisible lasted: %if( 0<@SeeInvisible_Minutes, @{SeeInvisible_Minutes}m , "") %if( 0<@SeeInvisible_Seconds, @{SeeInvisible_Seconds}s, "")~)};#T- "SeeInvisible Alarm"} "" {case}


with this variables and values
Code:
#VAR SeeInvisible_Seconds {25};
#VAR SeeInvisible_Minutes {23};
#VAR SeeInvisible_Caster {TheCaster};


it sent:
party say emote 's vision is less sensitive now. (TheCaster's SeeInvisible lasted: 23m 25s)

if i set #VAR SeeInvisible_Caster {me}
it then echos:
Your vision is less sensitive now. (23m 25s)

If this doesnt work out for you for some reason
give us an example of what it does output.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Fri Feb 11, 2005 6:10 pm   
 
I dont think that this sytax: tried with @{WarEnsemble_Seconds}s is correct.

Try this: @WarEnsemble_Seconds{s} Question
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Fri Feb 11, 2005 7:46 pm   
 
@WarEnsemble_Seconds{s} is definitely not the way to go
if the variable @WarEnsemble_Seconds=25
then @WarEnsemble_Seconds{s}
would evaluate to 25{s}
[@WarEnsemble_Seconds]s would as well
but @{WarEnsemble}s should work
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Fri Feb 11, 2005 10:25 pm   
 
Ah, yeah your right Dharkael. I dont know why that looked funny when I first read it. I could not initially find any reference to it in any of the help files even though I knew it was there somewhere... Rolling Eyes
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Feb 11, 2005 10:40 pm   
 
The syntax is referenced briefly in the Variables page, and I know it is describe in more detail in one of the advanced pages, but I can't recall which. I will make sure to add more information about it in the main variable page and may just add a whole Grouping page that explains the use of delimeters. Actually I think I already did some of this, just haven't updated the online reference or uploaded a new help. It has been a while since I really had time to work on the help.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: Sat Feb 12, 2005 9:28 pm   
 
Dharkael wrote:
@{SeeInvisible_Minutes}m
Works.
Got this after all. Thanks for help.
Code:
#VA (SeeMagic) {0} {0} {SeeMagic}
#CO bold
#IF (@SeeMagic_Caster="me") {#SUB {You are no longer sensitive to magical things. ~(%if( 0<@SeeMagic_Minutes, @{SeeMagic_Minutes}m , "") %if( 0<@SeeMagic_Seconds, @{SeeMagic_Seconds}s, "")~)}} {party say emote is no longer sensitive to magical things. ~(@SeeMagic_Caster's See Magic lasted: %if( 0<@SeeMagic_Minutes, @{SeeMagic_Minutes}m , "") %if( 0<@SeeMagic_Seconds, @{SeeMagic_Seconds}s, "")~)}
#T- "SeeMagic Alarm"
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Sat Feb 12, 2005 11:48 pm   
 
Yer welcome.
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