Menu
Coddy logo textTech

Declare Character Stats

Part of the Fundamentals section of Coddy's Lua journey — lesson 36 of 90.

challenge icon

Challenge

Easy

Building on your character status display header, declare the essential character variables that will store the character's information. Create three variables: name as a string with the value "Coddy", level as a number with the value 5, and hp as a number with the value 100. These variables will represent the core statistics for your character profile system.

Try it yourself

print("=== Character Status Display ===")

All lessons in Fundamentals