how do I get the value of a body of a message, or the value of all the messages that came in on that logic tic added up? this is the code I have so far.
@sevi it would have been a triple post because last night i forgot that i had less then 10 posts and i was like were is my thread at… then i posted it again and didn’t ignore the popup so i made 10 posts and reposted the thread i figured that whoever was going to approve it might notice that i had already reposted it after i got 10 posts but that didn’t happen because all they did was approve one and delete the other extra one.
Sorry for double posting I was just being impatient.
@monster
exptnl = experience points to the next level and expcur = current experience points
that is just because I saw someone complain that you cannot just put^2 to square stuff or apply powers other then 2, but if there is some better way to apply powers to variables then please tell me.
and the reason I am using this for the exp curve is because I am making a 3d version of a 2d game. I will be asking for help with modeling after I get a decent amount of it done.
Anyways thanks it works for a single message now. I just need to make it get the value of all the bodies added up. maybe use
@monster sorry I am to lazy to change the code now. to make it easy to read. I know what everything means I am just throwing together the first part of the game to get as much done as fast as I can, because I have not done any coding before just used logic bricks.
I plan on getting everything that I need to work working. then reworking it all into module format and optimizing it. I will be combining a lot of the individual scripts that I end up with too I just want to get a Prof of concept, before I start on the details…
and after I get the game to a playable state then the real work begins (this is when i would start asking for help from modelers)… there are thousands of different equipments and thousands of different monsters to make and like a few hundred skills to add… as well as over 50 boss type monsters.
oh i forgot this is a script that when the exp msg is sent to the player adds the exp. on monster death have them send a message with their exp property as the body if anyone else is making a game with exp and levels then this might be useful to you and you can do whatever you want with my messy code.