Goals
Goals are the way CodeCombat decides whether or not a level is completed. They are used by the achievement system to award completion as well because it is possible to beat a level without completing all the optional goals.
- Further Reading: Referee: Advanced Goals
Structure of a Goal
Name
This is what displays in the goal panel.
i18n
Be sure to include this field so translators can translate the goals.
ID
A specific identification string to reference the goal programatically.
World Ends After
How long after the goal is completed to end the level.
How Many
How many times this goal needs to be satisfied to complete.
Hidden
If this goal only appears after failure. Usually it is implied that the hero must survive, so it remains hidden until the hero dies.
Optional
This is to signify a goal as optional. If it isn't required to get the gems before escaping, the goal is optional.
Save Thangs
What Thangs to save. This can be a specific Thang ID or a whole team.
Get To Locations
Which locations specific Thangs need to get.
Code Problems
Whether or not code problems are allowed.
Leave Off Sides
If specific units need to escape off the sides of the map.
Lines of Code
Check if there is a limit on how many lines of code required.
Keep From Leaving Off Sides
Prevent certain units from leaving off the side of the map.
Team
This is specifically for multi-player levels. Each side has their own victory goals, for example, a Human needs to slay all the Ogres and an Ogre needs to slay all the Humans. Each goal would be assigned to the individual team.
Get All To Locations
An expansion on how many need to get to a location.
Kill Thangs
A very basic goal. Usually killing all the Ogres on a map.
- Home
- Archmage Home
- Artisan Home
- Adventurer Home
- Scribe Home
- Diplomat Home
- Ambassador Home
- Archmage General
- Mission statement
- Coco Models
- Coding Guidelines
- Cookbook
- File system
- JSON Schema
- Technical overview
- Testing
- Third party software and services
- Artisan General
- Building A Level
- Coding Guidelines for Artisans
- Editing Thang Components
- Important Artisan Concepts
- Keyboard Shortcuts
- Artisan How-To Index
- Adventurer General
- Scribe General
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- Ambassador General
- Dev Setup
- Dev Setup: Linux
- Dev Setup: Windows
- Dev Setup: Mac
- Dev Setup: Vagrant
- Dev Setup: Issues
- Game Engine
- Component
- Multiplayer
- Surface
- System
- Thang
- Thang Component System
- Tome
- World
- Artisan Tabs
- Components And Systems
- Scripts
- Settings
- Thangs
- Other
- Aether
- Client models
- Developer organization
- Educational Standards
- Events, subscriptions, shortcuts
- Chat Room
- Chat Room Rules
- Permissions
- Project Ideas List
- Treema
- Versioning
- Views
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute