[Condition] isRace
Posted: Sun Oct 31, 2021 7:23 pm
Actor.isRace(what)
USE:
Check if the actor belongs to a certain race.
PARAMETER:
human, orc, elf, vampire
TYPE: Condition, Reference
RETURNS: bool
THEME:
COMPARE: getRace(), isCreatureType()
EXAMPLE:
USE:
Check if the actor belongs to a certain race.
PARAMETER:
human, orc, elf, vampire
TYPE: Condition, Reference
RETURNS: bool
THEME:
COMPARE: getRace(), isCreatureType()
EXAMPLE:
Code: Select all
If John.isRace(vampire)
Player(Angry):: "Go away ya bloodsucker!"
Endif