Routine
The steps of one routine, one method each, in the order it runs them.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Routine():
Routine
Returns
Section titled “Returns”Routine
Methods
Section titled “Methods”face()
Section titled “face()”face():
Routine
Turns toward the player’s character nearest to it: the one who came close or pressed its prompt.
Returns
Section titled “Returns”Routine
on(
event,name):Routine
Starts the routine name on event, only while in this routine.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event |
NpcEvent |
name |
string |
Returns
Section titled “Returns”Routine
play()
Section titled “play()”play(
clip):Routine
Plays clip, a clip its avatar has.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
clip |
string |
Returns
Section titled “Returns”Routine
resume()
Section titled “resume()”resume():
Routine
Goes back to the routine an event interrupted, at the step it was on, once the last step is done: how a routine an event starts ends when it names no other way out.
Returns
Section titled “Returns”Routine
say(
line):Routine
Shows line over its head for a few seconds, and goes on.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
line |
string |
Returns
Section titled “Returns”Routine
then()
Section titled “then()”then(
name):Routine
Goes to the routine name once the last step is done.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
Returns
Section titled “Returns”Routine
turn()
Section titled “turn()”turn(
degrees):Routine
Turns on the spot by degrees, left for a positive number.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
degrees |
number |
Returns
Section titled “Returns”Routine
wait()
Section titled “wait()”wait(
seconds):Routine
Stands for seconds, or for a roll { between: [min, max] }.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
seconds |
WaitSeconds |
Returns
Section titled “Returns”Routine
walk()
Section titled “walk()”walk<
Point>(route,walkOptions?):Routine
Walks route once, pausing where pause says, and repeat more
times; the step ends with the last pass.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
Point extends string |
never |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
route |
Route<Point> |
walkOptions |
WalkOptions<NoInfer<Point>> |
Returns
Section titled “Returns”Routine