=========================================
Number System (for 6/27 version or newer)
=========================================
Created by SorrowEdge

;---------------------------------------------------------------------------
This is for displaying numbers in mugen. Basically mathematical equations. 
;---------------------------------------------------------------------------

First of all, we need the individual digits, lets say we have a Var(0) that 
has the value of 359.

type = VarRangeSet
trigger1 = Time = 0
value = 0 ; Reset the Vars that we need
first = 1
last = 3

type = VarSet
trigger1 = Time = 0 && Var(0) > 99 ; Make sure Var(0) has 3 digits
Var(1) = Floor(Var(0) / 100) ; Take the integer part of the hundredth digit.

Var(1) now contains the first digit of our number, 3.

type = VarSet
trigger1 = Time = 0 && Var(0) > 9 ; make sure Var(0) has 2 
digits
Var(2) = Floor(Var(0) / 10) - (Var(1) * 10) ; Take the first 2 digits and subtract the first.

Var(2) now contains the 2nd, 5.

type = VarSet
trigger1 = Time = 0
Var(3) = Var(0) - (Var(1) * 100) - (Var(2) * 10) ; Subtract the first and 2nd digits.

Var(3) now has the last digit, 9.

Now that we have all 3 digits, we can display them. First, make sure you 
have the number sprites in the sff. Second, make sure the AIR group numbers 
are proportional to the numbers, ie. if the sprite "0" has AIR group number 
6000 or 7000 or 8920, then the sprite "8" would be 6008 or 7008 or 8928, 
respectively. Now:

type = Explod
trigger1 = (whatever)
anim = (AIR group number of sprite "0") + Var(1)
postype = (whatever)
pos = (x), (y) ; Make sure you remember this position

type = Explod
trigger1 = (whatever)
anim = (AIR group number of sprite "0") + Var(2)
postype = (whatever)
pos = (x) + (width of sprite), (y) ; display after the 1st 
digit

type = Explod
trigger1 = (whatever)
anim = (AIR group number of sprite "0") + Var(3)
postype = (whatever)
pos = (x) + (width of sprite) + (width of sprite), (y) ; last position

