ID:266726
Jun 5 2002, 8:34 am
|
|
Ok, I'm a little confused on how to make numbers on the side of an item you have more then one of instead of it showing two of the same things.
|
Jun 5 2002, 8:35 am
|
|
Spuzzum has a good grouping demo.
|
In response to Sariat
|
|
Thanks it worked-sort of. There is a small problem though. I wanted to give the user 5 arrows instead it gave him 20. Do you know why.
|
In response to Strange Kidd
|
|
Because you used the number 20 instead of 5. Try changing it to that. That, or you gave them 5 arrows 4 times. Make sure your numbers are correct.
|
In response to Garthor
|
|
Ok, that problem was fixed now I have one more. I have a var called arrows. But when I pick up an arrow it dosn't add to the var. Or subtract when I drop it.
|
In response to Strange Kidd
|
|
obj/arrow/verb
Get() set src in oview(1) usr.Arrows += 5 del(src) Drop() usr.Arrows -= 5 new obj/arrow(usr.loc) Ok, so that wouldn't work, but you get the idea, I hope. |
In response to Garthor
|
|
No there is a problem with that because what if the user pics up more then 5...
|
In response to Strange Kidd
|
|
The problem is that the number of arrows is stored as a var, and I'm applying the drop verb to the object arrows, which never goes into your contents, unless if you keep an arrow in your inventory.
|
In response to Strange Kidd
|
|
It would just keep on adding 5! There is no problem with it. Now, here is a complete system for picking up and dropping any number of arrows:
arrow |