
Prototype: GemRB.CountEffects(PartyID, opcode, param1, param2[, resref])

Description: Counts the number of effects currently affecting the target.
If a parameter was set to -1, it will be ignored.

Parameters:
PartyID           - the player character's index in the party
opcode            - the effect opcode (for values see effects.ids)
param1            - parameter 1 for the opcode
param2            - parameter 2 for the opcode
resref            - optional resource reference to match the effect

Return value: N/A

Example:
		res = GemRB.CountEffect (MyChar, "HLA", -1, -1, AbilityName )

The above example returns how many HLA effects were applied on the character.

See also: ApplyEffect

