Very strange problem with Enemy,command="..."

Started by S., February 22, 2009, 06:07:20 PM

Previous topic - Next topic

_Josue_

#20
Quote from: S. on February 22, 2009, 06:07:20 PM
Prepare yourself for some  ???-ness.

In two different characters (KFM1 and KFM2), I added a "down" command :
[Command]
name = "down"
command = ~D
time = 1

To check the command, I added this DisplayToClipboard under the Statedef -2 :
[State -2, Display]
type=DisplayToClipboard
trigger1=1
text="Down1=%d Down2=%d"
params=(command="down"),(enemy,command="down")

Now here comes the funny part :
KFM1 vs. KFM1, (enemy,command="down") does work.
KFM2 vs. KFM2, (enemy,command="down") does work.

KFM1 vs. KFM2, (enemy,command="down") does not work.
KFM2 vs. KFM1, (enemy,command="down") does not work.



I just cannot figure out why and where/what I got wrong.
OK, Sorry to bump, yet...
I think I know what the reason is (this is my theory):
Since the enemy is not a target, MUGEN doesn't know if KFM1's commands match KFM2 ones (I.E. what if KFM1's "down" command was different to KFM2 "down" command?), thus not evaluating the expression.
If KFM2 was a target, KFM1 would know what KFM2's command definition of "down" is, therefore working correctly, but that's not the case.

Quote from: Lasombra Demon on November 20, 2009, 01:19:16 PM
Sorry for the bump, but I was thinking... how about suggesting something to Elecbyte along these lines?

Now that they're back, we could ask for them for a solution to some of these issues.  8)

Whaddaya think?
This, my friend, is something I've always wanted to do:
Ask Elecbyte what the heck they hide within their hard coded stuff!
I mean, they're not giving the code, however I want them to document every single hard coded bit!

Bastard Mami

target has nothign to do with that code, as it does not use the target keyword.

the reason why it does not work has already been explained in the topic.