View Full Version : question for new hutning script

01-28-2004, 04:26 PM
Ok so im making a hunting script that uses ambushing, and 2 ranged weapon types (crossbow, comp bow)

The Only Problem I have so far is that with scripts, you want there to be no variables that could "hang" the script.

The one I have is amo for the bows.

what it comes down to, is what is the command to look up my "saved" item


im hunting

I come into a room, there is only 1 creature.

Option 1, hide and ambush (would work fine, but since there is only 1 creature, i want to use my bow)

Option 2, bow

So Im using the bow, simple match to look in my quiver and see if there is amo in there, if there is, great.

BUT what if I ran out of amo? nothing in my quiver... so I save the variable: NoMoreAmo

Now I need to have my script check my saved variable once I get back to town, and if its NoMoreAmo, I need it to go buy some (no big deal) and then save my variable to IGotsTheGoods

so ya basically all I want is the command to lookup the saved command.


-Varsus (I rule therefore Im better)

01-28-2004, 04:29 PM
Well, not only did I not understand that, I can safely say the solution to your problems is to create your own scripting engine.

01-28-2004, 04:38 PM
I am working on an engine actually but it is not even close to done, if anyone wants to help speed it up, feel free to talk to jamus and tell him to "give varsus what he wants" and he will know what your talking about.

-Varsus (billing probs suck)

01-28-2004, 07:03 PM
Here's your solution: zMUD.

I paid $25 to register it about 7 years ago, and it's been golden.

01-28-2004, 07:05 PM
I'd rather code a scripting engine than pay $25.

01-28-2004, 07:11 PM
Zmud = Excellent. I downloaded a trial last night, and while it isn't as good looking as the Wizard or any of the other frontends, it does a great job for customizable macro's and scripts. Now only if I was good at the scripting side of it, I might pay.

01-28-2004, 07:13 PM
your best bet would not to use saves but a crapload and a half of matches.

for the 1/2 critter scenerio:

put look
match bowhunt critter.
match ambush critter,

for the needing more arrows at the end of the hunt, your best bet is to just add a section at the end of each hunt:

put look in my quiver
match emptyquiver It appears empty.
match rest you see a bundle of wooden arrows.

the problem with the saves is that you can only have one saved variable at a time(i think). I cant remember if its variables or counters, or both, right now. But yea, matches are your best bet.

01-29-2004, 11:57 PM
I only need 1 save, it currently will check the ground after clearing the room and grab the old bolts and put them back in the quiver, but critters will run off with my bolts if they dun die in the room I search em in, at this point im just going to do the match at the end of the script with the looking in the quiver, but I don't want to have to do it that way, I want it to run so that the minute Im out of bolts, it tells the script to NEVER go to the ranged attack mode again, untill It changes the save, that way Im not having it "look at my crossbow" and matching if its loaded or not, or looking in my quiver to see if there are bolts in it every time it wants to think about what weapon to use to kill a creature.

but ya