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 → GetPlayerName?
GetPlayerName?
2003-10-20, 5:03 AM #1
Hi!
Is there a COG verb where you can get the player name? Like:

If(GetPlayerName(player)=="Edward")
{
Alow him to enter his own room
}

/Edward
Edward's Cognative Hazards
2003-10-20, 5:20 AM #2
No. GetThingUserData() is about as close as your gonna get to user-applied names.


Didnt you start a similar thread a week ago?

------------------
Fight the future.
And when the moment is right, I'm gonna fly a kite.
2003-10-20, 5:39 AM #3
jkStringConcatPlayerName(player);

I know it'll return a player name, I just don't know if you can compare it against anything.

------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.
2003-10-20, 6:04 AM #4
Thats just the player name that is defined when you run JK, and it asks for a player name... Yeah, that player name. COnsidering mine are all called "sys0" and "sys1a" and the like, and Id imagine everyone else's is similar, it isnt going to do you any good.

------------------
Fight the future.
And when the moment is right, I'm gonna fly a kite.
2003-10-20, 6:43 AM #5
Yes, I had a similar topic, where I asked if I could find out about the Character name.
Now I'm wondering if I can compare the player name. I don't want people without the proper name to Barge into my JK room.
jkStringConcatPlayerName(player); just sets the player name ready to be printed on the screen.

I'll have a look at the GetThingUserData...

/Edward
Edward's Cognative Hazards
2003-10-20, 6:47 AM #6
OK, read through it...
Quote:
<font face="Verdana, Arial" size="2">DataMaster:
Returns the user data of a thing. Syntax:
userdata=GetThingUserData(thing);
</font>

traveled to Thing UserData
Quote:
<font face="Verdana, Arial" size="2">
All things have a user data assigned to them. By default it is 0. The user data was created so that the "user" could store values with a thing. It can be very useful for attaching values to players. Since the user data is often used by patches, the author recommends that level authors abstain from using the user data of common things like the player.
</font>

Absolutely hopeless...
IS THERE NO PRIVACY IN THIS GAME?

/Edward


[This message has been edited by Edward (edited October 21, 2003).]
Edward's Cognative Hazards
2003-10-20, 9:54 PM #7
Hi there [http://forums.massassi.net/html/smile.gif]

Sorry if this is stating the obvious (both to Edward and everybody) but the question has to be asked ... "why not just use a password protected game?" [http://forums.massassi.net/html/wink.gif]

[http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2003-10-21, 12:21 AM #8
Well, I want anyone to join the level, but noone may enter my room unless they're invited...

But I guess... I'll let anyone in...

/Edward
Edward's Cognative Hazards
2003-10-21, 8:15 AM #9
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Thats just the player name that is defined when you run JK, and it asks for a player name... Yeah, that player name. COnsidering mine are all called "sys0" and "sys1a" and the like, and Id imagine everyone else's is similar, it isnt going to do you any good.

</font>


GBK, no it doesn't, WTF are you talking about?

Use it in a string, it'll print the name of the player.

Like if your player was named GBK, and I used that verb, it'd return GBK.

You should know this already.

------------------
Duel Zero key count: Zero! Down to guns and forces. Expect a release soon.
2003-10-21, 10:56 AM #10
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Checksum:
GBK, no it doesn't, WTF are you talking about?</font>


Um . . . disreguard that post . . I was . . umm . . wacked out on something . . I dont even remember making it . . .

------------------
Fight the future.
And when the moment is right, I'm gonna fly a kite.
2003-10-21, 11:44 AM #11
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Um . . . disreguard that post . . I was . . umm . . wacked out on something . . I dont even remember making it . . .

</font>


weed?
Edward's Cognative Hazards
2003-10-21, 4:13 PM #12
Yeah. Weed. Just weed.

------------------
Fight the future.
And when the moment is right, I'm gonna fly a kite.
2003-10-21, 9:59 PM #13
And GBK's one of our forum moderators? And one of our community's finest coggers? Leading by an example I see... (although I refuse to pass judgement on a fellow cogger, so for now GBK, you're absolved...) [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

PS: GBK's new sig: "Leading by example - blame weed. Just weed." [http://forums.massassi.net/html/wink.gif]

PPS: Beware the side effects of said drug [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/redface.gif]

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||

↑ Up to the top!