Attempts to remove the affect described by @skill from the given @target. The @skill may either be the name of the skill ("detect invisible") or it may be the ID of the skill. If the affect is removed then 1 is returned; otherwise 0 is returned. Note that this function does not look for affects implemented by affect objects, but rather is limitted to traditional internal affect system.
Example: --------------------------------------------------------------------------
if( %skillAffectRemove( @target, "sanctuary" ) ) { talk @target Hah! I have made you defenseless! } else { talk @target Hah! You are a defenseless weakling! } endif |