Welcome to the Builder Academy

Question Reroll patch question

More
14 Jan 2017 16:23 - 14 Jan 2017 16:33 #6528 by JTP
Replied by JTP on topic Reroll patch question
Yes it was.

If orc has str 18 and you cast strength spell.. Then strength will be 18/10 if strength is +1 and 18/20 if strength is +2

So how can i prevent it from going to 19 or 20 in str and con or what ever stat ?


Several races has +1 +2 or +3

Main reason for racial benefits, if to ensure that stat to be high but not over 18.
Last edit: 14 Jan 2017 16:33 by JTP.

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

More
14 Jan 2017 21:31 #6530 by thomas
Replied by thomas on topic Reroll patch question
Some things you can do:

- Make sure you use "MIN(.., 18)".
- Whereever you add to strength, make sure you add to the str_add if you get over 18:

Example from one race, adjust to fit the others:
Code:
case RACE_HALF_GIANT: ch->real_abils.dex = MIN(ch->real_abils.dex + 2, 18); ch->real_abils.con = MIN(real_abils.con + 2, 18); ch->real_abils.intel -= 3; ch->real_abils.wis -= 3; ch->real_abils.cha -= 3; ch->real_abils.str += 3; break; // before returning if (ch->real_abils.str >= 18 && ch->real_abils.str_add == 0) ch->real_abils.str_add = rand_number(0, 100); while (ch->real_abils.str > 18) { ch->real_abils.str--; ch->real_abils.str_add = MIN(ch->real_abils.str_add + 10, 100); }

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

More
14 Jan 2017 22:14 #6532 by JTP
Replied by JTP on topic Reroll patch question
Each class that can get up to 18/100 already have:
Code:
case CLASS_WARRIOR: ch->real_abils.str = table[0]; ch->real_abils.dex = table[1]; ch->real_abils.con = table[2]; ch->real_abils.wis = table[3]; ch->real_abils.intel = table[4]; ch->real_abils.cha = table[5]; if (ch->real_abils.str == 18) ch->real_abils.str_add = rand_number(0, 100); <<-- break;

Should i remove that, and use your version for str_add ? Or do i need both ?

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

More
15 Jan 2017 02:09 #6533 by thomas
Replied by thomas on topic Reroll patch question
You can keep or remove the existing assignment to str_add - the new line is checking if it needs to be called.

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

Time to create page: 0.282 seconds