Checks to see if the @target is affected by the given @skill. The @skill may either be the name of the skill ("detect invisible") or it may be the ID of the skill. If the affect exists 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( %skillAffectExists( @target, "detect evil" ) ) { %echoTo( "You can already detect the auras of evil!\n", @target ) return } endif |