A Few Questions to anyone who may know.

METALGod32
11 May 2005, 09:50
Hey i have a few questions to anyone who may know the answers.


First off my game is multiplayer.

Question 1: How would i go abouts by making it where, if one player Looks at another, they'll see that players stats?


can't think of the other questions i had right now but i'll post here when i do.


Thanks in advance :)

francisstokes
11 May 2005, 14:33
Not sure if u can do that, since the players vars would all be local.

Cryophile
11 May 2005, 15:41
Why not make an object for each player (name being their userid) and assign properties (the stats) to that object? Then you can get the stats for that player through the object since the object name is their userid.

Alex
11 May 2005, 17:52
Players have an object already... it's called player1, player2 etc.

You could set properties for that player object. Then when another player looks at them, you just need to read the properties of the object the player is looking at. Simple...

Cryophile
11 May 2005, 21:03
I didn't realize that there were already player objects. I've never actually attempted a multiplayer game yet. So... would it have to be player%userid% or is there an easier way?

Alex
11 May 2005, 21:48
Is player%userid% not easy enough??

METALGod32
11 May 2005, 23:39
Thats easy for me, i'll go with that...LOL :)

Cryophile
12 May 2005, 15:39
No, no... it's quite easy. I was just wondering if there was a built in string variable or something since you seem to have a lot of those :lol: