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
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Wed Sep 01, 2004 3:24 pm   

Basic Trigger Question
 
I am really having a brain farm when it comes to this.
I am trying to count the number of pieces of wood using one trigger.
The difference is when there is only one piece of wood it shows this:
A dry piece of wood is lying on the ground here.
And when there is more than one they show the number of pieces in parantheis
A dry piece of wood is lying on the ground here. (x11)

Anybody have an idea. Just can't think right now.
_________________
Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Sep 01, 2004 11:41 pm   
 
Sure. Do it the easy way with two triggers.
#TR {A dry piece of wood is lying on the ground here.} {#ADD wood 1}
#TR {A dry piece of wood is lying on the ground here. ~(x(%d)~)} {#ADD wood %eval( %1 - 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
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