Welcome to the Builder Academy

Question Auto set stats on mobsmax level

More
16 Feb 2018 23:53 #7602 by JTP
Seems set stats on mobs, seems to work Best up to lvl 30. I have more levels Then that. So a level 30 mob already has -80 armor. And If i make a mob my max level its -200 where as After -100 it doesnt really matter.


Where Can i change this to better suit my max level ?

Please Log in or Create an account to join the conversation.

More
17 Feb 2018 04:05 #7603 by Fizban
void medit_autoroll_stats(struct descriptor_data *d)

Search for that in medit.c

Please Log in or Create an account to join the conversation.

More
17 Feb 2018 09:52 #7604 by JTP
Replied by JTP on topic Auto set stats on mobsmax level
Nice...went and had a look at luminari ways to do it:
Code:
GET_DAMROLL(OLC_MOB(d)) = mob_lev/6; /* damroll (dam bonus) 0-5 */ if (mob_lev >= 20) GET_DAMROLL(OLC_MOB(d))++; if (mob_lev >= 25) GET_DAMROLL(OLC_MOB(d))++; if (mob_lev > 30) GET_DAMROLL(OLC_MOB(d))++; if (mob_lev == LVL_IMPL) GET_DAMROLL(OLC_MOB(d))++;

What is the outcome of this Way of doing it ?
What does the ++ do ?

Please Log in or Create an account to join the conversation.

More
17 Feb 2018 14:25 #7605 by Fizban
num++; adds 1 to the value of num.

So does ++num;, one is a post-increment, the other is a pre-increment, in instances like this they'd function identically.

Please Log in or Create an account to join the conversation.

Time to create page: 0.213 seconds