BurbLulls: I have an idea for the r_info monsters. For the flags you give them, it should be possible to make flags that have no actual effect except as a place holder. For example, they could be identified as custom flags by beginning with C_ like C_FOO or C_BAR for example. This would be used for grouping together certain monsters in dungeons when they don't have any real connection elsewhere.
NeilStevens: We've already ditched that awful, ugly, horrible, silly prefix-and-bitfield system for ToME 3. You can create and use whatever flags you want.
MassimilianoMarangio: The power value related to a flag is also stored as the flag value, i.e. you can use different power values for different flags and tweak some values that were fixed in ToME 2.x (e.g. BRAND_FIRE = obvious(getter.random(2,4)) sets the damage multiplier for a fiery weapon randomly to x2, x3 or x4).
RavenRed: Is this how the factions system is going to be implemented? Arbitrary flags feeding into a modification of the AI?
NeilStevens: I'm fairly certain factions ARE implemented.
RavenRed: To rephrase then, have Factions been implemented with the capability to use these types of flags. Could we (for example) set it so that any monster "URUK=1" to attack on sight any other orcs (remembering the hostility between the orcish factions) or animals to ally with Ents, etc...?
MassimilianoMarangio; I think yes. The changelog entry is:
Factions system. Each monsters belongs to a faction and the factions have different hostility settings toward each others. As in one could make a breeders faction and have all other factions hate it, which could lead into erm .. threesomes with breeders attacking both monsters and players, monsters attacking breeders and players and so on.
There are only four pre-defined factions in the game, but you can add others:
FACTION_PLAYER: The player and all pets. Neutral to town dweller, hostile to dungeon dwellers.
FACTION_TOWN: Town dwellers, neutral to the player, hostile to dungeon dwellers.
FACTION_DUNGEON: All enemies. hostile to the other two factions.
FACTION_GODS: Unused ?
You can set the hostility with
set_faction_friendliness(FACTION_PLAYER, FACTION_DUNGEON, -100)
ToME Wiki