|
clash Newbie
Joined: 14 Dec 2001 Posts: 3
|
Posted: 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!!! |
|
|
|
clash Newbie
Joined: 14 Dec 2001 Posts: 3
|
Posted: 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.
|
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: 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 |
|
|
|
Acaila Apprentice
Joined: 30 Aug 2001 Posts: 187 Location: Netherlands
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|