/// /// /// Requires that the dialog's NPC must have been spawned into a prefab sleeper volume. /// Putting the value "not" into will negate the result. /// /// /// /// Example: Hide the response unless the NPC is a sleeper. /// /// <requirement type="IsSleeper, SCore" requirementtype="Hide" /> /// /// /// /// /// Example: Hide the response unless the NPC is not a sleeper. /// /// <requirement type="IsSleeper, SCore" requirementtype="Hide" value="not" /> /// /// /// public class DialogRequirementIsSleeper : BaseDialogRequirement { public override bool CheckRequirement(EntityPlayer player, EntityNPC talkingTo) { var isSleeper = talkingTo.IsSleeper; return Value.EqualsCaseInsensitive("not") ? !isSleeper : isSleeper; } }