Varsus
01-28-2004, 05: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
like
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.
Thanks
-Varsus (I rule therefore Im better)
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
like
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.
Thanks
-Varsus (I rule therefore Im better)