Apps Home
|
Create an App
Dice roll for sweet
Author:
sweethappygirls
Description
Source Code
Launch App
Current Users
Created by:
Sweethappygirls
cb.settings_choices = [ {name:'tip_amount', type:'int', minValue:5, maxValue:99, defaultValue:25, label: "Tokens per item clothing. Increments at the same amount."}, {name:'Jacket', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'wearing'}, {name:'knickers', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'wearing'}, {name:'bra', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'wearing'}, {name:'socks', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'wearing', label: "Socks"}, {name:'tights', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'not wearing', label: "tights - Iloveblacknylon"}, {name:'Pants', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'not wearing'}, {name:'Shirt', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'not wearing'}, {name:'collar', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'not wearing'} ]; var tip_amount = 40; var tip_increment = 40; var total_tipped = 0; var garments_removed = 0; initial_clothes = [ "Jacket", "knickers", "trousers", "tights", "Shirt", "Pants", "socks", "bra", "jacket" ]; worn_clothes = []; initialise(); function initialise() { worn_clothes = []; tip_amount = cb.settings.tip_amount; tip_increment = cb.settings.tip_amount; if(cb.settings.Jacket=="wearing") { worn_clothes.push("Jacket"); } if(cb.settings.knickers=="wearing") { worn_clothes.push("knickers"); } if(cb.settings.trousers=="wearing") { worn_clothes.push("trousers"); } if(cb.settings.tights=="wearing") { worn_clothes.push("tights"); } if(cb.settings.Shirt=="wearing") { worn_clothes.push("Shirt"); } if(cb.settings.Pants=="wearing") { worn_clothes.push("Pants"); } if(cb.settings.socks=="wearing") { worn_clothes.push("socks"); } if(cb.settings.bra=="wearing") { worn_clothes.push("bra"); } if(cb.settings.jacket=="wearing") { worn_clothes.push("jacket"); } if(cb.settings.collar=="wearing") { worn_clothes.push("collar"); } removed_clothes = []; removed_clothes_users = []; cb.changeRoomSubject( "Tip "+tip_amount+" to have a random item removed." ); } cb.onTip(function (tip) { if(tip['amount'] >= tip_amount ) { // remove an item garment_count = worn_clothes.length; random_garment = Math.floor( Math.random() * garment_count ); message = "Please remove " + worn_clothes[ random_garment ]; // update counters removed_clothes.push( worn_clothes[random_garment] ); removed_clothes_users.push( tip['from_user'] ); worn_clothes.splice( random_garment, 1 ); cb.sendNotice( message ); // Any clothes left? Send message for more tips. if( worn_clothes.length > 0 ) { tip_amount = removed_clothes.length * tip_increment; cb.changeRoomSubject( "Tip "+tip_amount+" to remove the next item of clothing!" ); } else { cb.changeRoomSubject( "Hope you enjoyed that as much as I did? I'll start again soon." ); cb.sendNotice("Naked at last! I'll start again very soon :)"); initialise(); } removed_message = ""; for(i=0; i<removed_clothes.length;i++) { removed_message += removed_clothes[i] + " removed for " + removed_clothes_users[i] + ",\n"; } cb.sendNotice( removed_message ); } });
© Copyright Chaturbate 2011- 2026. All Rights Reserved.