YesNoOk
avatar

Name(*,***) and PXName(*,***) (Triggers) (Read 4161 times)

Started by Ricepigeon, September 25, 2015, 05:30:53 pm
Share this topic:
Name(*,***) and PXName(*,***) (Triggers)
New #1  September 25, 2015, 05:30:53 pm
  • *****
  • Thanks and God bless
    • USA
    • ricepigeon.neocities.org
Returns the name (the internal name specified in the .DEF file, which may not be the same as the displayed name) of the corresponding Player number specified. Name and P1Name are both identical to each other.

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. The same also applies to the p3name and p4name triggers if the teammate and secondary opponents do not exist, respectively.

Format:
    1.) Name [oper] "name"
    2.) P1Name [oper] "name"
    3.) P2Name [oper] "name"
    4.) P3Name [oper] "name"
    5.) P4Name [oper] "name"
Arguments:
    [oper]
        =, != (other operators not valid)
    "name" (string)
        Name to compare against. Must be in double quotes.

Return type:
    boolean int (1 or 0)
Error conditions:
    none

Example:
Code:
trigger1 = Name = "Kumquat"
  Returns true if the player is named Kumquat.

trigger1 = P2Name = "Kumquat"
  Returns true if the enemy player is named Kumquat, and is the primary opponent.

trigger1 = P3Name = "Kumquat"
  Returns true if there is a teammate on Player1's side and that teammate is named Kumquat.

trigger1 = P4Name = "Kumquat"
  Returns true if the enemy player is named Kumquat, and is the secondary opponent.

Additional Notes:
There is currently a bug that exists in MUGEN 1.0 where if a character's name exceeds a certain character limit, certain unintentional glitches will occur, such as bugged Power values and the Player KOing itself before the round begins.
Last Edit: September 25, 2015, 05:41:27 pm by Ricepigeon
Re: Name(*,***) (Triggers)
#2  September 25, 2015, 05:32:41 pm
  • *****
  • Thanks and God bless
    • USA
    • ricepigeon.neocities.org
A few questions;

  • Can anyone verify if the character limit bugs still exist in the Beta build of 1.1?
  • Can't check at the moment, but does anyone know if calling the Name trigger from inside a Helper state returns the Player's name (from the DEF file) or the Helper's name from the Helper SCTRL?