summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-03-24 14:49:29 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-03-24 14:49:29 +0000
commit9cfef6013123e89ad9a24cb0aeef8ee5bcb5b333 (patch)
tree5799dfdf7128998e34b543a0b1509412f8e6d088 /scripts/toy.groovy
parentBetter property helpers (diff)
downloadtoy-9cfef6013123e89ad9a24cb0aeef8ee5bcb5b333.zip
Periodically ask to keep toy permanently chaste
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy26
1 files changed, 25 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 68d7114..507894c 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -23,7 +23,7 @@ final BONDAGE = "bondage", CBT = "cbt", CHORES = "chores", PAIN = "pain";
final CUM = "cum", EDGE = "edge"
final PERMIT = "permit";
final PLAY = "play";
-final PERM_CHASTE = "perm_chaste";
+final PERM_CHASTE = "perm_chaste", PERM_CHASTE_ASK = "perm_chaste_ask";
// toy.state.<name>
final CHASTE = "chaste", COLLARED = "collared", CUFFED = "cuffed", CLAMPED = "clamped", GAGGED = "gagged", NAKED = "naked";
final REDRESS = "redress";
@@ -829,6 +829,30 @@ def preChastity = {
}
def postChastity = {
chastity(false);
+ if (is(CHASTE) && (getPermission(PERM_CHASTE) == null ||
+ (getPermission(PERM_CHASTE) == false && getProp(PERM_CHASTE_ASK, loadI, 0) < getTime() - (DAY * 30)))) {
+ present([DRESSED,TEASE], [
+ ["Now I have you locked up,", "Now my cock is secured away,"],
+ ["would you let me", "can I"],
+ ["keep you like that"],
+ ["all the time?", "permanently?"]]);
+ def sh = getSelectedValue(null, [
+ gagText("Yes, Mistres", "yes"), gagText("Please, Mistress, no", "no")]);
+ if (sh == 0) {
+ present([DRESSED,TEASE], [
+ ["Good boy.", "Thank you, toy."]]);
+ setPermission(PERM_CHASTE, true);
+ setProp(PERM_CHASTE_ASK, null);
+ }
+ else {
+ present([DRESSED,nTEASE], [
+ ["Awwww.", "Shame."],
+ ["One day..."]]);
+ setPermission(PERM_CHASTE, false);
+ setProp(PERM_CHASTE_ASK, getTime());
+ }
+ wait(5);
+ }
};
// Play