Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int roll_skill(struct char_data *ch, int sact, int hind, int stat)
- {
- int roll = 0, i, rolldice = 0;
- int sktot = 0;
- rolldice = (GET_CLASS_RANKS(ch, sact));
- rolldice -= hind;
- rolldice += stat;
- for (i = 0; i < rolldice; i++) {
- roll = rand_number(1, 10);
- send_to_char(ch, "Roll :%d\r\n", roll);
- if (roll > 5)
- sktot++;
- //DICEROLL(ch) = sktot;
- }
- send_to_char(ch, "Sktot %d\r\n",sktot);
- return sktot;
- }
Advertisement
Add Comment
Please, Sign In to add comment