:: StoryTitle Chapbook: Static Healthbars :: Start [JavaScript] // Create a global variable, health engine.state.set('health', 80); // Get the current value of 'health' let health = engine.state.get('health'); // Write description write("Show a healthbar using a Progress element:
"); // Write the progress element with dynamic value write('
'); // Write description write("Show a healthbar using a Meter element:
"); // Write the meter element with dynamic value write('');