chproperties
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| chproperties [2014/06/20 02:18] – astark | chproperties [2014/06/20 03:13] (current) – removed vodur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |!Get |!Set |!Field |!Type |!Note |!Possible values | | ||
| - | |x |x |name |string |Set for NPCs only | | | ||
| - | |x |x |level |number |Set for NPCs only | | | ||
| - | |x |x |hp |number |Set for NPCs only | | | ||
| - | |x |x |maxhp |number | | | | ||
| - | |x |x |mana |number |Set for NPCs only | | | ||
| - | |x |x |maxmana |number | | | | ||
| - | |x |x |move |number |Set for NPCs only | | | ||
| - | |x |x |maxmove |number | | | | ||
| - | |x |x |gold |number |Set for NPCs only | | | ||
| - | |x |x |silver |number |Set for NPCs only | | | ||
| - | |x | |money |number |total money converted to silver | | | ||
| - | |x |x |sex |string |Set for NPCs only |none, | ||
| - | |x |x |size |string |Set for NPCs only |tiny, | ||
| - | |x |  |position |string |  |dead, | ||
| - | |x |x |align |number | | | | ||
| - | |x |x |str |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |con |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |vit |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |agi |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |dex |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |int |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |wis |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |dis |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |cha |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |luc |number |Set for NPCs only. Range 1-200. | | | ||
| - | |x |x |hitroll |number |Get returns current value including all bonuses. Set for NPCs only. Set will set the mob's hitroll percentage, not the direct value. | | | ||
| - | |x |x |damroll |number |Get returns current value including all bonuses. Set for NPCs only. Set will set the mob's damroll percentage, not the direct value. | | | ||
| - | |x |x |attacktype |string |Set for NPCs only. |See ' | ||
| - | |x |  |damnoun |string |  |See ' | ||
| - | |x |  |damtype |string |  |See ' | ||
| - | |x | |clan |string | | | | ||
| - | |x | |class |string | | | | ||
| - | |x |x |race |string |Set for NPCs only. | | | ||
| - | |x | |ispc |boolean |Whether is a player | | | ||
| - | |x | |isnpc |boolean |Whether is a mob | | | ||
| - | |x |  |isgood |boolean |Whether is good (align> | ||
| - | |x |  |isevil |boolean |Whether is evil (align< | ||
| - | |x | |isneutral |boolean |Whether is neutral (-350 | | | ||
| - | |x | |isimmort |boolean |Whether is immortal | | | ||
| - | |x | |ischarm |boolean |Whether is charmed | | | ||
| - | |x | |isfollow |boolean |Whether is following someone | | | ||
| - | |x |  |isactive |boolean |Whether position is > than sleeping (resting, | ||
| - | |x |  |fighting |[[: | ||
| - | |x | |heshe |string |he/she/it for the character. | | | ||
| - | |x | |himher |string |him/her/it for the character. | | | ||
| - | |x |  |hisher |string |his/ | ||
| - | |x |  |inventory |array of [[: | ||
| - | |x |  |room |[[: | ||
| - | |x | |groupsize |number |0 for no group, 1 for 1 other person, etc. | | | ||
| - | |x | |stance | | | | | ||
| - | |x |x |description |Set for NPCs only. | | | | ||
| - | |x |  |pet |[[: | ||
| - | |x |  |affects |array of [[: | ||
| - | |x | |clanrank |number |PC only | | | ||
| - | |x | |remorts |number |PC only | | | ||
| - | |x | |explored |number |PC only | | | ||
| - | |x | |beheads |number |PC only | | | ||
| - | |x | |pkills |number |PC only | | | ||
| - | |x | |pkdeaths |number |PC only | | | ||
| - | |x | |questpoints |number |PC only | | | ||
| - | |x | |bank |number |PC only | | | ||
| - | |x | |mobkills |number |PC only | | | ||
| - | |x | |mobdeaths |number |PC only | | | ||
| - | |x | |vnum |number |NPC only | | | ||
| - | |x |  |proto |[[: | ||
| - | |x | |ingame |boolean |NPC only | | | ||
| - | |x |x |shortdescr |string |NPC only | | | ||
| - | |x |x |longdescr |string |NPC only | | | ||
| - | |||
| - | |!Function |!Argument |!Result |!Note |!Valid args | | | | | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |||
| - | Other goodies | ||
| - | |||
| - | |!Function |!Argument |!Result |!Note |!Valid args |!Example | | ||
| - | |randchar |none |[[: | ||
| - | |setlevel |number |none |Sets mob level, restores the mob to full health. | | | | ||
| - | |destroy |none |none |Destroy the CH, error if attempted on player |  |mob: | ||
| - | |[[: | ||
| - | |qtimer |number |number |Return the timer value of the given qset on the CH | | | | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |tprint |table |none |prints the content of a table using say. Good for debug. | | | | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |[[: | ||
| - | |||
| - | |!Function |!Argument |!Result |!Note |!Valid args |!Example | | ||
| - | |canattack |[[: | ||
| - | |cansee |[[: | ||
| - | |ccarries |string |boolean |Whether carries arg in a container. | | | | ||
| - | |skilled |string |boolean |Whether has skill. | | | | ||
| - | |act |string |boolean |  |  |if mob: | ||
| - | |carries |string |boolean |Whether carries arg (vnum or keyword). | | | | ||
| - | |[[: | ||
| - | |has |string |boolean |Whether is carrying an item of type arg. |See [[: | ||
| - | |uses |string |boolean |Whether is wearing equipment of type arg. |See [[: | ||
| - | |affected |string |boolean |Check if affected by argument. |See [[: | ||
| - | |offensive |string |boolean |Check if specific offensive flag is set |See [[: | ||
| - | |immune |string |boolean |Check if immune to argument |See [[: | ||
| - | |resist |string |boolean |Check if resist argument |See [[: | ||
| - | |vuln |string |boolean |Check if vuln to argument |See [[: | ||
| - | |mobhere |string/ | ||
| - | |objhere |string/ | ||
| - | |mobexists |string |boolean |Whether mob with name exists in game. | | | | ||
| - | |objexists |string/ | ||
| - | |||
| - | \\ | ||
chproperties.1403230692.txt.gz · Last modified: 2014/06/20 02:18 by astark
                
                