Non-threaded

Forums » Newbie Central » Read Thread

Introduce yourself and get to know the community.

Hi, I got a question

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

Hi, I got a question

2 years 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

2 years ago
What kind of limit?

Hi, I got a question

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

Hi, I got a question

2 years ago
Check out the Help article called Advanced Item Manipulation.