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...
ID:164156
![]() Jul 13 2007, 11:07 am
|
|
Narutofan92 wrote:
hey can one of you tell me how to code pleaseDon't hijack threads. BOTH of you desperately need to read the DM GUIDE! It's on the left side on the menu. |
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. |
You can't just give up like that.
Giving up just like that is for losers. I'm sure your not a loser, right? |
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 |
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.
|
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?
|
Fine, I'll start you off.
var Don't copy that or your gonna get some indentation errors. |
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. |
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. He thought it wasn't all of the code (I said I would only start him off) |
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"
|
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. |
I assume you want a unique ID for each player?