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


Joined: 13 Dec 2001
Posts: 10
Location: USA

PostPosted: Thu Dec 20, 2001 12:13 am   

Help with a simple trigger
 
Goal is to make it give me the message healthy when the appraised person is healthy.
Here's what I've got so far...

tobehealed = @soontobehealed
appraise @tobehealed
#trig {You take a quick appraisal of @tobehealed and find that {he|she} has no apparent {injuries|wounds}.} {#mess {healthy}}

Prob is... when I appraise a healthy person, it just shows the appraisal, not a message.
Here's a cut/paste example of what it looks like when I appraise a healthy person:

You take a quick appraisal of Syo and find that he has no apparent injuries.

Can someone tell me what I'm doing wrong?
Reply with quote
Crymson4
Novice


Joined: 20 Nov 2001
Posts: 35
Location: USA

PostPosted: Thu Dec 20, 2001 12:45 am   
 
Quote

**
tobehealed = @soontobehealed
appraise @tobehealed
#trig {You take a quick appraisal of @tobehealed and find that {he|she} has no apparent {injuries|wounds}.} {#mess {healthy}}
**

Well, there are a few things wrong with this.

First, you need to declare tobehealed as a variable. Second, what is soontobehealed?
Third, what is the command that is making you do said action? There doesn't seem to be anything to make you appraise the char.
It seems to me, that you want it to just pull the char name off the MUD somewhere, but I'm not sure where. Sounds like you'd need to type their name either way, unless you were playing a diff char and want this for bot purposes only.

The way I would do this is-

#TRIGGER {%w says 'Appraise Syo' (or, for global, use %w again)}
{#VAR Tobehealed Syo (or, for global %2)
appraise Syo (%2)}
Then do the following
#TRIGGER {You take a quick appraisal of @Tobehealed and find that {he|she} has no apparent {injuries|wounds}.} {say Healthy}

Keep in mind, this will only work if they are in pefect health.

If you want a bot for healing purposes, you may want to set something up like this:

Make a trigger for %w says 'Appraise %w.'
In which you have
Appraise %2

Then make a 2nd trigger (like above) for

You take a quick appraisal of %w and find that %w has no apparent %w

For which the commands would be
say %1 is healthy

What this will accomplish, is when you appraise said character, if they have no wounds, your cleric/healer/whatever will say that the char is healthy.

Then, since I'm sure the text is different for having wounds/injuries make another trig that says

You take a quick appraisal of %w and that %w has %w

This will fire if it says several wounds, many injuries or whatever (it doesn't matter, since they aren't in perfect health)

It's commands should be
cast heal (or whatever spell) %1
appraise %1

Since you will then reappraise, you will keep healing until the character has full health.

Keep in mind, you will have to say which character you want to appraise.

A lot of triggers I know, but hey, the price we pay for convienence.

-=Crymson

Reality is the effect of alcohol deficiency
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Dec 20, 2001 8:12 pm   
 
You only need to create the trigger once, it should NOT be part of an alias.

#TR {has no apparent {injuries|wounds}} {#MES healthy}

LightBulb
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