From 96f692215eb4f937587a0721d8580820cbbef4ce Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Sat, 23 Feb 2013 12:02:02 +0000 Subject: table based triggers --- readme.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 917f2aa..26b2fff 100644 --- a/readme.md +++ b/readme.md @@ -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 -- cgit v1.2.3