Returns the name of the primary opponent (the opponent in versus mode, or the first opponent in team mode).

If there is no primary opponent, then p2name = "name" returns 0 no matter what name is specified. Similarly, p2name != "name" will return 1 no matter what name is specified.

Format: P2Name [oper] "name"

Arguments:

Return type: boolean (0 if false or 1 if true)

Error conditions: none

Example:

trigger1 = P2Name = "Kumquat"
; Returns true if the opponent is named Kumquat.