i trying to make the code which when u defeat a player like 10 times and then u win a characters.
Can u help me please thank u very much just an example
Aug 30 2012, 11:36 am
|
|
what do you mean defeat a player like 10 times and then you win characters?
|
Exactly as he said, he probably wants players to be able to unlock new characters, you could just have a kill variable and check that.
~Deathscyth |
I think they mean, you fight the same person 10 times and win, you unlock them as a playable char.
|
mob/var/kills=0 mob/var/list/kills=new() Sorry, this is just something quick I put together to give an example of both ways to do this. It is not intended to be used as a guide-line, but only as a example to base yourself off of. This is not the best way to go about it and requires modification in order to function properly. |
Not sure how well something like this would work, just thought it might but I don't have time to test. I'll put it here just so you can get a general feel for the idea though:
mob Hope this helps in some way. |
I made a a map as a selection characters, example ( Luffy,Roronoa Zoro,Lucci)ok when you click one of them it bring it to you to the next map as the icon. Now you are facing another player or players is like PVP, when u defeat him like 10 times you unlock a new characters which it doesnt show u before in the selection characters
|
And my problem is how to make a code, when u defeat him ten times it give it to u a new character
|
mob //if you dont know what this is go read the guide again do not just copy this and put it straight into DM make sure you read it and understand it or you will just be coming back also i tried to space it out so it will be less hard to read :) and finally i just wrote this up in like 5 minutes, maybe 7 because of the time it took me to write the comments, expect errors |
Thanks u so much it help me a lot :) this example i made one as well but it keep say to me undefined var and undefined proc which i already put...
|
I made a code, studied from your but i found out ur code have problems : mob: undefined var, derp: undefined var, who kills undefined var, who.avalible_players. undefined var, derpette:undefined proc, usr.avalible_players: undefined var Can u help on this ?
|
In response to Beppinoman
|
|
Don't EVER copy/paste code, what he gave you was an example code and wont work.
|
You don't seem to even understand how the indentation in DM works or how variable definitions work, you need to learn the basics before trying to make a full fledged game my friend.
|
Lol, touche. Not to pick on you specifically, we get a lot of help requests here which are basically "can you do the programming for a game feature for me?" requests. It is one thing to ask for help debugging or optimizing existing code, or for general ideas on where to start or an approach, but to code an entire component of a game in a modular way at the request of people is not really the point of the forum.
|