StringToInt

From the Oblivion ConstructionSet Wiki
Revision as of 20:47, 25 March 2008 by imported>Speedo (Graduating from beta)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Pluggy.

Syntax:

(Result:long) StringToInt StringID:long

Converts a string into a integer variable. If the string does not contain a properly formatted int, it will return 0.

  • You may specify a hexadecimal number in the string, but it must be preceded with "0x". For example, the string "0x4B" would return the value 75.