Create a free account to remove all ad content.

Author Topic:  Truncating variables  (Read 187 times)

0 Members and 1 Guest are viewing this topic.

Dryym

  • Supreme Member
  • *
  • Posts: 4336
  • What's yours is mine. ~TM's Resident Master Thief~
    • View Profile
  • Xbox: dryym
Truncating variables
« on: August 10, 2016, 07:06:09 PM »
How do you truncate variables to the X decimal point for the purposes of notify commands and HUDText and such?

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Truncating variables
« Reply #1 on: August 10, 2016, 07:08:56 PM »
[varname:x]

e.g.

notify [XP = [xp:2]]