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


Joined: 15 Nov 2004
Posts: 18

PostPosted: Thu Jul 07, 2005 6:24 pm   

Trigger help
 
If I wanted to track a certain object in inventory....in a gauge (named topaz/variable topaz)....how would I distiguish between 1 many and none in my inventory?

example:
(one)

a chipped topaz

(many)

( 3) a chipped topaz

(none)


You get the idea.....

Thanks in advance.
Reply with quote
Orang
Apprentice


Joined: 22 Jul 2004
Posts: 118
Location: USA

PostPosted: Thu Jul 07, 2005 7:04 pm   
 
try this:

#TRIGGER {~( (%d)~) a chipped topaz} {#IF (%null(%1)) {#VAR topaz 1;#ECHO Only one topaz in inventory!} {#VAR topaz %1;#ECHO %1 topazes in inventory}

has not been tested at all.. lemme know how it works

Edit: added quite a few things that i missed the first time through Shocked
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Thu Jul 07, 2005 7:29 pm   
 
^a chipped topaz

^~((%*)~) a chipped topaz

I woulda said ^~((%d)~) a chipped topaz but i'll take a guess and think that you see the info like this:
( 3)
(33)
note no space in the 2nd.
_________________
http://www.Aardwolf.com
Reply with quote
thalor42
Beginner


Joined: 15 Nov 2004
Posts: 18

PostPosted: Thu Jul 07, 2005 7:30 pm   
 
I cant tweak it to work for me.....looked good though.
Reply with quote
Orang
Apprentice


Joined: 22 Jul 2004
Posts: 118
Location: USA

PostPosted: Thu Jul 07, 2005 8:00 pm   
 
#TRIGGER {{^~( (%d)~) a chipped topaz$|^~((%d)~) a chipped topaz$|a chipped topaz}} {#IF (%null(%1)) {#VAR topaz 1;#ECHO Only one topaz in inventory!} {#VAR topaz %1;#ECHO %1 topazes in inventory}

how about that?
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