Ok I have been coding only a short time and put the race code exactly as stated in Mr. Williams' instructions but I keep gettting an error:
C:\circlemudbak\circlemud\circle30bpl11\src\class.c(420) : error C2143: syntax error : missing ';' before 'switch'
The code at this spot is as follows:
case CLASS_BARBARIAN:
ch->real_abils.str = table[0];
ch->real_abils.con = table[1];
ch->real_abils.dex = 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 = number(0, 100);
break;
}
ch->aff_abils = ch->real_abils;
}
switch (GET_RACE(ch)) {
case RACE_HUMAN:
break;
case RACE_ORC:
break;
case RACE_ELF:
ch->real_abils.dex += 1;
ch->real_abils.intel += 1;
ch->real_abils.str -= 1;
ch->real_abils.con -= 1;
break;
I know it is some newbie coder mistake and it is driving me crazy. If the above isn't enough then I can send you the whole file if you like. Thanks in advance.
Rob
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
| Or send 'info circle' to majordomo@cspo.queensu.ca |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST