eJay Posted June 7, 2013 Group: Members Topic Count: 80 Topics Per Day: 0.02 Content Count: 325 Reputation: 76 Joined: 03/22/12 Last Seen: August 5, 2019 Share Posted June 7, 2013 How to check if the player has exceeded the maximum stats 255 So that if the one of their stats 256+ will popup their name as dispbottom Quote Link to comment Share on other sites More sharing options...
Jaburak Posted June 7, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: Saturday at 04:18 AM Share Posted June 7, 2013 - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) set .@OverStat,.@OverStat + 1; if( .@OverStat >= 6 ){ dispbottom "You have 256 stat."; end; } } Quote Link to comment Share on other sites More sharing options...
eJay Posted June 7, 2013 Group: Members Topic Count: 80 Topics Per Day: 0.02 Content Count: 325 Reputation: 76 Joined: 03/22/12 Last Seen: August 5, 2019 Author Share Posted June 7, 2013 (edited) - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) set .@OverStat,.@OverStat + 1; if( .@OverStat >= 6 ){ dispbottom "You have 256 stat."; end; } } I mean if one of their stats is 256+ like 500 stats on str or 300 in agi then will go back to 255 Edited June 7, 2013 by Kim Quote Link to comment Share on other sites More sharing options...
Capuche Posted June 7, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 613 Joined: 07/05/12 Last Seen: April 15 Share Posted June 7, 2013 - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) statusup2 .@i,( 255 - readparam(.@i) ); } Quote Link to comment Share on other sites More sharing options...
eJay Posted June 7, 2013 Group: Members Topic Count: 80 Topics Per Day: 0.02 Content Count: 325 Reputation: 76 Joined: 03/22/12 Last Seen: August 5, 2019 Author Share Posted June 7, 2013 Thanks Quote Link to comment Share on other sites More sharing options...
lawbreaker Posted June 10, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 05/31/13 Last Seen: April 25, 2020 Share Posted June 10, 2013 (edited) - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) statusup2 .@i,( 255 - readparam(.@i) ); } Nice Script . But can you please add a part in which it skips GM characters Edited June 10, 2013 by lawbreaker Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 10, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10013 Reputation: 2348 Joined: 10/28/11 Last Seen: Tuesday at 10:53 PM Share Posted June 10, 2013 OnPCLoginEvent: if( !getgmlevel() ) 2 Quote Link to comment Share on other sites More sharing options...
Question
eJay
How to check if the player has exceeded the maximum stats 255
So that if the one of their stats 256+ will popup their name as dispbottom
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.