|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
|
Last edited by BlackSmith on Fri Feb 11, 2005 2:34 pm; edited 1 time in total |
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: Fri Feb 11, 2005 1:31 pm |
tried with @{WarEnsemble_Seconds}s ?
|
|
|
|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: 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. |
|
|
|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: 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. |
|
|
|
DeathDealer Adept
Joined: 20 Jul 2004 Posts: 268
|
Posted: Fri Feb 11, 2005 2:49 pm |
@WarEnsemble_Seconds"s"
works for me. |
|
_________________
|
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: 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. |
|
|
|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: 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} |
|
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: 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." |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: 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} |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: 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." |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: 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...
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
BlackSmith Apprentice
Joined: 08 Dec 2002 Posts: 152
|
Posted: 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" |
|
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: Sat Feb 12, 2005 11:48 pm |
Yer welcome.
|
|
|
|
|
|