グループ内のnum、strそしてidパラメータ、又はlinknumのリンクとlink_messageで作動します。
| • integer
| linknum
| –
| リンクナンバーあるいはLINK_* フラグ。
|
|
| • integer
| num
|
|
|
|
| • string
| str
|
|
|
|
| • key
| id
|
|
|
|
idを2つ目のstringフィールドのように使うことができます(LSLでは、keyは慣用的演算子としてstringのように実行されます)。stringとkey間での型変更は、含まれているデータへの影響はありません。
部分的な利用
default
{ // Quick and dirty debugging link_messages
link_message(integer sender_num, integer num, string msg, key id) {
llSay(DEBUG_CHANNEL, llList2CSV([sender_num, num, msg, id]));
}
}
// This is just an example script, you shouldn't handle link message within single script this way.
default{ // To propagate an unlimted number of arguments of any type.
// Presumed, the separator string isn't used in any source string!
state_entry() {
list my_list = [1, 2.0, "a string", <1, 2, 3>, <1, 2, 3, 4>, llGetOwner()];
string list_parameter = llDumpList2String(my_list, "|"); // Typecast list to a string
llMessageLinked(LINK_THIS, 0, list_parameter, "")
}
link_message(integer sender_num, integer num, string list_argument, key id) {
list re_list = llParseString2List(list_argument, ["|"], []); // Typecast string back to a list
}
}
この項目はあなたにとって参考にならない項目ですか?もしかしたら
LSL Wikiの関連した項目が参考になるかもしれません。