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

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

Previous topic - Next topic

S.

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.

DonuTs


S.


DonuTs

seems your right its like the code works when ysed against same character but not against a different character even tho they have same command. im gonna expermiment with command = x and see if the results are the same

Rajaa Retired

It's too quick, use the default: command="holddown" instead.


Valodim

I can think of a few reasons for this from an engine coder's point of view..

Bottom line for the engine user: Don't mess with other chars' commands :P

DonuTs

rajaa even holddown doesnt work nor command ="x" bottom line is it wont detect another chars commands excpet itselfs thats why it works against mirror self.

im sure you can detect the enemy's command when they are a target but otherwise i dnt think so

Rajaa Retired

#7
Enemynear,command="holddown" worksworked, I tried it myself before i posted.

DonuTs

does it work against another opponent and not the same character

example: kfm vs ryu not kfm vs kfm

i have already experimented and it does not work against another opponent apart from yourself

Rajaa Retired

Lol, it worked when I triggered My Lilith's helper with enemynear,command="holddown" when I went against P.o.t.S's Nakoruru but not when I faced Jesuszilla's zero. I'm confused now.  ???

DonuTs

it must be something to do with the cmd just not sure what

Rajaa Retired


PotS

You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.

DonuTs

doesnt that mean you would have to modify all characters? a bit too mcuh work

PotS

I've done a fair variety of stuff for Mugen yet have never found myself wishing I could detect P2's commands at any given time (at the times you want to do it, custom states, it already works), so very much doubt that'd be worth it.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.

MirageAtoli

#15
Quote from: P.o.t.S. on February 22, 2009, 10:01:04 PM
I've done a fair variety of stuff for Mugen yet have never found myself wishing I could detect P2's commands at any given time (at the times you want to do it, custom states, it already works), so very much doubt that'd be worth it.

Checking the partner's command is useful, though. I hope this problem doesn't extend to that as well.
Quote from: Titiln on December 31, 2007, 10:46:10 PM
i think we should call it an "engine" so we don't look like total idiots because otherwise we'd be arguing about a "game" and that would be somehow "dumber" than arguing about an "engine" on the "internet" for countless hours

Quote from: Beatrice on March 01, 2010, 06:55:03 PM
Quote from: Iced
I for one, do not enjoy round corners!  :bigcry:
But they hurt much less when we accidentally hit them!  :S

Bastard Mami

Ddi you add the command in the exact same position ? afaik, the name labels for commands are disragarded on parsing and the commands are numerically sorted instead.

aokmaniac13

Be reminded that when you check your opponent's command, it is relative to whatever the command is locally.
For example, if KFM1 has recovery set to x+y and KFM2's is set to y+z, enemy, command="recovery" on KFM1 will check if KFM2 is pressing x+y.
I know this isn't relevant to the current problem but it's useful to know.

Lasombra Demon

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?
For downloads and questions, go to IKEMEƑ:  https://discord.gg/rweS5ZUek3

For donations go to https://ko-fi.com/lasombrademon

DonuTs

quite a good idea. could be useful in terms of AI i reckon