Welcome to the Builder Academy

Question How do "mob_noXXX" in structs.h connect to the code to do NO_XXX

More
01 Oct 2025 04:33 #10920 by Salty
Ok, I can answer this for you:
Code:
/** Mob action flags. * @pre Must be in the same order as the defines. * Must end array with a single newline. */ const char *action_bits[] = {   "SPEC",   "SENTINEL",   "SCAVENGER",   "ISNPC",   "AWARE",   "AGGR",   "STAY-ZONE",   "WIMPY",   "AGGR_EVIL",   "AGGR_GOOD",   "AGGR_NEUTRAL",   "MEMORY",   "HELPER",   "NO_CHARM",   "NO_SUMMN",   "NO_SLEEP",   "NO_BASH",   "NO_BLIND",   "NO_KILL",   "DEAD",    /* You should never see this. */   "\n" };
these action_bits[] in constants.c are the display names of the defined bit values from structs.h.  They are used in functions in medit.c and act.wizard.c to display the names of the bits to you when you medit an npc, or stat a mob.

They need to be in the same order as the bits defined in structs.h so that the ACTUAL bits and the ACTION bits are equally represented.

Hope this helps,

Salty

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

Time to create page: 0.195 seconds