|
thalor42 Beginner
Joined: 15 Nov 2004 Posts: 18
|
Posted: 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. |
|
|
|
Orang Apprentice
Joined: 22 Jul 2004 Posts: 118 Location: USA
|
Posted: 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 |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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. |
|
|
|
thalor42 Beginner
Joined: 15 Nov 2004 Posts: 18
|
Posted: Thu Jul 07, 2005 7:30 pm |
I cant tweak it to work for me.....looked good though.
|
|
|
|
Orang Apprentice
Joined: 22 Jul 2004 Posts: 118 Location: USA
|
Posted: 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? |
|
|
|
|
|