ID:261285
 
I need help in how to make nubers in millions come up and not e+007 and stuff, can any one help?

Thanks.
Look up num2text in the reference.
In response to Nadrew
Nadrew wrote:
Look up num2text in the reference.


i read it and where would i input this? near the stat?

num2text(N,SigFig=8)
Super saiyan3 wrote:
I need help in how to make nubers in millions come up and not e+007 and stuff, can any one help?

Yeah. Don't make a stupid DBZ game where you have stats that go that high. That means no "pbags" either.

Take that advice, and we'll both have helped the entire BYOND community.

Lummox JR
In response to Lummox JR
Lummox, it is for my WW2 game that will be for ammuniton and Enemiy soldiers, so can you tell me what needs to be input and where?
In response to Super saiyan3
In which case, you can still make a change:

stat("[enemy_ammo] boxes of ammunition. (There are 500 bullets in a box!")

That way, you can divide your ammo by 500 and not have to worry about millions.
In response to Lord of Water
i already have that in the sniper rifle and hand grenades but for the handgun i need about 1.5 million bullets (they only do liitle damage)

thanks
In response to Super saiyan3
You might considering changing

123,456,789

to

123,456.789

for example, which converts the millions into hundreds.

Then, when you display it, use [number * 100] or whatever works, then you won't have that problem, I think. (Never tried this)

Oh yeah, and change your key name, you'll get more help that way.
In response to Foomer
no, the bullets are collected from the dead soliers too so i can't have them starting in the millions. Foomer thanks for the advice but as a DBZ fan i am proud of my name.
In response to Super saiyan3
But since most of us around here think dbz sucks we are more reluctant to help people with dbz type names.
In response to Nadrew
I am sorry you feel like that but this is not for a DBZ game! it is for a WW2 stlye game.
In response to Super saiyan3
Stealing the names for your key is like stealing the names for a dbz game.
In response to Super saiyan3
We're not talking about dbz games, we're talking about your name, which suggests that because you're named the way you are, you'll be inclined to make the same dbz crap that is oozing all over the hub as it is.

If your name were something more respectable (In Our Opinions) then we'd envision your game as more respectable, and thereby be more inclined to help.
In response to Super saiyan3
You TOTALLY missed the point of what I was saying...
In response to Nadrew
Then i am sorry!

All i wanted was a little help in adding for ammuntion in the millions.
In response to Super saiyan3
Super saiyan3 wrote:
Then i am sorry!

All i wanted was a little help in adding for ammuntion in the millions.

You need to display the result of num2text() in a text output.

[num2text(blah, 8)]

And trust me, that won't work... if you don't know where to put it so it does, I suggest you read up on a little bit of things.

Generally, what you're doing is replacing

[num]

with

[num2text(num, 8)]


No more hints.