|
|
|
|
|
%gainExperience()
Aliases | %gainExperience( ), %gainExp( ) |
---|
Parameters | mobile @target, integer @experience, string @description |
---|
|
Since the worlds of Carnage now uses a stat gain system that is based on dice rolls when experience is gained, it is no longer useful to just increase a player's experience when experience is the reward. Instead the gained experience must be passed through the system's internal system to see if the player should receive any stat gains. The %gainExperience() function was designed for exactly this purpose.
NOTE: whenever this function is used a log is made of what script called it, who received the experience, and how much. DO NOT ABUSE!
The @description parameter should contain a short description describing the reason for the experience gain.
Example:
%gainExperience( @n, 5000 + 1d1000, "Completed cheese quest" ) |
|
|
|
|
|
|
|