if check for faith level

For builders to discuss and ask building questions.
Post Reply
Solaghar
Staff
Staff
Posts: 1283
Joined: Sun Nov 16, 2003 8:33 am
Location: Menzoberranzan

if check for faith level

Post by Solaghar » Wed Aug 22, 2007 5:18 am

A very useful thing for builders would be an if check that allowed you to do different things based on the faith level of the person, if such a thing does not already exist.
User avatar
Kregor
Sword Grand Master
Sword Grand Master
Posts: 1474
Joined: Sun Jul 11, 2004 6:14 am
Location: Baldur's Gate

Post by Kregor » Wed Aug 22, 2007 9:58 pm

It does. Example snip:

Code: Select all

>exa_prog 100~
if deity($n) == Mask
  if faithlevel($n) == faith manager
  or faithlevel($n) == inner circle
"There is no safety for honest men except by believing all possible evil of evil men."

Kregor - Ranger of Tangled Trees
Rozor - Lady Luck's Duelist
Tygen - Ranger-Bard of Mielikki
Solaghar
Staff
Staff
Posts: 1283
Joined: Sun Nov 16, 2003 8:33 am
Location: Menzoberranzan

Post by Solaghar » Thu Aug 23, 2007 2:15 am

Excellent, thank you Kregor.
Post Reply