Apps Home
|
Create an App
Tip To Remove Random Clothing
Author:
iloveblacknylon
Description
Source Code
Launch App
Current Users
Created by:
Iloveblacknylon
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:'skirt', 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:'stockings', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'wearing', label: "stockings - Iloveblacknylon"}, {name:'tights', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'not wearing', label: "tights - Iloveblacknylon"}, {name:'heels', type:'choice', choice1:'wearing', choice2:'not wearing', defaultValue:'not wearing'}, {name:'blouse', 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 = [ "skirt", "knickers", "trousers", "tights", "blouse", "heels", "stockings", "bra", "jacket" ]; worn_clothes = []; initialise(); function initialise() { worn_clothes = []; tip_amount = cb.settings.tip_amount; tip_increment = cb.settings.tip_amount; if(cb.settings.skirt=="wearing") { worn_clothes.push("skirt"); } 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.blouse=="wearing") { worn_clothes.push("blouse"); } if(cb.settings.heels=="wearing") { worn_clothes.push("heels"); } if(cb.settings.stockings=="wearing") { worn_clothes.push("stockings"); } 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.