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
WhoAmI
Newbie


Joined: 06 Mar 2004
Posts: 6
Location: USA

PostPosted: Mon Oct 04, 2004 8:06 am   

Script Help Please
 
I’m trying to write 2 scripts ones for moving the map dot while following people or things

>You try to follow the young male deer.
You travel a short distance south.

The second is a script to improve my automine script.

#CLASS {automine}
#TRIGGER {autmine} {#ALARM +1 {mine}}
#TRIGGER {You stop mining.} {
drop pebbles
mine
}
#CLASS 0

I want it to use the hp command that will show this.

>hp
You are physically feeling very well and mentally in full vigour.
You are extremely alert.

This “You are physically feeling very well” is how healthy I am.
This “and mentally in full vigour.” Is how much mana I have.
This “You are extremely alert.” Is how rested I am.
They have different levels like:
You are very alert.
You are alert.
You are somewhat alert.
You are slightly alert.
You are slightly weary.
You are somewhat weary.
You are weary
You are very weary.
You are extremely weary.
You are slightly tired.
And so on tell…
You are extremely exhausted.
Thin I’m too tired to do anything

After the hp command is used I want it check how rested I. If I’m weary or less I want it to stop mining rest by using the commands

Unwield shovel
Rest

Then periodically check hp to see if I am completely rested.
extremely alert

And thin use command wield shovel start mining again thin repeat.

Oh and all this is on a toggle button

Button Up
#T+ automine
mine

Button Down
#T- automine

I think that’s enough info if you need more ask.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Oct 06, 2004 5:57 am   
 
#TR {You move a short distance (%w)} {#MOVE %1}

#TR {You are {weary|very weary|extremely weary}.} {#T+ minerest;#T- automine;unwield shovel;rest}
#TR minerest {You are extremely alert} {#T+ automine;wield shovel;mine}

If you want a toggle button, just make one in the settings editor. They are very easy.
_________________
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
WhoAmI
Newbie


Joined: 06 Mar 2004
Posts: 6
Location: USA

PostPosted: Thu Oct 07, 2004 1:34 pm   
 
#TR {You move a short distance (%w)} {#MOVE %1}

It won’t work, every time I move you see (You move a short distance north.) or something similar

I only want the trigger to work when I follow something

>You try to follow the young male deer. (it needs to be triggerd by this)
You travel a short distance south. (and go in the diretion of the next line)

how do I get it to do that.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Oct 07, 2004 1:56 pm   
 
Delete your first trigger

#TR {You try to follow *.}
#COND {You move a short distance (%w)} {#MOVE %1} {within|param=1}
_________________
Zmud Support Library
Zmud Knowledge Base
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