Dissidia Posted April 6, 2017 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Share Posted April 6, 2017 hello how can i limit the bonus of that script to 90%? because 100% will get immune in all normal attack. thank you. 'bonus2 bSubRace,RC_Player,100; Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted April 6, 2017 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: 20 hours ago Share Posted April 6, 2017 If you want to limit the total bonus you could do that in pc.c: case SP_SUBRACE: // bonus2 bSubRace,r,x; PC_BONUS_CHK_RACE(type2,SP_SUBRACE); if(sd->state.lr_flag != 2) sd->subrace[type2]+=val; break; For example: case SP_SUBRACE: // bonus2 bSubRace,r,x; PC_BONUS_CHK_RACE(type2,SP_SUBRACE); if(sd->state.lr_flag != 2) { sd->subrace[type2]+=val; if(sd->subrace[type2] > 90) sd->subrace[type2] = 90; } break; 3 Quote Link to comment Share on other sites More sharing options...
0 Jey Posted April 6, 2017 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 249 Reputation: 73 Joined: 10/20/12 Last Seen: August 16, 2018 Share Posted April 6, 2017 (edited) You already found the correct line. Just change it to: `bonus2 bSubRace,RC_Player,90;` Edited April 7, 2017 by Jey Quote Link to comment Share on other sites More sharing options...
0 Dissidia Posted April 6, 2017 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Author Share Posted April 6, 2017 thank you so much for your help sir. Quote Link to comment Share on other sites More sharing options...
0 Dissidia Posted April 25, 2017 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Author Share Posted April 25, 2017 Sir Playtester the code didn't work. They can still do 100%. Quote Link to comment Share on other sites More sharing options...
Question
Dissidia
hello how can i limit the bonus of that script to 90%? because 100% will get immune in all normal attack. thank you.
'bonus2 bSubRace,RC_Player,100;
Link to comment
Share on other sites
4 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.