UCC Reference

UI_get_alignment

int UI_get_alignment(actor npc)
int npc->get_alignment()

Gets the NPC's attitude towards the avatar.

Parameters

Parameter / value Description
npc The NPC whose alignment is desired.

Return

Returns a number describing the NPC's attitude towards the avatar. Can be one of the following values:

NEUTRAL = 0 GOOD = 1 EVIL = 2
CHAOTIC = 3

Related intrinsics

Full intrinsic reference | Reference definitions