Difference between revisions of "Template:AdminBot Event Variables Table"
From SmartBots Developers Docs
Line 4: | Line 4: | ||
<span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="nv">cmd</span><span class="o"> == </span><span class="nv">{{{event}}}</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span><br><span class="w"> </span><span class="nf">llOwnerSay</span><span class="p">(</span><span class="s2">"Event "</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nv">cmd</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="s2">" arrived! Data:</span><span class="se">\n</span><span class="s2">"</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nv">data</span><span class="p">);</span><span class="w"></span> | <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="nv">cmd</span><span class="o"> == </span><span class="nv">{{{event}}}</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"></span><br><span class="w"> </span><span class="nf">llOwnerSay</span><span class="p">(</span><span class="s2">"Event "</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nv">cmd</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="s2">" arrived! Data:</span><span class="se">\n</span><span class="s2">"</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nv">data</span><span class="p">);</span><span class="w"></span> | ||
<span class="w"> </span><span class="p">}</span><span class="w"></span> | <span class="w"> </span><span class="p">}</span><span class="w"></span> | ||
− | <span class="p">}</span><span class="w"></span> | + | <span class="p">}</span><span class="w"></span></div></div> |
− | </div></div> | + | |
<!-- a kind of mess above, it is a <syntaxhighlight> tag imitation --> | <!-- a kind of mess above, it is a <syntaxhighlight> tag imitation --> |
Revision as of 11:25, 3 November 2017
// Event usage:
link_message(integer sender, integer cmd, string data, key id) {
if(cmd == {{{event}}}) {
llOwnerSay("Event " + cmd + " arrived! Data:\n" + data);
}
API parameters
llMessageLinked function accepts str and id parameters. Their meaning for {{{command}}} is explained below:
Variable | Required | Description. |
---|