Differential D4299 Diff 18793 ps/trunk/binaries/data/mods/public/maps/tutorials/introductory_tutorial.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/tutorials/introductory_tutorial.js
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | Trigger.prototype.tutorialGoals = [ | ||||
"instructions": markForTranslation("Order the idle Skirmishers to build an outpost to the north east at the edge of your territory."), | "instructions": markForTranslation("Order the idle Skirmishers to build an outpost to the north east at the edge of your territory."), | ||||
"OnPlayerCommand": function(msg) | "OnPlayerCommand": function(msg) | ||||
{ | { | ||||
if (msg.cmd.type == "repair" && TriggerHelper.EntityMatchesClassList(msg.cmd.target, "Outpost")) | if (msg.cmd.type == "repair" && TriggerHelper.EntityMatchesClassList(msg.cmd.target, "Outpost")) | ||||
this.NextGoal(); | this.NextGoal(); | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"instructions": markForTranslation("Start training a batch of Female Citizens in the Civic Center and set its rally point to the farm (right click on it)."), | "instructions": markForTranslation("Start training a batch of Female Citizens in the Civic Center and set its rally point to the Field (right click on it)."), | ||||
"Init": function() | "Init": function() | ||||
{ | { | ||||
this.rallyPointSet = false; | this.rallyPointSet = false; | ||||
this.trainingStarted = false; | this.trainingStarted = false; | ||||
}, | }, | ||||
"IsDone": function() | "IsDone": function() | ||||
{ | { | ||||
return this.rallyPointSet && this.trainingStarted; | return this.rallyPointSet && this.trainingStarted; | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator