Castle
play292
6
4 Comments
Next up
That Ones Me,
Reply
function onCreate() prefix = "$" -- Replace the "Number:" with your prefix t = my.text var = deck.variables end function onUpdate(dt) local abv = var.money or 0 -- Replace the "number" with your variable in card if abv < 1000 then t.content = prefix .. abv elseif abv < 1e6 then t.content = prefix .. string.format("%.2fK", abv / 1e3) elseif abv < 1e9 then t.content = prefix .. string.format("%.2fM", abv / 1e6) elseif abv < 1e12 then t.content = prefix .. string.format("%.2fB", abv / 1e9) elseif abv < 1e15 then t.content = prefix .. string.format("%.2fT", abv / 1e12) elseif abv < 1e18 then t.content = prefix .. string.format("%.2fQa", abv / 1e15) elseif abv < 1e21 then t.content = prefix .. string.format("%.2fQi", abv / 1e18) elseif abv < 1e24 then t.content = prefix .. string.format("%.2fSx", abv / 1e21) elseif abv < 1e27 then t.content = prefix .. string.format("%.2fSp", abv / 1e24) end end function onMessage(message,
Reply
x2.5=0.0001 rebirths
Reply
Gin Gan Gooly Goly Oly Water
Reply