entertext

Script Reference Text

entertext ([textvariable]; x; y; font ; maxEnter ;red ;green ;blue ) //Advanced

Used for : Textout lines.

Parameters :

- [textvariable]- The string variable that will hold the text.
- x,y - Pixelposition on screen.
- font - 1-99
- maxEnter - Maximum number of letters that the player may enter.
- red,green,blue - Optional. RGB Colorvalues 0-255.

Description :

Prompts the player to enter a text. The string variable that shall hold the text must be written with square brackets. You can also put some text around the players input like "Name : [myname]".

Scripts (except loop1) will be paused. The text is saved when the player hits the ENTER or ESCAPE key.

If no colorvalues are provided the default infotextcolor will be used.

To check if the player hasn't entered anything use:

if_string ( textvar ; [emtpy])

[Variabels] can be used for color, font and position.