Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Spliting up a Nickname
Spliting up a Nickname
2001-03-18, 5:35 PM #1
Hey there I wondering if there is such a way that you can split up a persons or bot nick name and return it ...

like

Seifer =

S E I F E R

like if we had

if(firstletter == S); speople=speople=+1;

That was just an excample to show that if you could do that you could like sort peoples names and what they start with
2001-03-19, 4:01 AM #2
I don't know(think) if a cog can handle char stuff.

But like in a way of "c" or something.

if(playerName > "s") aboveS = 1;

Just a rough try though.

------------------
http://millennium.massassi.net/ - Millennium
2001-03-19, 10:03 AM #3
I doubt it. JK doesn't have a string variable type, and only a few string functions, like print() and JkConcatSomething().
-Hell Raiser
2001-03-19, 10:41 AM #4
You could have the thing convert it into numbers. Like this:

19 5 9 6 5 18
S E I F E R

Then it could work. You could probably put in a system that converted it for you.

jh
2001-03-19, 7:49 PM #5
Yes yes but how Mr Howell ....
2001-03-19, 8:11 PM #6
Just not possible.
Unless it's something you make up, like not getting string from somewhere that you don't define.(player name, etc)

------------------
http://millennium.massassi.net/ - Millennium
2001-03-20, 2:04 AM #7
I think it's possible. You could put it in rbot-startup and put a new parameter in for the first letter of the bot's name for each bot. Then it's only a matter of making 26 if-then statements, and it's done.

I don't know about the regular mp people. Maybe make a cog that broadcasts the person's name to other cogs on the other people's comps. Then put a label on each of them, and turn them into #s. That would be harder, though, 'cause it's cross-cogging between computers.

jh

[edit]And don't call me Mr.! You don't want to know my real age, but it's not Mr.-worthy.[/edit]

[This message has been edited by Jedi Howell (edited March 20, 2001).]
2001-03-20, 2:18 AM #8
> I think it's possible. You could put it in rbot-startup and put a new parameter in for the first letter of the bot's name for each bot. Then it's only a matter of making 26 if-then statements, and it's done.

That's just because you know what name you assigned, not possible talking about something the editor don't define.

> I don't know about the regular mp people. Maybe make a cog that broadcasts the person's name to other cogs on the other people's comps. Then put a label on each of them, and turn them into #s.

How do you compare?

> That would be harder, though, 'cause it's cross-cogging between computers.

Technical stuff is not much of a worry, but if it's possible or not is a matter.

------------------
http://millennium.massassi.net/ - Millennium
2001-03-20, 2:28 AM #9
You mean compare as in tell the difference between different players? You lable the entire name like this:
_=27;


play1_letter1=1
play1_letter2=2
play1_letter3=15
play1_letter4=13
play1_letter5=9
play1_letter6=14
play1_letter7=1
play1_letter8=2
play1_letter9=12
play1_letter10=5
play1_letter11=_
play1_letter12=19
play1_letter13=14
play1_letter14=15
play1_letter15=22
play1_letter16=13
play1_letter17=1
play1_letter18=14

is the player whose name is abominable_snowman. Could be kinda hard to get an automated conversion process for names like this, but it could probably be managed.

jh
2001-03-20, 5:14 AM #10
But how do you lable an unknown name?

------------------
http://millennium.massassi.net/ - Millennium

[This message has been edited by Hideki (edited March 20, 2001).]
2001-03-20, 9:38 AM #11
If you could get the number of players, label them from 0 to whatever, then figure out which ones you could find, you could give them a number like 128 or something. Then, You could put anything that started over the number of possible keys and call that the unknown division.


jh
2001-03-20, 11:57 AM #12
It's just not possible. There is no conversion at all between letters and numbers. There is not even anyway of storing a string, let alone making any calculations or comparisons based upon it.

Raynar

------------------
... the Jedi I admire the most, met up with Darth Maul, now he's toast ...
Rbots - a project to develop a working Bot for Jedi Knight... download the latest development version here

[This message has been edited by Raynar (edited March 20, 2001).]
Pagewizard_YKS: "making your own lightsaber doesn't make you a nerd... "
Raynar - the man with a 10.75" ePenis

↑ Up to the top!