User Tools

Site Tools


objprogs
FieldTypeNote
namestring
shortdescrstring
clanstringNo clan is a blank string, e.g. “”, not nil
clanranknumberNo clan returns 0, 1 = recruit, 2 = initiate, etc
levelnumber
ownerstringNo owner returns nil
costnumber
materialstring
vnumnumber
otypestringSee Flags (Item table)
weightnumber
roomROOMProperties OR ROOMWhen used with GIVE mprog, will return nil
inobjOBJProperties OR OBJ
carriedbyCHProperties OR CH
v0numberFor weapons: exotic = 0, sword = 1, dagger = 2, spear = 3, mace = 4, axe = 5, flail = 6, whip = 7, polearm = 8, gun = 9, bow = 10
v1number
v2number
v3numberFor weapons: see WeaponsDamTypeTab OR table
v4number
wearlocationstringSee Flags OR wear location flags
contentsarray of OBJProperties OR OBJ
protoOBJPROTOProperties OR OBJPROTOPrototype for the object

==Otype specific properties ===fountain

=Field=Type
liquidstring
leftnumber
totalnumber
=Function=Argument=Result=Note=Valid args
extrastringbooleanCheck if specific extra flag is set.See Flags
wearstringbooleanCheck if specific wear flag is set.
destroynonenoneDestroy the OBJ
echostringnoneEcho to char if carried, otherwise to room.
oloadnumberOBJ
loadprognumberboolean
loadscriptstring[subfolder],string[filename]booleanruns the script in the file in the subfolder given using the OBJ's script space. Returns return value of the script (false by default).
loadstringstringboolean
savetblstring[filename],tablenone
loadtblstring[filename]table
tprinttablenone
DelayFunction OR delaynumber, functionnone
CancelFunction OR cancelnonenone
objprogs.txt · Last modified: 2014/06/19 19:44 by astark