Apps Home
|
Create an App
Slots++
Author:
lollaptop
Description
Source Code
Launch App
Current Users
Created by:
Lollaptop
cb.settings_choices = [ {name: 'slotCost', label: 'Cost per spin', type: 'int', minValue:1, defaultValue:25}, {name: 'slotOdds', label: 'Odds of winning', type: 'int', minValue:1, maxValue:100, defaultValue:75}, {name: 'commonPrizes', label: 'Common prizes', type: 'int', minValue:1, maxValue:8, defaultValue:6}, {name:'prizeDesc1', label:'Prize 1 Description (common)', type:'str', minLength: 1, maxLength: 255}, {name:'prizeDesc2', label:'Prize 2 Description (common)', type:'str', minLength: 1, maxLength: 255, required: false}, {name:'prizeDesc3', label:'Prize 3 Description (common)', type:'str', minLength: 1, maxLength: 255, required: false}, {name:'prizeDesc4', label:'Prize 4 Description (common)', type:'str', minLength: 1, maxLength: 255, required: false}, {name:'prizeDesc5', label:'Prize 5 Description (common)', type:'str', minLength: 1, maxLength: 255, required: false}, {name:'prizeDesc6', label:'Prize 6 Description (common)', type:'str', minLength: 1, maxLength: 255, required: false}, {name:'prizeDesc7', label:'Prize 7 Description (common)', type:'str', minLength: 1, maxLength: 255, required: false}, {name:'prizeDesc8', label:'Prize 8 Description (common)', type:'str', minLength: 1, maxLength: 255, required: false}, {name:'jackpotDesc', label:'Jackpot Description', type:'str', minLength: 1, maxLength: 255}, {name: 'jackpotOdds', label: 'Jackpot win percentage', type: 'int', minValue:1, maxValue:100, defaultValue:5} ]; var prizeOdds = new Array(cb.settings.commonPrizes); prizeOdds.fill(100); cb.onTip(function (tip) { var slotRoll = Math.floor(Math.random() * 100) + 1; cb.chatNotice(slotRoll <= cb.settings.slotOdds); prizeOdds.forEach(updateOdds); cb.chatNotice(prizeOdds); }); function updateOdds(odds, index){ prizeOdds[index] = odds + 10; return; };
© Copyright Chaturbate 2011- 2025. All Rights Reserved.