:: StoryTitle Chapbook: Player Statistics :: Start {embed passage: "Setup"} {embed passage: "Statistics"} :: IncreaseEmpathy empathy: empathy + 1 points: points - 1 -- {embed passage: "Statistics"} :: DecreaseEmpathy empathy: empathy - 1 points: points + 1 -- {embed passage: "Statistics"} :: IncreaseIntelligence intelligence: intelligence + 1 points: points - 1 -- {embed passage: "Statistics"} :: DecreaseIntelligence intelligence: intelligence - 1 points: points + 1 -- {embed passage: "Statistics"} :: Setup empathy: 10 intelligence: 10 points: 5 -- :: Statistics {embed passage: "CheckValues"} [if points > 0 && empathy > 0] Empathy: [[[+]->IncreaseEmpathy]] [[[-]->DecreaseEmpathy]] [continued] [if points > 0 && intelligence > 0] Intelligence: [[[+]->IncreaseIntelligence]] [[[-]->DecreaseIntelligence]] [continued] Empathy: {empathy} Intelligence: {intelligence} Remaining Points: {points} [[Reset Points->Start]] :: CheckValues [JavaScript] let empathy = engine.state.get('empathy'); let intelligence = engine.state.get('intelligence'); let points = engine.state.get('points'); if(empathy > 20){empathy = 20;} if(intelligence > 20){intelligence = 20;} if(points < 0){points = 0;} if(points > 25){points = 25;} engine.state.set('empathy', empathy); engine.state.set('intelligence', intelligence); engine.state.set('points', points);