diff options
author | Rubenwardy <anjayward@gmail.com> | 2013-02-23 12:02:02 +0000 |
---|---|---|
committer | Rubenwardy <anjayward@gmail.com> | 2013-02-23 12:02:02 +0000 |
commit | 96f692215eb4f937587a0721d8580820cbbef4ce (patch) | |
tree | ccdd53842f3d63eb9bcdb7f0979758448333f8f8 /readme.md | |
parent | 0b4ac32bfb1b20426c818865edbab47f851eeab9 (diff) |
table based triggers
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -16,27 +16,27 @@ The API * desciption * sound [optional] * image [optional] - * func [optional] - see below + * trigger [optional] [table] + * type - "dig" or "place" + * (for dig/place type) node - the nodes name + * (for dig/place type) target - how many to dig / place * awards.give_achievement(name,award) * -- gives an award to a player -* awards.register_onDig(func) +* awards.register_onDig(func(player,data)) * -- return award name or null - * -- there will be built in versions of this function -* awards.register_onPlace(func) +* awards.register_onPlace(func(player,data)) * -- return award name or null - * -- there will be built in versions of this function Player Data =========== A list of data referenced/hashed by the player's name. - -* name [string] -* getNodeCount('node_name') [function] -* count [table] - dig counter - * modname [table] - * itemname [int] -* place [table] - place counter - * modname [table] - * itemname [int]
\ No newline at end of file +* player name + * name [string] + * count [table] - dig counter + * modname [table] + * itemname [int] + * place [table] - place counter + * modname [table] + * itemname [int]
\ No newline at end of file |