Triggers if the user has input the specified command.
Format:
Command [oper] "command_name"
Arguments:
[oper]
=, != (other operators not valid)
"command_name" (string)
Name of the command. Commands are defined in the player's CMD file, and are case-sensitive. If the CMD has multiple commands with the same name, then any one of those commands will work. Command names must appear within double quotes.
Return type:
boolean int (1 or 0)
Error conditions:
none
Example:
trigger1 = Command = "fireball motion"
True if the user inputs the command corresponding to the
command name "fireball motion".
In order to clarify what @Ricepigeon: wants I set up the following code on KFM's CNS:
[Statedef -2]
[State 0, VarSet]
type = VarAdd
trigger1 = var(15)>0
v = 15
value = -1
ignorehitpause=1
[State 0, VarSet]
type = VarSet
trigger1 = enemy,command = "SmashKFUpper"
v = 15
value = 15
ignorehitpause=1
[state a]
type = DisplayToClipboard
trigger1 = 1
text = "command = %d"
params = var(15)
ignorehitpause = 1
Some important note about this, KFM's SmashKFUpper command is his second unique command. Why am I pointing this out? Well, I loaded a character that has "back" as a second unique command as P2, which consists of B obviously.
So, I test with P2 as is and try to input KFM's SmashKFUpper with P2 but... What the hey is this!? It's not reacting at me doing SmashKFUpper! It's reacting to the "back" command I defined earlier!!
So then after a while tapping back only to make sure that I didn't do something weird, I decided to custom state my opponent, so I sent her flying using KFM's Fast Kung Fu Palm, which sends P2 to a custom state. What gives, she doesn't react to her command "back" anymore (I did do it according to her facing BTW, so I did it correctly). And then attempted to do "SmashKFUpper", and bam, it worked.
So moral of the story:
- P2 is custom stated: Enemy,command = "blah" will return whether P2 did your "blah" command, because he dons your command list temporarily
- P2 is NOT custom stated: Enemy,command = "blah" will return whether the nth unique command from P2's list has been done, where n is the number of unique command "blah" on P1's list.
This seemed to have happenned against one character. But I am not sure of what results this gives to you guys. So please post if this happens as well in your end.