objprogs
This is an old revision of the document!
| Field | Type | Note |
| name | string | |
| shortdescr | string | |
| clan | string | No clan is a blank string, e.g. "", not nil |
| clanrank | number | No clan returns 0, 1 = recruit, 2 = initiate, etc |
| level | number | |
| owner | string | No owner returns nil |
| cost | number | |
| material | string | |
| vnum | number | |
| otype | string | See Flags (Item table) |
| weight | number | |
| room | ROOMProperties OR ROOM | When used with GIVE mprog, will return nil |
| inobj | OBJProperties OR OBJ | |
| carriedby | CHProperties OR CH | |
| v0 | number | For weapons: exotic = 0, sword = 1, dagger = 2, spear = 3, mace = 4, axe = 5, flail = 6, whip = 7, polearm = 8, gun = 9, bow = 10 |
| v1 | number | |
| v2 | number | |
| v3 | number | For weapons: see WeaponsDamTypeTab OR table |
| v4 | number | |
| wearlocation | string | See Flags OR wear location flags |
| contents | array of OBJProperties OR OBJ | |
| proto | OBJPROTOProperties OR OBJPROTO | Prototype for the object |
==Otype specific properties ===fountain
| =Field | =Type |
| liquid | string |
| left | number |
| total | number |
| =Function | =Argument | =Result | =Note | =Valid args |
| extra | string | boolean | Check if specific extra flag is set. | See Flags |
| wear | string | boolean | Check if specific wear flag is set. | |
| destroy | none | none | Destroy the OBJ | |
| echo | string | none | Echo to char if carried, otherwise to room. | |
| oload | number | OBJ | ||
| loadprog | number | boolean | ||
| loadscript | string[subfolder],string[filename] | boolean | runs the script in the file in the subfolder given using the OBJ's script space. Returns return value of the script (false by default). | |
| loadstring | string | boolean | ||
| savetbl | string[filename],table | none | ||
| loadtbl | string[filename] | table | ||
| tprint | table | none | ||
| DelayFunction OR delay | number, function | none | ||
| CancelFunction OR cancel | none | none |
objprogs.1403232266.txt.gz · Last modified: 2014/06/20 02:44 by astark