Dissidia Posted April 6, 2017 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 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 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 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 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...
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