My design for tangled trees, is that my roaming guards, in addition to serving out justice, would throw out "outsiders", meaning anyone who is not a forest folk. This is modified by a qbit for a quest that, if successfully completed, would allow others outside this group to stay within. Basically, I have the prog set up like this:
Code: Select all
>rand_prog 15~
if ispc($r)
if quest(7,5,$r) == 0
if race($r) != Elf
or race($r) != Forest gnome
or race($r) != Centaur
or race($r) != Halfelf
or guild($r) != Rangers
or deity($r) != Mielikki
or deity($r) != Chauntea
sayto $r You are an outsider, you do not belong here.
mpechoat $r $I grabs you, and takes you out of the clanholds.
mpechoaround $n $I grabs $R, and takes $K out of the clanholds.
yell I have found $R intruding in the the Forest! I have removed $K.
mptransfer $r 56442 pet
endif
endif
endif
~
As it is, this code is not working properly, it ignores a person based on the qbit fine, but it throws people out otherwise, *even* if they are one of the races, or dieties that is supposed to be allowed running around as indicated.
What did I do wrong? And how to reword it?
"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