%affectGetSkillName()

Aliases%affectGetSkillName( )
Parametersobject @affect

    Returns the name of the skill (if any) to which the @affect object is
associated. For instance a "disease" skill might implement an affect
object.

Example:
--------------------------------------------------------------------------

@text = ""
foreach( %getAffectItems( @n ) as @affect )
{
@text .= "\n" %affectGetSkillName( @affect )
}
endforeach

if( @text == "" )
{
%echoTo( "You are not affected by any skills.\n", @n )
}
else
{
@text .= "\n"
%echoTo( "You are affected by the following skills:" @text, @n )
}
endif