|
|
|
|
|
%skillAffectMerge()
Aliases | %skillAffectMerge( ) |
---|
Parameters | character @target, mixed @skill, string @location, integer @modifier, integer @duration [, mixed @flags [, @aveDuration [, @aveModifier ]]] |
---|
|
This function enables the merging of an existing affect of the given skill @type with affect defined by this function's parameters. For the first 6 parameters see the description for the %skillAffectAdd() function. The @aveDuration parameter should be set to a 1 or a 0. When set to 1 the duration of the existing affect and the current affect to be merged are averaged. The @aveDuration parameters should also be set to a 1 or 0. When set to 1 the modifier amount of the existing affect and the current affect ot be marged are averaged. the default values for @aveDuration and @aveModifer are both 0 -- in other words the new merge affect takes the duration and modifier provided to this function.
Example: --------------------------------------------------------------------------
// // Sleep target for 10 hours (ticks). If the target is already asleep // then they will now sleep for another 10 hours. // %skillAffectMerge( @target, "sleep", NONE, 0, 10 ) |
|
|
|
|
|
|
|