How-to

Make a number tag with a maximum

Keep a number, such as coins or health, from going above or below a limit.

Before you start

Steps

  1. In the navigator, click Data › Value tags, then click the tag. Its Tag Type is Number.

  2. Under Minimum and Maximum, click the Maximum box, type the highest the tag can go, such as 10, and press Enter.

  3. To keep it from going too low, do the same in the Minimum box.

    A number tag's settings: Tag Type Number, Default Value, and Minimum and Maximum with Maximum 10

Check it worked

The box keeps the number. Play-test with logic that goes past it: the tag stops at the limit. With Coins at a maximum of 10 and a line Adventure → Tag 'Coins' += '15', a line showing the tag reads "You have 10 coins."

Good to know

  • A blank box means no limit.
  • The limits hold on anything holding the tag. Logic can change them for one holder: the tag's line in the logic editor offers Set Maximum, Change Maximum and Set to Maximum, and the same for the minimum.
  • Default Value is can start the tag at The Maximum or The Minimum instead of Its own value.

See also

Checked against main 9bb38dc, 2026-12-03Report a problem with this page