How to handle strings in an MP game.
GameBoy
30 Nov 2003, 19:08ok, if i make a normal string, say... #class# and the player chooses a class, and then that class, ranger for example is entered into the #class# variable, that means that it will change the #class# variable for everybody?
So, how do i make it so it only changes that string for that specific player?
do i need like... #class[userid]# or something?
also, i forgot how to display the PlayerNAME in the game, i know how to display the player ID, just not the name of the player lol
So, how do i make it so it only changes that string for that specific player?
do i need like... #class[userid]# or something?
also, i forgot how to display the PlayerNAME in the game, i know how to display the player ID, just not the name of the player lol
Alex
30 Nov 2003, 21:38Got it it one. #class[userid]# is the way to go.
And (if you check the documentation...) $name(user id or player object name)$ returns the player name.
And (if you check the documentation...) $name(user id or player object name)$ returns the player name.
GameBoy
30 Nov 2003, 21:50yeah i looked in the Arena code and its $name(%userid%)$ to display the name lol
paul_one
01 Dec 2003, 04:25Could I ask if you wanted ANOTHER players' ID then what code would that be?
Alex
01 Dec 2003, 18:06If you want to convert another player's name to their userid then use the $id(player name)$ function. It's all in the manual 
paul_one
07 Dec 2003, 00:20Yeah - sorry Alex...
I just couldn't be bothered to read the documentation on Qnet.
When I get the time I'll look into it but I'm just so busy nowadays with work and sleeping - plus there's the added bonus of crimbo shopping...
EDIT:
Anyway, thanks and it's now added to my memory banks.... Where it will last for it's 5 second luxury stay.
I just couldn't be bothered to read the documentation on Qnet.
When I get the time I'll look into it but I'm just so busy nowadays with work and sleeping - plus there's the added bonus of crimbo shopping...
EDIT:
Anyway, thanks and it's now added to my memory banks.... Where it will last for it's 5 second luxury stay.