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


Joined: 14 Dec 2001
Posts: 3

PostPosted: Fri Dec 14, 2001 7:12 pm   

Change a variable multiple times in one command
 
okay, I'm having some trouble. I play this game called 'achaea' I'm sure there are other achaeans out on this board too. I'm trying to set up this system to autocure based on what I am allowed to cure at that time. Here is my alias for curing with bloodroot.

#IF (herbReady=yes) {outb bloodroot ; eat bloodroot ; herbReady=no} {#trigger {you may eat another plant} {outb bloodroot ; eat bloodroot ; herbReady=no ; #trigger {you may eat another plant} {herbReady=yes}} it doesn't work... this is the command i get when I type in 'eb' "{#trigger" - without the quotes.

I don't know very much about scripting. Somebody please help me!!!
Reply with quote
clash
Newbie


Joined: 14 Dec 2001
Posts: 3

PostPosted: Fri Dec 14, 2001 8:44 pm   
 
oops, makes I made a mistake, on all of my herbReadys those are @herbReady in my alias, still doesn't work though.
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Fri Dec 14, 2001 10:23 pm   
 
From a quick glance, it looks like you're missing a closing brace. Try adding 1 more } at the end of that trigger.

If it still gives you an error, come tell us :)

Iljhar
Reply with quote
Acaila
Apprentice


Joined: 30 Aug 2001
Posts: 187
Location: Netherlands

PostPosted: Sat Dec 15, 2001 12:04 am   
 
Shylmysten, didn't you try to make a same alias/trigger thing for Achaea? This stuff looks familiar, maybe you two can help eachother out.

If you ever got it working that is...

Acaila
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Dec 17, 2001 5:45 pm   
 
Generally speaking, you should make your triggers ahead of time rather than doing them in an alias. They should only need to be made once, the alias will be making them every time you use it.

#AL eb {#IF (@herbReady=yes) {outb bloodroot;eat bloodroot;herbReady=no} {bloodroot=1;#T+ bloodroot}}

#CLASS bloodroot
#TR {you may eat another plant} {#IF (@bloodroot=1) {outb bloodroot;eat bloodroot;herbReady=no;bloodroot=0} {herbReady=yes}}
#CLASS 0

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