うごけ!道案内の使い方 - LatLongLabに出てくるサンプルがなかなか楽しいのでメモ。

スパイ大作戦


message このメッセージは5秒後に自動的に消滅する
sleep 5000
moveto 35/40/53.567,139/46/2.986

遠足


ask おやつは? リンゴ バナナ ケーキ
goto apple
goto banana
goto cake
:apple
message リンゴは健康に良いです
exit
:banana
message バナナはおやつに含まれます
exit
:cake
message ケーキはカロリー過多です
exit

ドラクエ


prompt なまえをいれてください username
message おお %username%! しんでしまうとは なにごとだ!
sleep 1000

ドラクエIのアレ


ask せかいのはんぶんをおまえにやろう。 はい いいえ
goto badend
goto finalbattle
:badend
message では せかいのはんぶん やみのせかいを あたえよう!
exit
:finalbattle
message おろかものめ! おもいしるがよい!
sleep 1000 


prompt 【メニュー】カレー500円、ラーメン600円、ハイオク130円、さてご注文は? order
switch order カレー ラーメン ハイオク
goto carry
goto noodle
goto highoctane
goto other
:carry
message あいよ、カレー一丁!
exit
:noodle
message あいよ、ラーメン一丁!
exit
:highoctane
message まじかーハイオク飲んでみるかおめー
exit
:other
message うちじゃあそれはできねえなあ
exit 

Ref. うごけ!道案内 - LatLongLab

tags: zurazure

Posted by NI-Lab. (@nilab)