Created
November 16, 2017 15:23
-
-
Save Makopo/1ab0906f02f353d5274dad0951b79c0c to your computer and use it in GitHub Desktop.
Qiita Corrade入門その2 「定数を追加」まで
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string CORRADE = "XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; | |
string GROUP = "My Group"; | |
string PASSWORD = "YYYYYYYY"; | |
default | |
{ | |
touch_start(integer num_detected) | |
{ | |
llOwnerSay("ボットアバターを座らせます"); | |
llInstantMessage(CORRADE, | |
wasKeyValueEncode( | |
[ | |
"command", "relax", | |
"group", wasURLEscape(GROUP), | |
"password", wasURLEscape(PASSWORD) | |
] | |
) | |
); | |
state on_the_ground; | |
} | |
} | |
state on_the_ground | |
{ | |
touch_start(integer num_detected) | |
{ | |
llOwnerSay("ボットアバターを立たせます"); | |
llInstantMessage(CORRADE, | |
wasKeyValueEncode( | |
[ | |
"command", "stand", | |
"group", wasURLEscape(GROUP), | |
"password", wasURLEscape(PASSWORD) | |
] | |
) | |
); | |
state default; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment