TheRexion Posted August 31, 2011 Author Share Posted August 31, 2011 I hate having to ask for help again, but this really just isn't working. I'm trying to add a Player Stat called Health, to have a different way to determine the player's HP. It only changes when the Player level's, and they can't manually add to it. But for some reason it always gives me–[This](http://dl.dropbox.com/u/25798955/Capture12.PNG)–and I'm not sure what I'm doing incorrectly.I have this in both places (server and client):```Public Enum Stats Strength = 1 Endurance Intelligence Agility Willpower Health ' Make sure Stat_Count is below everything else Stat_CountEnd Enum```I checked through the source, trying to find any other place where I may need to define the 6th Stat, but I get nothing… Any help would be appreciated. Link to comment Share on other sites More sharing options...
Anonymious Posted September 2, 2011 Share Posted September 2, 2011 @Ecclestio:> I hate having to ask for help again, but this really just isn't working. I'm trying to add a Player Stat called Health, to have a different way to determine the player's HP. It only changes when the Player level's, and they can't manually add to it. But for some reason it always gives me–[This](http://dl.dropbox.com/u/25798955/Capture12.PNG)–and I'm not sure what I'm doing incorrectly.> > I have this in both places (server and client):> ```> Public Enum Stats> Strength = 1> Endurance> Intelligence> Agility> Willpower> Health> ' Make sure Stat_Count is below everything else> Stat_Count> End Enum> ```> I checked through the source, trying to find any other place where I may need to define the 6th Stat, but I get nothing… Any help would be appreciated.Adding a stat is not only this my friend, you have to do a lot more xDFind out how the client and server know those stats, and make your new stat known for the client and server.After that find the function/sub of player leveling in the server side I think, and make sure your new stat will raise if the player can level up. Link to comment Share on other sites More sharing options...
SeeingBlue Posted September 2, 2011 Share Posted September 2, 2011 Yea, like above said. Best thing to do is get paper & pencil & track all the movements the stats take by doing searches. This will help you understand how they are used & you'll have a better understand of how to add new ones. Link to comment Share on other sites More sharing options...
TheRexion Posted September 2, 2011 Author Share Posted September 2, 2011 That… doesn't help me at all. I've searched through the client and the error doesn't seem to derive from having new subs, but from an old one that just counts them up from Stat_Count. That's what's erroring for me, not being unable to use it, as I've got that part fine. Link to comment Share on other sites More sharing options...
TheRexion Posted September 7, 2011 Author Share Posted September 7, 2011 Anyone know a solution? Link to comment Share on other sites More sharing options...
UzGo Posted September 8, 2011 Share Posted September 8, 2011 The solution is one . Learn VB6 ! Start with something simple ! This is not so simple ! I am learning it too . Link to comment Share on other sites More sharing options...
SeeingBlue Posted September 8, 2011 Share Posted September 8, 2011 What does that error highlight? Link to comment Share on other sites More sharing options...
TheRexion Posted September 10, 2011 Author Share Posted September 10, 2011 It's highlighting this:```For i = 1 To Stats.Stat_Count - 1 SetPlayerStat Index, i, Buffer.ReadLong frmMain.lblCharStat(i).Caption = GetPlayerStat(MyIndex, i) Next```It says i is 6 and that it doesn't exist. But it _should_ exist, since I added it to the Stat_Count. Link to comment Share on other sites More sharing options...
SeeingBlue Posted September 11, 2011 Share Posted September 11, 2011 Have you tried creating a new character? Link to comment Share on other sites More sharing options...
TheRexion Posted September 12, 2011 Author Share Posted September 12, 2011 I can't because every time I try, it gives me that error. I've even deleted all of the previous accounts and tried it again, nothing. Link to comment Share on other sites More sharing options...
TheRexion Posted September 16, 2011 Author Share Posted September 16, 2011 Does no one know how to get this working? Link to comment Share on other sites More sharing options...
TheRexion Posted September 24, 2011 Author Share Posted September 24, 2011 Still looking for anyone who can to assist me with this great confusion. Link to comment Share on other sites More sharing options...
xxXReichoXxx Posted December 23, 2011 Share Posted December 23, 2011 frmMain.lblCharStat(i).Caption = GetPlayerStat(MyIndex, i)u mean u dnt have label for ur stat?? :D Link to comment Share on other sites More sharing options...
emblem Posted December 23, 2011 Share Posted December 23, 2011 @xxXReichoXxx:> frmMain.lblCharStat(i).Caption = GetPlayerStat(MyIndex, i)> > u mean u dnt have label for ur stat?? :DPlease look at the date of the last poster before replying in a thread. This thread is well over two months old.This is considered Necroposting and is against [the rules](http://www.touchofdeathforums.com/smf/index.php/topic,72426.0.html).**#locked** Link to comment Share on other sites More sharing options...
Ruins of Hell Posted December 23, 2011 Share Posted December 23, 2011 (Actually, necroposting doesn't apply in Tutorial boards.) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now