<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
	<id>http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlGetScriptState</id>
	<title>LlGetScriptState - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlGetScriptState"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlGetScriptState&amp;action=history"/>
	<updated>2026-06-01T04:36:38Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlGetScriptState&amp;diff=428&amp;oldid=prev</id>
		<title>Mkx：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: integer llGetScriptState( string script ); |参数= 参数…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlGetScriptState&amp;diff=428&amp;oldid=prev"/>
		<updated>2020-07-01T09:12:47Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: integer llGetScriptState( string script ); |参数= 参数…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{函数详情&lt;br /&gt;
|函数名 = Function: integer llGetScriptState( string script );&lt;br /&gt;
|参数= 参数：string script – 这个脚本的目录中有一个脚本&lt;br /&gt;
|返回值= 返回值：返回一个布尔值(一个整数)，如果脚本正在运行，该值为TRUE。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|注意事项=如果脚本从基本物体的库存中丢失，或者它不是一个脚本，那么[[DEBUG_CHANNEL]]将显示错误。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|示例=&lt;br /&gt;
示例1&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    touch_start(integer num_detected)&lt;br /&gt;
    {&lt;br /&gt;
        integer numberOfScripts = llGetInventoryNumber(INVENTORY_SCRIPT);&lt;br /&gt;
 &lt;br /&gt;
        integer index;&lt;br /&gt;
        do&lt;br /&gt;
        {&lt;br /&gt;
            string scriptName = llGetInventoryName(INVENTORY_SCRIPT, index);&lt;br /&gt;
            integer scriptState = llGetScriptState(scriptName);&lt;br /&gt;
 &lt;br /&gt;
        //  默认值&lt;br /&gt;
            string output = &amp;quot;FALSE&amp;quot;;&lt;br /&gt;
        //  另外&lt;br /&gt;
            if (scriptState) output = &amp;quot;TRUE&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
            // PUBLIC_CHANNEL的整数值为0&lt;br /&gt;
            llSay(PUBLIC_CHANNEL,&lt;br /&gt;
                &amp;quot;Script named '&amp;quot; + scriptName + &amp;quot;' has current script state '&amp;quot; + output + &amp;quot;'.&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        while (++index &amp;lt; numberOfScripts);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|相关函数=&lt;br /&gt;
[[llSetScriptState]] &lt;br /&gt;
 &lt;br /&gt;
[[llResetOtherScript]]&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mkx</name></author>
		
	</entry>
</feed>