|
|
|
|
|
%gainPuzzlePoints()
Aliases | %gainPuzzlePoints( ), %gainExp( ) |
---|
Parameters | mobile @target, integer @points, string @name [, mixed @flag1 [, @flag2 [, ...] ] ] |
---|
|
Carnage now supports a puzzle points system for tracking solved in-game puzzles and quests. This function should be used to dole out puzzle point rewards. By default puzzle points are awarded to the target only, and only once per real life day for the given puzzle name; however, this behaviour can be changed by passing along one or more of the following flags.
allowMultiple - Allows the points to be gained multiple times in the same day for the same puzzle. For the most part this should NOT be used :)
groupGain - Puzzle points are awarded to everyone grouped with the target that are in the same room. This is useful for large quests that require a group of adventurers to complete. Each member will get the full number of points.
Example:
%gainPuzzlePoints( @n, 1, "cheese quest" )
Example 2:
%gainPuzzlePoints( @n, 20, "styx islands", groupGain ) |
|
|
|
|
|
|
|