User Tools

Site Tools


lgscript:datasrv

DataSrv

GetString

Read a string from a resource file. You can’t use the directory “books”. Instead, set the file name to ”../books/file” and use the directory “strings”.

Returns string result
Parameter string file
Parameter string name
Parameter string directory (optional)

GetObjString

Read a string using the value of a property. Thief names are “objnames” and “objdescs”. System Shock 2 names are “objname”, “objshort”, “objlooks”, “modify1”, “modify2”, “hacktext”, “usemsg”, “lockmsg”, “sett1”, “sett2”, “shead1”, “shead2”, “rsrchtxt”, “huduse”, “worldcursor”, “invcursor”, “usecursor”.

Returns string result
Parameter integer object
Parameter string name

DirectRand

A random number in the range [0,32767]

Returns number result

RandInt

A random number in the range [low,high]

Returns integer result
Parameter integer low
Parameter integer high

RandFlt0to1

A random number in the range [0,1]

Returns number result

RandFltNeg1to1

A random number in the range (-1,1]

Returns number result
lgscript/datasrv.txt · Last modified: 2009/08/25 22:05 (external edit)