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


Joined: 28 Jul 2004
Posts: 21
Location: Canada

PostPosted: Thu Aug 05, 2004 11:57 pm   

greater then less then trigger
 
My trigger is set for board with a list of Monthly/Yearly exp
For Monthly:
Jared 360983
For Yearly:
Jared 26987234

my trigger is set up for
Jared (%n)
#if (%n < 2000000) {#var month %n} {#var year %n}

Is it some simple I am missing?
Please help!

Thanks
Jared
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Aug 06, 2004 4:25 am   
 
Yes, it's something simple. %n is used in the trigger pattern only.

(for use in settings editor)
Pattern: Jared (%n)
Value: #IF (%1 < 2000000) {#VAR month %1} {#VAR year %1}
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
Jared242004
Beginner


Joined: 28 Jul 2004
Posts: 21
Location: Canada

PostPosted: Sat Aug 07, 2004 8:44 pm   Re: greater then less then trigger
 
Actually sorry the Trigger is to act one these
Monthly/Yearly exp
For Monthly:
(%n)) Jared 360983 17 spaces in this one
For Yearly:
(%n)) Jared 26987234 18 spaces in this one

my trigger is set up for
Jared (%n)
#if (%1 < 2000000) {#var month %1} {#var year %1}
And it keeps putting the years exp in month and I change the order of value
to #if (%1 < 2000000) {#var year %1} {#var month %1}
and still puts it into month


Is it some simple I am missing?
Please help!

Thanks
Jared
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 08, 2004 6:00 am   
 
%1 is the first item in parentheses.
%n doesn't match spaces. You'll need %s for that.
#TR {Jared %s (%n)} {#IF (%1 < 2000000) {#VAR month %1} {#VAR year %1}}

Or, since you can tell by the number of spaces which variable the number should go in, just write two triggers -- one for the month with 17 spaces in the pattern and one for the year with 18 spaces.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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