Herbs on Nexus

by Gandal

Back to Mechanic's Corner.

Gandal2006-12-20 21:43:35
Soo....yeah. My attempted aliases fail, except for things that harvest 30 times in a row, for example. Help?

AND DON'T SAY GET ZMUD OR MUSHCLIENT. angry.gif Please. tongue.gif
Daganev2006-12-20 21:45:47
Post what you have tried so far and I can try to help you.

The trick is to use variables to keep track of "states", because Nexus sometimes will lag on itself, being Java and all. And then only doing something if that state is set to true.
Gandal2006-12-20 21:53:22
Trigger: An arnica bud (arnica) {*} {d:arnica} left. {>}
Group: default
Script: #math arnica $arnica - 15

Variable: arnica
Group: default
Value: (none)

Alias: herb
Group: default
Script: #set herb $1

Alias: ph
Group: default
Script: pick $herb

Variable: herb
Group: default
Value: arnica (for now, I was experimenting with my herb alias)

Any more things/suggestions? I want an alias that harvests down to 15.
Daganev2006-12-20 22:05:25
in Alias PH change it to...

Alias: ph
Group: default
Script: pick $herb
#ADD $herb -1 (I think that should set the variable of the name of the herb to -1 whatever it is.) so now arnica instead of being 30 would be 29


Trigger: You have recoverd balance
Group: default
Script: if $harvesting = true and $currentHerb > 0 {ph}

Alias: startHarvest
Group: default
Script: #set herb $1
#set currentHerb $($1) (not sure if that works)
Gandal2006-12-20 22:29:19
Hm, so would it stop at 15, then?
Daganev2006-12-20 22:42:28
QUOTE(Gandal @ Dec 20 2006, 02:29 PM) 364819

Hm, so would it stop at 15, then?


Yeah, if everytime you check the herb number you set it to The number minus 15, then there will always be 15 left over.
Zalandrus2006-12-20 22:51:22
When I harvested, I used a trigger thingy...perhaps I should elaborate...

If I wanted to begin harveston, I'd do 'hon' to turn on my 'harvest' group, which contained the trigger for "You have recovered balance" or some such. That trigger would just do 'harvest $herb'. Essentially, it was a loop like that...and when I wanted to stop, I would just do 'hoff'

It requires a bit more attention (cuz you have to manually stop), but I found it a relief.
Gandal2006-12-21 02:02:35
Hm, it's not working. Format and stuff right? Also, need help with the new variables and such wacko.gif

EDIT: I think the problem has to do with recognizing number of plants at PLANTS.
lydin2007-01-03 05:25:17
This works, and requires only the PLANTS command to start it:

CODE
Trigger
You reach down and carefully harvest

Script:#math number $number -1


Trigger
You have recovered balance on all limbs.

Script:
#IF $number>0 {harvest $herb}
#IF $number=0 {inr all $herb
#set number -1
plants}

Alias - hh
#set number $1
#set herb $2
harvest $2

Trigger
A plug of coltsfoot (coltsfoot)              {d} left.

Script
#IF ($1>8 and $number=-1) {
#set herb coltsfoot
#math number $1-8
harvest coltsfoot
}

(etc. need a trigger for each herb because nexus doesn't like whitespace in wilcards, unless there's a way to do it that I can't find in 10 minutes of trying. Boo nexus. They're easy to make if you highlight, right click, and select "make trigger" and then ctl-v in the script and change the herb name.)


Then just PLANTS and off you go harvesting everything in the room down to 8. You can even have a key for it. It's legal so long as you don't have it harvest multiple rooms without input.
Krellan2007-01-03 20:34:05
hrm i just did something simple. I use a variable, then I set the variable to the herb on harvesting. I've got a trigger for the you have recovered balance, to do this alias harv
alias harv is basicaly harvest $herb and plants
then i have one more trigger that is (blankspace here)5 left. or how ever many left and then that does inr all herb inr all spices #groupoff herbs