Asc(s:Str):Int

Returns the character code of the first character of the string given as parameter. If s is not a string, it is converted into one before being examined. If s is EMPTY or an empty string, returns EMPTY.

In PCC2 since 1.99.12, this function returns the Unicode value of the character, which can be an (almost) arbitrary non-negative integer. In previous versions, it returns the code in the extended ASCII set used as the game character set, which is in the range 0..255.

Since: PCC 0.98.5, PCC2 1.99.8