hey guys, im still stuck on my dumb old XP stuff for my FPS, and none of my questions have been answered so i come to you with 1 more question, one i think should be easily answered.
since i could not manage new script i read over and over again the ones i found here.
the closest i came was w/ this
any way, it still didnt work. so all i ask for is for someone to explain to me how to go about putting these scripts into action, because clearly im dong something WRONG
One way to accomplish what it sounds like you're trying to accomplish is to use 2 scripts. One script would apply to your character/player. That one would be like the one you linked to from the other question. It would handle how much xp the character has, how much is needed to level and what level the player currently is.
The second script would attach to each enemy. That script would hold a value for how much xp killing this particular enemy is worth (we'll say xpValue) (you'll probably want that to be an exposed variable for easy editing / balancing). When the enemy dies (where you determine the hp <= 0), you'll want to add its xpValue to the variable from the first of these two scripts (the one that tells how much xp the character has).