Skip to content

ansi_char

Matěj Štágl edited this page Dec 1, 2018 · 9 revisions

ansi_char

Returns string which contains a character with raw BYTE value.

Syntax:

ansi_char(val);
Argument Description
int val Raw byte value

Returns: char

Description:

This function returns a string which contains a character with raw BYTE value set. It should be used to save to disk for encoding.

Example:

//any event
char chr = ansi_char($EF); 
file_text_write_string(global.save_file, str);

This code writes the character $EF to the save file.

Back to strings

Clone this wiki locally