Friday, September 9, 2011

Hey. So right now i'm working on my character creator part.
If you remember there was a text field that said serial and in it said random.

Well it's now a button and i'm working on the random part.
Below is the format it will take.
"NNNNN/CCNC/823#C of star"

N stands for number, C stands for Character/char/letter, the 823# i have no clue about and the last C stands for the first letter of the planet your from. At least thats the plan. Right now my random Number and char generator is spiting out
98553
w
u
f
4

Now i believe that 98553 is really 9 8553 but the number from my last result got added in.
The next thing is that it should be giving me 2 char then a number followed by another char.
I don't know why it's giving all the char then the number.

EDIT

Found the reason and i'm about to fix it. So what's happening is that the loop i was using starts at 0 not 1 and it stops at 3. I have a IF statement that says at 3 print number. Anyways my math was off because of this but i'm about to fix it.

EDIT
New result are in
5393
H 1
g 2
3 3
T 4

The number next to the Hg3T are just saying where in the loop they are. Now just a little moving and deleting and i can stop working on this.

No comments:

Post a Comment