Difference between revisions of "AGI Command Reference - String Management Commands"

From AGI Wiki
Jump to navigationJump to search
Line 27: Line 27:
 
 
 
 
  
 +
== <br />set.string(n, m); ==
  
 +
<blockquote>Stores message number m in the string variable n.</blockquote>
 +
 +
== word.to.string(n, m); ==
 +
 +
<blockquote>Word number m of the user input is stored in String(n).</blockquote>
 +
 +
== get.string(n, m, x, y, l); ==
 +
 +
<blockquote>User input is stored in String(n). m is the number of the message used as the prompt, x, y, l are input position and maximum string length.</blockquote>
 +
 +
== parse(n); ==
 +
 +
<blockquote>Parses String(n) as if it were entered by the player.</blockquote>
 +
 +
== get.num(n, m); ==
 +
 +
<blockquote>Enters a number from the keyboard into Var(m). Message n is used as the prompt.</blockquote>
  
 
&nbsp;
 
&nbsp;

Revision as of 22:48, 22 December 2013

Tutorials Table of Contents
AGI Command Reference Index

Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16


String Management Commands
By Chris Cromer

 


set.string(n, m);

Stores message number m in the string variable n.

word.to.string(n, m);

Word number m of the user input is stored in String(n).

get.string(n, m, x, y, l);

User input is stored in String(n). m is the number of the message used as the prompt, x, y, l are input position and maximum string length.

parse(n);

Parses String(n) as if it were entered by the player.

get.num(n, m);

Enters a number from the keyboard into Var(m). Message n is used as the prompt.

 

Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16


Tutorials Table of Contents
AGI Command Reference Index

< Previous: Text Management CommandsNext: Initialization Commands >