Apps Home
|
Create an App
Moon_Goal 200
Author:
eflick304
Description
Source Code
Launch App
Current Users
Created by:
Eflick304
// vars var last_tip_username = null; var next_tip_amount = 1; var goal_reached = false; var goal_count = 0; var goal_count1 = 1; var total_tokens = 0; var goal_tokens = 0; var progress = 0; var moons = "\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF"; // var version = 10 // Limit goal description as we add some text cb.settings_choices = [ { name: 'goal_value', label: 'goal1', type: 'int', minValue: 1, maxValue: 200, default: 50 }, { name: 'goal_description', label: 'goal1', type: 'str', minLength: 1, maxLength: 190 }, { name: 'goal_value1', label: 'goal2', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description1', label: 'goal2', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value2', label: 'goal3', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description2', label: 'goal3', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value3', label: 'goal4', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description3', label: 'goal4', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value4', label: 'goal5', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description4', label: 'goal5', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value5', label: 'goal6', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description5', label: 'goal6', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value6', label: 'goal7', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description6', label: 'goal7', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value7', label: 'goal8', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description7', label: 'goal8', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value8', label: 'goal9', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description8', label: 'goal9', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value9', label: 'goal10', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description9', label: 'goal10', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value10', label: 'goal11', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description10', label: 'goal11', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value11', label: 'goal12', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description11', label: 'goal12', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value12', label: 'goal13', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description12', label: 'goal13', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value13', label: 'goal14', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description13', label: 'goal14', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value14', label: 'goal15', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description14', label: 'goal15', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value15', label: 'goal16', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description15', label: 'goal16', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value16', label: 'goal17', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description16', label: 'goal17', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value17', label: 'goal18', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description17', label: 'goal18', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value18', label: 'goal19', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description18', label: 'goal19', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value19', label: 'goal20', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description19', label: 'goal20', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value20', label: 'goal21', type: 'int', required: false, minValue: 0, maxValue: 200, default: 0 }, { name: 'goal_description20', label: 'goal21', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value21', label: 'goal22', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description21', label: 'goal22', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value22', label: 'goal23', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description22', label: 'goal23', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value23', label: 'goal24', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description23', label: 'goal24', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value24', label: 'goal25', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description24', label: 'goal25', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value25', label: 'goal26', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description25', label: 'goal26', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value26', label: 'goal27', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description26', label: 'goal27', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value27', label: 'goal28', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description27', label: 'goal28', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value28', label: 'goal29', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description28', label: 'goal29', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value29', label: 'goal30', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description29', label: 'goal30', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value30', label: 'goal31', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description30', label: 'goal31', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value31', label: 'goal32', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description31', label: 'goal32', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value32', label: 'goal33', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description32', label: 'goal33', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value33', label: 'goal34', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description33', label: 'goal34', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value34', label: 'goal35', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description34', label: 'goal35', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value35', label: 'goal36', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description35', label: 'goal36', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value36', label: 'goal37', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description36', label: 'goal37', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value37', label: 'goal38', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description37', label: 'goal38', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value38', label: 'goal39', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description38', label: 'goal39', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value39', label: 'goal40', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description39', label: 'goal40', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value40', label: 'goal41', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description40', label: 'goal41', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value41', label: 'goal42', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description41', label: 'goal42', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value42', label: 'goal43', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description42', label: 'goal43', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value43', label: 'goal44', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description43', label: 'goal44', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value44', label: 'goal45', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description44', label: 'goal45', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value45', label: 'goal46', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description45', label: 'goal46', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value46', label: 'goal47', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description46', label: 'goal47', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value47', label: 'goal48', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description47', label: 'goal48', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value48', label: 'goal49', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description48', label: 'goal49', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value49', label: 'goal50', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description49', label: 'goal50', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value50', label: 'goal51', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description50', label: 'goal51', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value51', label: 'goal52', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description51', label: 'goal52', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value52', label: 'goal53', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description52', label: 'goal53', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value53', label: 'goal54', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description53', label: 'goal54', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value54', label: 'goal55', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description54', label: 'goal55', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value55', label: 'goal56', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description55', label: 'goal56', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value56', label: 'goal57', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description56', label: 'goal57', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value57', label: 'goal58', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description57', label: 'goal58', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value58', label: 'goal59', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description58', label: 'goal59', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value59', label: 'goal60', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description59', label: 'goal60', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value60', label: 'goal61', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description60', label: 'goal61', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value61', label: 'goal62', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description61', label: 'goal62', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value62', label: 'goal63', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description62', label: 'goal63', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value63', label: 'goal64', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description63', label: 'goal64', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value64', label: 'goal65', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description64', label: 'goal65', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value65', label: 'goal66', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description65', label: 'goal66', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value66', label: 'goal67', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description66', label: 'goal67', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value67', label: 'goal68', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description67', label: 'goal68', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value68', label: 'goal69', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description68', label: 'goal69', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value69', label: 'goal70', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description69', label: 'goal70', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value70', label: 'goal71', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description70', label: 'goal71', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value71', label: 'goal72', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description71', label: 'goal72', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value72', label: 'goal73', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description72', label: 'goal73', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value73', label: 'goal74', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description73', label: 'goal74', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value74', label: 'goal75', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description74', label: 'goal75', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value75', label: 'goal76', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description75', label: 'goal76', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value76', label: 'goal77', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description76', label: 'goal77', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value77', label: 'goal78', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description77', label: 'goal78', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value78', label: 'goal79', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description78', label: 'goal79', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value79', label: 'goal80', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description79', label: 'goal80', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value80', label: 'goal81', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description80', label: 'goal81', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value81', label: 'goal82', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description81', label: 'goal82', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value82', label: 'goal83', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description82', label: 'goal83', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value83', label: 'goal84', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description83', label: 'goal84', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value84', label: 'goal85', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description84', label: 'goal85', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value85', label: 'goal86', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description85', label: 'goal86', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value86', label: 'goal87', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description86', label: 'goal87', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value87', label: 'goal88', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description87', label: 'goal88', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value88', label: 'goal89', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description88', label: 'goal89', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value89', label: 'goal90', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description89', label: 'goal90', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value90', label: 'goal91', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description90', label: 'goal91', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value91', label: 'goal92', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description91', label: 'goal92', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value92', label: 'goal93', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description92', label: 'goal93', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value93', label: 'goal94', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description93', label: 'goal94', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value94', label: 'goal95', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description94', label: 'goal95', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value95', label: 'goal96', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description95', label: 'goal96', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value96', label: 'goal97', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description96', label: 'goal97', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value97', label: 'goal98', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description97', label: 'goal98', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value98', label: 'goal99', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description98', label: 'goal99', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value99', label: 'goal100', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description99', label: 'goal100', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value100', label: 'goal101', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description100', label: 'goal101', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value101', label: 'goal102', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description101', label: 'goal102', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value102', label: 'goal103', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description102', label: 'goal103', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value103', label: 'goal104', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description103', label: 'goal104', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value104', label: 'goal105', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description104', label: 'goal105', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value105', label: 'goal106', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description105', label: 'goal106', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value106', label: 'goal107', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description106', label: 'goal107', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value107', label: 'goal108', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description107', label: 'goal108', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value108', label: 'goal109', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description108', label: 'goal109', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value109', label: 'goal110', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description109', label: 'goal110', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value110', label: 'goal111', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description110', label: 'goal111', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value111', label: 'goal112', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description111', label: 'goal112', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value112', label: 'goal113', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description112', label: 'goal113', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value113', label: 'goal114', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description113', label: 'goal114', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value114', label: 'goal115', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description114', label: 'goal115', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value115', label: 'goal116', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description115', label: 'goal116', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value116', label: 'goal117', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description116', label: 'goal117', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value117', label: 'goal118', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description117', label: 'goal118', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value118', label: 'goal119', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description118', label: 'goal119', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value119', label: 'goal120', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description119', label: 'goal120', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value120', label: 'goal121', type: 'int', required: false, minValue: 0, maxValue: 200, default: 0 }, { name: 'goal_description120', label: 'goal121', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value121', label: 'goal122', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description121', label: 'goal122', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value122', label: 'goal123', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description122', label: 'goal123', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value123', label: 'goal124', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description123', label: 'goal124', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value124', label: 'goal125', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description124', label: 'goal125', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value125', label: 'goal126', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description125', label: 'goal126', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value126', label: 'goal127', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description126', label: 'goal127', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value127', label: 'goal128', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description127', label: 'goal128', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value128', label: 'goal129', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description128', label: 'goal129', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value129', label: 'goal130', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description129', label: 'goal130', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value130', label: 'goal131', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description130', label: 'goal131', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value131', label: 'goal132', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description131', label: 'goal132', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value132', label: 'goal133', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description132', label: 'goal133', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value133', label: 'goal134', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description133', label: 'goal134', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value134', label: 'goal135', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description134', label: 'goal135', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value135', label: 'goal136', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description135', label: 'goal136', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value136', label: 'goal137', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description136', label: 'goal137', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value137', label: 'goal138', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description137', label: 'goal138', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value138', label: 'goal139', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description138', label: 'goal139', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value139', label: 'goal140', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description139', label: 'goal140', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value140', label: 'goal141', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description140', label: 'goal141', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value141', label: 'goal142', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description141', label: 'goal142', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value142', label: 'goal143', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description142', label: 'goal143', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value143', label: 'goal144', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description143', label: 'goal144', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value144', label: 'goal145', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description144', label: 'goal145', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value145', label: 'goal146', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description145', label: 'goal146', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value146', label: 'goal147', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description146', label: 'goal147', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value147', label: 'goal148', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description147', label: 'goal148', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value148', label: 'goal149', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description148', label: 'goal149', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value149', label: 'goal150', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description149', label: 'goal150', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value150', label: 'goal151', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description150', label: 'goal151', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value151', label: 'goal152', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description151', label: 'goal152', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value152', label: 'goal153', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description152', label: 'goal153', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value153', label: 'goal154', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description153', label: 'goal154', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value154', label: 'goal155', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description154', label: 'goal155', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value155', label: 'goal156', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description155', label: 'goal156', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value156', label: 'goal157', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description156', label: 'goal157', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value157', label: 'goal158', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description157', label: 'goal158', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value158', label: 'goal159', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description158', label: 'goal159', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value159', label: 'goal160', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description159', label: 'goal160', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value160', label: 'goal161', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description160', label: 'goal161', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value161', label: 'goal162', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description161', label: 'goal162', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value162', label: 'goal163', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description162', label: 'goal163', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value163', label: 'goal164', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description163', label: 'goal164', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value164', label: 'goal165', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description164', label: 'goal165', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value165', label: 'goal166', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description165', label: 'goal166', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value166', label: 'goal167', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description166', label: 'goal167', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value167', label: 'goal168', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description167', label: 'goal168', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value168', label: 'goal169', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description168', label: 'goal169', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value169', label: 'goal170', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description169', label: 'goal170', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value170', label: 'goal171', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description170', label: 'goal171', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value171', label: 'goal172', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description171', label: 'goal172', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value172', label: 'goal173', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description172', label: 'goal173', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value173', label: 'goal174', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description173', label: 'goal174', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value174', label: 'goal175', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description174', label: 'goal175', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value175', label: 'goal176', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description175', label: 'goal176', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value176', label: 'goal177', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description176', label: 'goal177', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value177', label: 'goal178', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description177', label: 'goal178', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value178', label: 'goal179', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description178', label: 'goal179', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value179', label: 'goal180', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description179', label: 'goal180', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value180', label: 'goal181', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description180', label: 'goal181', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value181', label: 'goal182', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description181', label: 'goal182', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value182', label: 'goal183', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description182', label: 'goal183', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value183', label: 'goal184', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description183', label: 'goal184', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value184', label: 'goal185', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description184', label: 'goal185', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value185', label: 'goal186', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description185', label: 'goal186', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value186', label: 'goal187', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description186', label: 'goal187', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value187', label: 'goal188', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description187', label: 'goal188', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value188', label: 'goal189', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description188', label: 'goal189', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value189', label: 'goal190', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description189', label: 'goal190', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value190', label: 'goal191', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description190', label: 'goal191', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value191', label: 'goal192', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description191', label: 'goal192', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value192', label: 'goal193', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description192', label: 'goal193', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value193', label: 'goal194', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description193', label: 'goal194', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value194', label: 'goal195', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description194', label: 'goal195', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value195', label: 'goal196', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description195', label: 'goal196', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value196', label: 'goal197', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description196', label: 'goal197', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value197', label: 'goal198', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description197', label: 'goal198', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value198', label: 'goal199', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description198', label: 'goal199', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value199', label: 'goal200', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description199', label: 'goal200', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'goal_value200', label: 'DO NOT USE', type: 'int', required: false, minValue: 0, maxValue: 100, default: 0 }, { name: 'goal_description200', label: 'DO NOT USE', type: 'str', required: false, minLength: 0, maxLength: 190 }, { name: 'order', type: 'choice', choice1: 'ascending', choice2: 'descending', default: 'ascending' } ]; cb.onTip( function (tip) { var diff = tip['amount']; total_tokens = total_tokens + diff; goal_tokens = goal_tokens + diff; if (goal_tokens >= cb.settings.goal_value) { if (cb.settings['goal_value' + goal_count ] == 0) { goal_reached = true;} goal_count++; cb.settings.goal_value = cb.settings['goal_value' + goal_count]; cb.settings.goal_description = cb.settings['goal_description' + goal_count]; goal_tokens = 0; } // We set the last tipper only if the tip was counted // (not optimal to do it as many times as the tip counted though) last_tip_username = tip['from_user']; progress = goal_tokens/cb.settings.goal_value*100; progress = parseInt (progress); if (progress == 0 ) {moons = "\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF"}; if (progress > 0 && progress <10) {moons = "\u2764\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF"}; if (progress >= 10 && progress <20) {moons = "\u2764\u2764\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF"}; if (progress >= 20 && progress <30) {moons = "\u2764\u2764\u2764\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF"}; if (progress >= 30 && progress <40) {moons = "\u2764\u2764\u2764\u2764\u25EF\u25EF\u25EF\u25EF\u25EF\u25EF"}; if (progress >= 40 && progress <50) {moons = "\u2764\u2764\u2764\u2764\u2764\u25EF\u25EF\u25EF\u25EF\u25EF"}; if (progress >= 50 && progress <60) {moons = "\u2764\u2764\u2764\u2764\u2764\u2764\u25EF\u25EF\u25EF\u25EF"}; if (progress >= 60 && progress <70) {moons = "\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u25EF\u25EF\u25EF"}; if (progress >= 70 && progress <80) {moons = "\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u25EF\u25EF"}; if (progress >= 80 && progress <90) {moons = "\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u25EF"}; if (progress >= 90 && progress <=100) {moons = "\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u2764\u2764"}; update_subject(); cb.drawPanel(); } ); cb.onDrawPanel( function (user) { if (checkGoalReached()) { return { 'template': '3_rows_11_21_31', 'row1_value': 'Goal reached!', 'row2_value': '', 'row3_value': 'Thanks to all tippers' }; } else { if (isAscendingOrder()) { return { 'template': '3_rows_11_21_31', 'row1_value': 'Collected: ' + goal_tokens + ' (from ' + cb.settings.goal_value + ' tokens)', 'row3_value': 'Goal reached: ' + goal_count + ' times (' + total_tokens + ' tokens)', 'row2_value': moons + '(' + progress + '%)', }; } else { return { 'template': '3_rows_of_labels', 'row1_label': 'Next Tip Needed:', 'row1_value': next_tip_amount, 'row2_label': 'Goal reached:', 'row2_value': goal_count + ' times (' + total_tokens + ' tokens)', 'row3_label': 'Descending:', 'row3_value': 'From ' + cb.settings.goal_value + ' to 1' }; } } } ); // helper functions function update_subject() { if (goal_reached) { return; } var new_subject = ""; if (checkGoalReached()) { new_subject = cb.settings.goal_description + " [Goal reached! Thanks to all tippers.]"; goal_reached = true; } else { if (isAscendingOrder()) { new_subject = cb.settings.goal_description; } else { new_subject = cb.settings.goal_description + " [Tip in descending order from " + cb.settings.goal_value + " to 0. Next tip needed: " + next_tip_amount + "]"; } } cb.changeRoomSubject(new_subject); } function format_username(val) { if (val === null) { return "--"; } else { return val.substring(0, 12); } } function isAscendingOrder() { return (cb.settings.order == 'ascending'); } function setNextTipNeeded() { if (isAscendingOrder()) { next_tip_amount++; } else { next_tip_amount--; } } function checkGoalReached() { if (isAscendingOrder()) { return (next_tip_amount > cb.settings.goal_value); } else { return (next_tip_amount <= 0); } } function init() { if (isAscendingOrder()) { next_tip_amount = 1; } else { next_tip_amount = cb.settings.goal_value; } update_subject(); } init();
© Copyright Sisiva.Com 2011- 2024. All Rights Reserved.