Difference between revisions of "Template:OpCode"

From GTAMods Wiki
Jump to navigation Jump to search
m
(legacy template no longer needed)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>{{{games}}} {{#if:{{{command|}}}|'''{{{command}}}'''}}
<pre>
+
<hr />
 +
<dl class="opcode">
 +
<dt>Description</dt>
 +
<dd>{{{description}}}</dd>
 +
<dt>Syntax</dt>
 +
<dd>{{{syntax1}}}</dd><!--
 +
-->{{#if:{{{syntax2|}}}|
 +
<dd>{{{syntax2}}}</dd>}}<!--
 +
-->{{#if:{{{syntax3|}}}|
 +
<dd>{{{syntax3}}}</dd>}}
 +
<dt>Parameter</dt>
 +
<dd><dl>{{#if:{{{p1t|}}}|
 +
<dt>{{{p1t}}}</dt><!--
 +
-->{{#if:{{{p1d|}}}|
 +
<dd>{{{p1d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p2t|}}}|
 +
<dt>{{{p2t}}}</dt><!--
 +
-->{{#if:{{{p2d|}}}|
 +
<dd>{{{p2d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p3t|}}}|
 +
<dt>{{{p3t}}}</dt><!--
 +
-->{{#if:{{{p3d|}}}|
 +
<dd>{{{p3d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p4t|}}}|
 +
<dt>{{{p4t}}}</dt><!--
 +
-->{{#if:{{{p4d|}}}|
 +
<dd>{{{p4d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p5t|}}}|
 +
<dt>{{{p5t}}}</dt><!--
 +
-->{{#if:{{{p5d|}}}|
 +
<dd>{{{p5d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p6t|}}}|
 +
<dt>{{{p6t}}}</dt><!--
 +
-->{{#if:{{{p6d|}}}|
 +
<dd>{{{p6d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p7t|}}}|
 +
<dt>{{{p7t}}}</dt><!--
 +
-->{{#if:{{{p7d|}}}|
 +
<dd>{{{p7d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p8t|}}}|
 +
<dt>{{{p8t}}}</dt><!--
 +
-->{{#if:{{{p8d|}}}|
 +
<dd>{{{p8d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p9t|}}}|
 +
<dt>{{{p9t}}}</dt><!--
 +
-->{{#if:{{{p9d|}}}|
 +
<dd>{{{p9d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p10t|}}}|
 +
<dt>{{{p10t}}}</dt><!--
 +
-->{{#if:{{{p10d|}}}|
 +
<dd>{{{p10d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p11t|}}}|
 +
<dt>{{{p11t}}}</dt><!--
 +
-->{{#if:{{{p11d|}}}|
 +
<dd>{{{p11d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p12t|}}}|
 +
<dt>{{{p12t}}}</dt><!--
 +
-->{{#if:{{{p12d|}}}|
 +
<dd>{{{p12d}}}</dd>}}}}<!--
 +
-->{{#if:{{{p13t|}}}|
 +
<dt>{{{p13t}}}</dt><!--
 +
-->{{#if:{{{p13d|}}}|
 +
<dd>{{{p13d}}}</dd>}}}}<!--
 +
-->
 +
</dl></dd><!--
 +
-->{{#if:{{{native|}}}|
 +
<dt>Native analog</dt>
 +
<dd>{{{native}}}</dd>}}<!--
 +
--></dl>[[Category:OpCodes]]</includeonly><noinclude>
 +
<pre>{{OpCode
 +
| games      = list of supported games, required field
 +
| command    = command name
 +
| description = brief description, required field
 +
| syntax1    = common syntax, required field
 +
| syntax2    = alternative syntax
 +
| syntax3    = alternative syntax
 +
| p(1-13)t    = parameter type
 +
| p(1-13)d    = parameter description
 +
| native      = native analog
 +
}}</pre>
 +
 
 
{{OpCode
 
{{OpCode
| ini        = <line from ini file>
+
| games      = {{Icon|t}}
| description = <brief description>
+
| command    = WAIT
| p#          = <parameter description>
+
| description = Stops the execution of a [[script]]
| game        = <what game it supports>
+
| syntax1    = 0001: wait [''int''] ms
| native      = <analogy to GTA4>
+
| syntax2    = wait [''int'']
 +
| p1t        = [''int'']
 +
| p1d        = Time to wait in milliseconds
 +
| native      = [[WAIT]]
 
}}
 
}}
</pre>
 
 
</noinclude>
 
</noinclude>
 
{{#if:{{{ini|}}}|<code>{{{ini}}}</code><br>}}
 
{{#if:{{{description|}}}|'''Description''': {{{description}}}<br>}}
 
{{#if:{{{p1|}}}|'''Parameter 1''': {{{p1}}}<br>}}{{#if:{{{p2|}}}|'''Parameter 2''': {{{p2}}}<br>}}
 
{{#if:{{{p3|}}}|'''Parameter 3''': {{{p3}}}<br>}}{{#if:{{{p4|}}}|'''Parameter 4''': {{{p4}}}<br>}}
 
{{#if:{{{p5|}}}|'''Parameter 5''': {{{p5}}}<br>}}{{#if:{{{p6|}}}|'''Parameter 6''': {{{p6}}}<br>}}{{#if:{{{p7|}}}|'''Parameter 7''': {{{p7}}}<br>}}{{#if:{{{p8|}}}|'''Parameter 8''': {{{p8}}}<br>}}
 
{{#if:{{{p9|}}}|'''Parameter 9''': {{{p9}}}<br>}}{{#if:{{{p10|}}}|'''Parameter 10''': {{{p10}}}<br>}}{{#if:{{{p11|}}}|'''Parameter 11''': {{{p11}}}<br>}}{{#if:{{{p12|}}}|'''Parameter 12''': {{{p12}}}<br>}}{{#if:{{{p13|}}}|'''Parameter 13''': {{{p13}}}<br>}}{{#if:{{{p14|}}}|'''Parameter 14''': {{{p14}}}<br>}}{{#if:{{{p15|}}}|'''Parameter 15''': {{{p15}}}<br>}}{{#if:{{{p16|}}}|'''Parameter 16''': {{{p16}}}<br>}}
 
{{#if:{{{game|}}}|'''Supports''': {{{game}}}<br>}}
 
{{#if:{{{native|}}}|'''Analogous to GTA4''': {{{native}}}<br>}}
 

Latest revision as of 10:27, 22 December 2016

{{OpCode
| games       = list of supported games, required field
| command     = command name
| description = brief description, required field
| syntax1     = common syntax, required field
| syntax2     = alternative syntax
| syntax3     = alternative syntax
| p(1-13)t    = parameter type
| p(1-13)d    = parameter description
| native      = native analog
}}

GTA III Vice City San Andreas WAIT


Description
Stops the execution of a script
Syntax
0001: wait [int] ms
wait [int]
Parameter
[int]
Time to wait in milliseconds
Native analog
WAIT