WatchNon-threaded

Forums » Newbie Central » Read Thread

Don't know your Pages from your Links? Stuck in the editor? Find some expert help here.

Hi, I got a question

4 months ago
Hi, I'm working on a story and wondering, how do I make an item limit?

Hi, I got a question

4 months ago

I've never tested this out myself, but here's a way that might work.  If you want a limit of say, 3 items, and have 5 total in the game, you would post this in each item script:

IF $ITEMSTATE1 + $ITEMSTATE2 + $ITEMSTATE3 + $ITEMSTATE4 + $ITEMSTATE5 > 2 THEN $ITEMSTATE(whichever item it is) := 0.

Hi, I got a question

4 months ago
What kind of limit?

Hi, I got a question

4 months ago
Oh, I assumed he meant number of uses. I'm not sure now though.

Hi, I got a question

4 months ago
Check out the Help article called Advanced Item Manipulation.