This function has specific usefulness within a BlobbieScript used to implement a spell. The function makes particular use of variables pre-defined for spell BlobbieScripts and is provided to mimic behaviour present in the MUD's C source code as provided via #defined MACROS.
This function should only exist within the loop over the spell's @targets. It's purpose is to determine if @victim is already engaged in combat with the maximum number of allowed attackers. If so, then the function will output the usual message to @attacker and cause script execution to jump to the next loop iteration. If @victim is not already engaged with too many opponents, then a hatred relationship will be created between @victim and @attacker. No other action is taken automatically.
Example:
%spellRoutineCheckOpponentCount(); |