ID:164565
 
How do I show a list as a text if it only has numbers in it. Or is there a better way to compile a bunch of numbers into a list or other format then display them all at once.
You might want to look "num2text" and "text2num". If you type those in the search field in byond forum. You should be able to see some good examples or look in DM Guide or... Type it in Dream Maker and press F1. I typed this incase no one replys with an example anytime soon. This should get you started. Good Luck.

SSDave
In response to Ssdave
That would be kinda useless unless he loops through the list.. he may also want to look up "list2params" as well
In response to GhostAnime
Well I have been trying text2num and num2text and I also have been trying to list threw list2params but i keep getting 1234&4321 . The format I need is to be just 12344321 no spaces.

Here is how it starts.
mob/var/numgen=new/list

mob
proc
numbers()
gen_numbers
var/num=0
if(timesgenerated>5)
usr<<text2params(numgen)//but i need to display with out the & or to display the list.
return
timegenerated++
num=rand(1,1000)
usr.numgen+=num
goto gen_numbers



Basically I need to know a good way to do that.
In response to Smokymcpot
Smokymcpot wrote:
Here is how it starts.

Oh dear. Horrible use of goto >.>

mob/var/numgen
mob/proc/numbers()
for(var/i = 1, i <= 5, i++)
numgen += "[rand(1,1000)]"
src << numgen