|
|
|
 |
Posted 2004-12-22, 07:03 AM
in reply to Draco2003's post "Cheap Input Character name Idea"
|
 |
 |
 |
Impossible in RM2k3. There's no way to convert that number into letters at any point without having 26*26*26*26*26 = 11,881,376 branches (and that's for a flat 5-letter name), since you can't add onto a name, you can only set it all at once. If you could do something like "HeroName = HeroName + "A"" that would work.. obviously, a language like RMXP's Ruby would allow this easily, but there will still be a bit of coding, and you'd... have to know Ruby.
Consider these simplified branches...
Code:
<>if var[0001] = 1
<>if var[0002] = 1
<>if var[0003] = 1
<>if var[0004] = 1
<>if var[0005] = 1
<>Set first character's name to "AAAAA"
:end
<>if var[0005] = 2
<>Set first character's name to "AAAAB"
:end
<>if var[0005] = 3
<>Set first character's name to "AAAAC"
:end
<>if var[0005] = 4
<>Set first character's name to "AAAAD"
:end
<>if var[0005] = 5
<>Set first character's name to "AAAAE"
:end
<>Comment: .........
<>if var[0005] = 26
<>Set first character's name to "AAAAZ"
:end
:end
<>if var[0004] = 2
<>if var[0005] = 1
<>Set first character's name to "AAABA"
:end
<>if var[0005] = 2
<>Set first character's name to "AAABB"
:end
<>if var[0005] = 3
<>Set first character's name to "AAABC"
:end
<>if var[0005] = 4
<>Set first character's name to "AAABD"
:end
<>if var[0005] = 5
<>Set first character's name to "AAABE"
:end
<>Comment: .........
<>if var[0005] = 26
<>Set first character's name to "AAABZ"
:end
:end
:end
:end
:end |
Yeah, good luck with that
6 letter names = 308,915,776 branches
You.. probably wouldn't want many more.
Last edited by BlueCube; 2004-12-22 at 07:06 AM.
|
 |
 |
 |
|
|
|
|
|
|
|