ID:164156
 
PLz can u tell me how do i do to create a code number for each player, in which this codes dont repeat and they will be always the same???


plz answer me, this is like a "energy code" for the players in game...
This can be easily done by using the DM Guide.
I assume you want a unique ID for each player?
In response to Flame Sage
yes, can u tell me how plz????
In response to Moskera
hey can one of you tell me how to code please
In response to Narutofan92
Narutofan92 wrote:
hey can one of you tell me how to code please
Don't hijack threads.
BOTH of you desperately need to read the DM GUIDE! It's on the left side on the menu.
In response to Flame Sage
i already read it, but i cant find it, plz tell me
In response to Moskera
to much to hard i giev up
In response to Moskera
The DM Guide gives you the keys to coding DM. Experience is the way to separate what one you want.

PS: The DM Reference has all the commands and example usage. It should help you a little.
In response to Narutofan92
You can't just give up like that.

Giving up just like that is for losers. I'm sure your not a loser, right?
In response to RedlineM203
hey, i just read everything and i didnt find it, plz just tell me plz :)
In response to Moskera
You read what? And couldn't find what?
http://www.byond.com/docs/guide/

Ok, I'll agree to help you, if you can put your question in a PROPER form.

HINT: Read section XI! http://zilal.byondhome.com/tutorials/zbt.html
In response to Moskera
You just read everything?...you mean you read the WHOLE guide in less than a day? Unlikely, plus, you would probably understand the DM language if you actually read it.
In response to Flame Sage
i didnt read it all in just 1 day, i had this question since 2 weeks ago, and like i didnt find the answer, i needed to put thi here, and my question is, how to put like a different ID code to each player?
In response to Moskera
Fine, I'll start you off.

var
playerslogged=0
mob
var
ID=0
Login()
..()
playerslogged++
ID=playerslogged


Don't copy that or your gonna get some indentation errors.
In response to RedlineM203
well, i need almost the whole code, cuz im not good at this part of the creation of the game
In response to Moskera
The guide, and tutorials, do not directly tell you how to do it but helps teaches you different useful things which, upon using the knowledge you learned, can help develope what you want.

What you want to do is define a global variable, increasing the said variable each time a character is created and assigning that number to the character, and saving/loading the said variable each time the world starts and ends.

And what Red gave you is as lucky as you can get... I mean, that is what you asked for, wasn't it? Why do you need more? You made your own character creation didn't you? You must remember that there's many ways to achieve something so what he can show you in addition is not what you want.
In response to GhostAnime
GhostAnime wrote:
The guide, and tutorials, do not directly tell you how to do it but helps teaches you different useful things which, upon using the knowledge you learned, can help develope what you want.

What you want to do is define a global variable, increasing the said variable each time a character is created and assigning that number to the character, and saving/loading the said variable each time the world starts and ends.

And what Red gave you is as lucky as you can get... I mean, that is what you asked for, wasn't it? Why do you need more? You made your own character creation didn't you? You must remember that there's many ways to achieve something so what he can show you in addition is not what you want.

He thought it wasn't all of the code (I said I would only start him off)
In response to RedlineM203
but i know that, i just dont understand how to apply that part of the manual into what i need, that is like the "player ID"
In response to Moskera
please anwer me!
In response to Moskera
IF you did read the guide, you WOULD know how to do this. All your doing is asking for code, because your obviously TOO LAZY to do it yourself. Maybe you did read the guide, but if you did, then you must have forgot everything you read in an hour.

Nobody here gives out code. If you really need an example that bad, look at what Redline has shown.
Page: 1 2