hey guys
Im searchin for a lvl system where you gain exp when you destroy a mob…
I want the lvl to be stored in a database
Can u post me a link when there is already something or give me script (php, js, cs)?
Thanks ![]()
Robert
hey guys
Im searchin for a lvl system where you gain exp when you destroy a mob…
I want the lvl to be stored in a database
Can u post me a link when there is already something or give me script (php, js, cs)?
Thanks ![]()
Robert
No offense but practically all your requests are for other people to do your game for you, wanting this script or that script.
Have you tried to make your own? Tried tutorials? Done any of it yourself? Or is your game put together entirely with other people’s work? Your credits screen is going to be bigger than your game!
If you REALLY want other people’s stuff, why not offer to pay them, or buy stuff from unityprefabs?
this is not the right place to ask for scripting help. it is not very nice to ask people to just ‘give you a script’ either.
besides, xp is a simple variable and there are alot of topics about database connections already.
first yes wrong place it was a mistake…
Second: if there are so many topics, pls post them.
haha verry funny :S
Dont u think that i have already used the search?
So pla post me a link to a topic…
just do a function call for exp gain like
function ExpGain(exp:int){
expTotal+=exp
}
and cal it when you kill a monster
for leveling use a function that keeps track of what your exp goal is, i suggest using a simple math equation rather then a an array or hash table for your exp goals.
for stat tracking you’d want to use a hash table to keep track of your stats, and then use an equation to decide how they increase when you level.
At least that’s how i plan to do it when i get home tonight, and rewrite my crap version i wrote over the weekend.
It wasn’t intended to be funny.
No, I don’t.
no offence, but you sound rude and demanding. people don’t like to help if you want them to make scripts for you and you haven’t even done anything yourself.
a simple experience system is not a hard thing to do and a search for ‘php’ returns plenty of topics regarding server-side saving.
here is a very good tutorial that will teach everything you need to know about database connections with unity:
i dont want u to write my scripts
Only topics with tuts…
To the serverside highscores:
I have a script that is by bloodtiger…
You don’t want people to write you scripts, but ask for people to give you them? What’s the difference?
Anyway, you have a tutorial linked to you up there, so yay you got what you wanted, a tutorial.
what exactly are you looking for then? i don’t understand what this topic is all about if you already have a script to save variables in a database.
are you having trouble with it? are you having trouble with the experience itself? you said you want to save the experience everytime you kill a monster, what does the code look like, that you use when you kill a monster?
it is alot easier for us to help you if you give us a more detailed description of your problem and especially what you have already done. the main reason why people seem to be so unfriendly is because you are asking for the complete experience system instead of showing some specific code that you are having problems with, or simply asking for advice on how to deal with a specific problem.
The code was already given to you a few posts above, you just don’t know what to do with it. Thats what happens when you try to piece together a game using bits of other people code.
You can try to purchase “basic programming for dummies” book, best suggestion imo ![]()