I now have decided on the following list of monster flags:
- ALIGNMENT_EVIL
- BEHAVE_BERSERK
- BEHAVE_COWARDLY
- BEHAVE_FLEE
- BEHAVE_GREEDY
- BEHAVE_IGNORE
- BEHAVE_RANGED
- BREED_MULTIPLY
- DOOR_BASH
- DOOR_OPEN
- DROP_CASH
- DROP_CORPSE
- DROP_ITEMS_ARTEFACT
- DROP_ITEMS_COMMON
- DROP_ITEMS_EPIC
- DROP_ITEMS_SUPERB
- DROP_ITEMS_UNCOMMON
- GENDER_FEMALE
- GENDER_MALE
- GOT_ESCORT
- GOT_ESCORTS
- GOT_FRIEND
- GOT_FRIENDS
- IMMUNE_AIR
- IMMUNE_EARTH
- IMMUNE_FIRE
- IMMUNE_WATER
- INVISIBLE
- NEVER_MOVE
- POISONOUS
- REGENERATE
- RESIST_AIR
- RESIST_EARTH
- RESIST_FIRE
- RESIST_WATER
- TELEPORT
- TELEPORT_AWAY
- TELEPORT_BLINK
- TELEPORT_TO
- WALL_KILL
- WALL_PASS
Most of these do what they say on the tin, although the Behaviour Flags are worth noting in greater detail:
- BEHAVE_BERSERK: This flag means the creature will do increased damage at low health.
- BEHAVE_COWARDLY: Creatures having this flag will run away when hurt, and use ranged combat where possible, although their priority is to keep moving away from the @.
- BEHAVE_FLEE: Creatures having this flag will flee when hurt badly.
- BEHAVE_GREEDY: Creatures featuring this will actively prefer to pick up equipment as opposed to engaging the @ where possible.
- BEHAVE_IGNORE: These creatures will not attack unless attacked first.
- BEHAVE_RANGED: These creatures will attempt to stay at range and attack from a distance where possible.
If there are any more options and flags you think should be used, feel free to say so in the comments!
1 comment:
For my RL, I use an AI flag which determinates how smart the monster is; fool monsters don't know how to open doors, to flee when it's needed, to teleport if they had the skill, etc.
Post a Comment