erkro1 Posted April 22, 2011 Author Share Posted April 22, 2011 Hey,I'm trying to make it so the max points you can spend on your stats is playerlevel * 2.But I don't know were to start, can someone please help me? :sad:Greetings,Erkro1 Link to comment Share on other sites More sharing options...
Conra Posted April 22, 2011 Share Posted April 22, 2011 Divided by two or times two. Earlier you said times two but now your post says divided by two. When i get to a pc i will send you where to find the code and alter it. Link to comment Share on other sites More sharing options...
erkro1 Posted April 22, 2011 Author Share Posted April 22, 2011 @Conra:> Divided by two or times two. Earlier you said times two but now your post says divided by two. When i get to a pc i will send you where to find the code and alter it.Ah, ok, will wait untill you post a new reply. ;) Link to comment Share on other sites More sharing options...
Conra Posted April 22, 2011 Share Posted April 22, 2011 Might be a while. Its 9pm but i will post it at about 7am tomorow if someone else hasn't helped already. Link to comment Share on other sites More sharing options...
erkro1 Posted April 22, 2011 Author Share Posted April 22, 2011 @Conra:> Might be a while. Its 9pm but i will post it at about 7am tomorow if someone else hasn't helped already.I can wait :P Link to comment Share on other sites More sharing options...
Conra Posted April 22, 2011 Share Posted April 22, 2011 Ok then. Just try find it yourself while you wait by looking at what subs it calls when clicking the stats buttons and also the coding of the stats labels. It should be in modConstants but not at a pc so im really not sure. Link to comment Share on other sites More sharing options...
Orunu Posted April 22, 2011 Share Posted April 22, 2011 i asked a similar question just use search bar or look through Q&A```Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 3)``` Link to comment Share on other sites More sharing options...
erkro1 Posted April 22, 2011 Author Share Posted April 22, 2011 @Conra:> Ok then. Just try find it yourself while you wait by looking at what subs it calls when clicking the stats buttons and also the coding of the stats labels. It should be in modConstants but not at a pc so im really not sure.Will do that, and I'll post new reply if I've found solution. ;)@Orunu:> i asked a similar question just use search bar or look through Q&A> > ```> Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 3)> > ```Ehm…That isn't what I'm asking for.. Link to comment Share on other sites More sharing options...
Orunu Posted April 22, 2011 Share Posted April 22, 2011 @Erkro1:> Will do that, and I'll post new reply if I've found solution. ;)> > Ehm…> That isn't what I'm asking for..oh sorry i misunderstood wat u said.. my bad yea thats for stat points per level wat i gave you Link to comment Share on other sites More sharing options...
Conra Posted April 23, 2011 Share Posted April 23, 2011 Isn't stat points per level what he wants??? Link to comment Share on other sites More sharing options...
Robin Posted April 23, 2011 Share Posted April 23, 2011 Conra, stop trying to help people by spamming up threads with nonsensical shit. You're not a programmer, just stop it.@erkro1;```' make sure they're not spending too muchIf GetPlayerRawStat(index, PointType) - Class(GetPlayerClass(index)).Stat(PointType) >= (GetPlayerLevel(index) * 2) - 1 Then PlayerMsg index, "You cannot spend any more points on that stat.", BrightRed Exit SubEnd If``` Link to comment Share on other sites More sharing options...
erkro1 Posted April 23, 2011 Author Share Posted April 23, 2011 @Robin:> Conra, stop trying to help people by spamming up threads with nonsensical shit. You're not a programmer, just stop it.> > @erkro1;> > ```> ' make sure they're not spending too much> If GetPlayerRawStat(index, PointType) - Class(GetPlayerClass(index)).Stat(PointType) >= (GetPlayerLevel(index) * 2) - 1 Then> PlayerMsg index, "You cannot spend any more points on that stat.", BrightRed> Exit Sub> End If> > ```Thanks RobinEDIT: This gives me playerlevel * 2 + 1.. Link to comment Share on other sites More sharing options...
erkro1 Posted April 24, 2011 Author Share Posted April 24, 2011 BUMPThis gives me playerlevel * 2 + 1.. Link to comment Share on other sites More sharing options...
blkcrow Posted April 24, 2011 Share Posted April 24, 2011 @Erkro1:> BUMP> > This gives me playerlevel * 2 + 1..-_-```' make sure they're not spending too muchIf GetPlayerRawStat(index, PointType) - Class(GetPlayerClass(index)).Stat(PointType) >= ((GetPlayerLevel(index) * 2) - 1) - 1 Then PlayerMsg index, "You cannot spend any more points on that stat.", BrightRed Exit SubEnd If``` Link to comment Share on other sites More sharing options...
erkro1 Posted April 25, 2011 Author Share Posted April 25, 2011 Lol, restarted pc and now it works, thanks ;) 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