It could be called: flagcheck
Example of impementation: in PWMA we have corpses of monster. Why not to give possibility to eat them (hello, Nethack!). But different races should have different effects on eating corpses. We can't let elf to eat orc's corpses without consequences
So, eg:Code:
name:corpse (orcish)
graphics:%:w
type:corpse
properties:0:100:0
combat:0:1d1:0:0:0
[B]flagcheck[/B]:race: ELF | HIGH-ELF # works at elves
effect:SET_NOURISH # this would happen to all elves
dice:$B
expr:B:FOOD_FAINT:- 1
random: # this is random event which could happen in addition
effect:TIMED_INC:CONFUSED
dice:20d40
effect:DRAIN_STAT:WIS
dice:1
[B]flagcheck[/B]:race: HALF-ELF # half-elf is better in eating orcs ^^
effect:SET_NOURISH
dice: 1000 # as we don't have hunger as timed status effect yet, lets just take weak status ;)
[B]flagcheck[/B]:race:except: ELF | HIGH-ELF | HALF-ELF # next effects would work at everyone else.. donno how to implement better ('except'?)
effect:NOURISH
dice:1000
desc:Whatever happened with this one, it wasn't pretty.
), right in gamedata file? eg:
) and would make player sick for a while.
Leave a comment: