diff options
| author | Georg Brandl <georg@python.org> | 2016-01-17 17:00:26 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2016-01-17 17:00:26 +0100 |
| commit | fc55dc2e95bcea03fbc0d8e1d130c9e53f3f1dad (patch) | |
| tree | 2a06d2fac7321452513bda7739e297a7e9848ec4 /tests/examplefiles/example.moo | |
| download | pygments-git-fc55dc2e95bcea03fbc0d8e1d130c9e53f3f1dad.tar.gz | |
merge default into stable
Diffstat (limited to 'tests/examplefiles/example.moo')
| -rw-r--r-- | tests/examplefiles/example.moo | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/examplefiles/example.moo b/tests/examplefiles/example.moo new file mode 100644 index 00000000..1a15914d --- /dev/null +++ b/tests/examplefiles/example.moo @@ -0,0 +1,26 @@ +if (this.running) + player:tell("[Train] Error: already a jump in progress"); + return; +endif +this.running = 1; +this.aborted = 0; +this:announce_all("[Train] departure in 20 seconds"); +dest = this.targets[random(length(this.targets))]; +this:announce_all("[Train] Next stop is '", dest:title(), "'"); +this:announce_all("You hear the engines starting up"); +this.location:announce("The MOOTrain starts up his engines"); +suspend(20); +if (this.aborted) + this.running = 0; + this.aborted = 0; + return; +endif +this:announce_all("[Train] Departure!"); +this.location:announce_all("The MOOTrain leaves into the 42th dimension!"); +this:announce_all("Outside you see the lights of the 42th dimension"); +this:moveto(dest); +suspend(4); +this:announce_all("The glowing gets less, until you can see the clear shape of the room, the MOOTrain has landed in"); +this.location:announce_all("The MOOTrain arrives out of the 42th dimension!"); +this:announce_all("[Train] arrived in '", dest:title(), "'"); +this.running = 0;
\ No newline at end of file |
