quest.add

Section: Quests

What it does

quest.add acts on quest: it adds. It takes id, name, description and objectives. description and objectives are optional.

Signature

quest.add(id, name, description?, objectives?)

Arguments

  • id
  • name
  • descriptionoptional
  • objectivesoptional

Example · generated

function start() {  quest.add('main', 'main');}

quest.add is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.

16 members in quest