How about make do_skill function like do_cast. change cmd_info (in interpreter.c) do_kick, 1, 0 -> do_skill, 1, SKILL_KICK ACMD(do_skill) { check_he_practiced_that_skill; get_argument; check_valid_argument; /* add new bit flags WITH_WEAPON and more.. in skill info to spello or make skill_info[] */ check_skill_is_greater_than_random_num; switch(subcmd) { .. case SKILL_KICK: perform_kick; break; .. } if (success) advance_skill; /* player practices skills up to 60 and advance it when he using */ } I think this can reduce size and easily add new skills. - artist e-mail : artist@soback.kornet.nm.kr
This archive was generated by hypermail 2b30 : 12/18/00 PST