ALIGNMENT_OK(1) ALIGNMENT_OK(1)
NNAAMMEE
_a_l_i_g_n_m_e_n_t___o_k_(_) - returns true if a player is inside
alignment restrictions
SSYYNNOOPPSSIISS
int alignment_ok(object ob)
DDEESSCCRRIIPPTTIIOONN
If the object passed as the argument is within alignment
restrictions for the player's class, then the function
returns true. Otherwise it returns false.
EEXXAAMMPPLLEESS
+o _a_l_i_g_n_m_e_n_t___o_k(_t_h_i_s___p_l_a_y_e_r_(_)) returns false if I am an
evil cleric, or true if I am a good monk, or always
true as a fighter
LLOOCCAATTIIOONN
/secure/SimulEfun/alignment.c
AAuutthhoorr
Descartes of Borg
1