<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://wiki.brdoom.org/index.php?action=history&amp;feed=atom&amp;title=Terminate</id>
	<title>Terminate - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.brdoom.org/index.php?action=history&amp;feed=atom&amp;title=Terminate"/>
	<link rel="alternate" type="text/html" href="https://wiki.brdoom.org/index.php?title=Terminate&amp;action=history"/>
	<updated>2026-04-15T02:47:00Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.brdoom.org/index.php?title=Terminate&amp;diff=177&amp;oldid=prev</id>
		<title>MegaManx3: Criou página com &#039; terminate;  ==Uso==  Terminate é uma função usada em ACS para encerrar o script atual antecipadamente. Você também pode usar ACS_Terminate para encerrar outros scripts.  ==Exemplo==  Este script se encerrará se o jogador ainda não tiver coletado todas as chaves.   int keys = 0; // Veja Scope    script 1 (void)  {      keys++;        if (keys &lt; 3)           terminate;...&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.brdoom.org/index.php?title=Terminate&amp;diff=177&amp;oldid=prev"/>
		<updated>2026-03-06T14:44:38Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039; terminate;  ==Uso==  Terminate é uma função usada em &lt;a href=&quot;/index.php/ACS&quot; title=&quot;ACS&quot;&gt;ACS&lt;/a&gt; para encerrar o script atual antecipadamente. Você também pode usar &lt;a href=&quot;/index.php?title=ACS_Terminate&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;ACS Terminate (página inexistente)&quot;&gt;ACS_Terminate&lt;/a&gt; para encerrar outros scripts.  ==Exemplo==  Este &lt;a href=&quot;/index.php/ACS&quot; title=&quot;ACS&quot;&gt;script&lt;/a&gt; se encerrará se o jogador ainda não tiver coletado todas as chaves.   &lt;a href=&quot;/index.php?title=Data_Types&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Data Types (página inexistente)&quot;&gt;int&lt;/a&gt; keys = 0; // Veja &lt;a href=&quot;/index.php?title=Scope&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Scope (página inexistente)&quot;&gt;Scope&lt;/a&gt;    script 1 (&lt;a href=&quot;/index.php/Script_types#Closed_scripts&quot; title=&quot;Script types&quot;&gt;void&lt;/a&gt;)  {      keys&lt;a href=&quot;/index.php?title=Operators&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Operators (página inexistente)&quot;&gt;++&lt;/a&gt;;        if (keys &amp;lt; 3)           &lt;a href=&quot;/index.php/Terminate&quot; title=&quot;Terminate&quot;&gt;terminate&lt;/a&gt;;...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt; terminate;&lt;br /&gt;
&lt;br /&gt;
==Uso==&lt;br /&gt;
&lt;br /&gt;
Terminate é uma função usada em [[ACS]] para encerrar o script atual antecipadamente. Você também pode usar [[ACS_Terminate]] para encerrar outros scripts.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
&lt;br /&gt;
Este [[ACS|script]] se encerrará se o jogador ainda não tiver coletado todas as chaves.&lt;br /&gt;
&lt;br /&gt;
 [[Data Types|int]] keys = 0; // Veja [[Scope]]&lt;br /&gt;
 &lt;br /&gt;
 script 1 ([[Script_types#Closed_scripts|void]])&lt;br /&gt;
 {&lt;br /&gt;
     keys[[Operators#&amp;#039;++&amp;#039; (unary)|++]];&lt;br /&gt;
 &lt;br /&gt;
     if (keys &amp;lt; 3)&lt;br /&gt;
          [[terminate]];&lt;br /&gt;
 &lt;br /&gt;
     // Todas as chaves coletadas, abra a porta.&lt;br /&gt;
     [[Door_Open]] (24, 16, 0);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Note que não há necessidade de adicionar o comando terminate bem no final de um script. (Depois da linha [[Door_Open]] neste exemplo.) Quando a chave de fechamento é alcançada, o script terminará automaticamente.&lt;br /&gt;
&lt;br /&gt;
== Veja também ==&lt;br /&gt;
* [[ACS_Terminate]]&lt;br /&gt;
* [[Suspend]]&lt;br /&gt;
[[Category:ACS]]&lt;/div&gt;</summary>
		<author><name>MegaManx3</name></author>
	</entry>
</feed>