The Mugen Fighters Guild

M.U.G.E.N Central => M.U.G.E.N Discussion => Development => Topic started by: beterhans on July 29, 2014, 09:59:01 am

Title: Save me My Friend! Hard to test
Post by: beterhans on July 29, 2014, 09:59:01 am
MMnn. I'm making a Super throw move

setup like this
P1 the Attacker, fire a Helper run for a long distance to throw P2.
the helper is small one and have no hitbox during the throw process.

P2 have P4 as it's teammate
If P1 get hit it's helper will disappear.
If the helper lost it's target it will disappear.
If the helper miss or disappear P1 will end it's throw move.

in short I wanna make a breakable throw move, a 3rd person or object could hit P1 or P2 to stop or save P2!


Thanks by @Cyanide 's trick
http://mugenguild.com/forum/topics/is-there-easy-way-target-get-info-attacker-161175.0.html
now P2 knows, it's attacker's state, so if something hit P1, the helper will change state, and disappear, P2 will be saved. (turn selfstate)

but if P2 have it's mate P4 to hit him? to release him from the throw?
since P2 and P4 at same side. and P4's move don't have "affectteam = B" so P4 can't P2

The only option is to have P2 in a custom state with "ReversalDef"
like this

[State 1113506, Anyone hit me!]
type = ReversalDef
trigger1 = Anim = 1113506
trigger1 = Animelemtime(2)>= 1
reversal.attr = SCA,AA,AP
pausetime = 0,0
affectteam = B
;sparkno = 0
;sparkxy = 0,0
;hitsound = 0,0
p1stateno = 1113507
;p2stateno =
p1sprpriority = 1
p2sprpriority = 2

[StateDef 1113507]
type = U
Movetype = U
physics = U
ctrl = 0

[State 1113507 self state]
type = SelfState
trigger1 = 1
value = 5000


I don't know if affectteam = B + ReversalDef will work or not. and I have no way to play Mugen with 3 Human players.
I hope this could make P2 into it's own 5000 and get all hitvar from P4.
and P4 hit P2's attackbox like hit P2's hitbox.
Title: Re: Save me My Friend! Hard to test
Post by: Алексей on July 29, 2014, 02:18:01 pm
You can use the mugen command line to load up 3 players for testing.

Code:
cmd.exe -
cd C:\Your\Path\To\Mugen
mugen.exe -p1 char_defnamewithoutextension -p2 char_defnamewithoutextension -p3 char_defnamewithoutextension -s stage_defnamewithoutextension.

It might be better to spawn hitboxes for both players to hit. Is this for a full game?
Title: Re: Save me My Friend! Hard to test
Post by: beterhans on July 30, 2014, 08:08:13 am
This is for her
https://www.youtube.com/watch?v=KhR70SDoWF4
Title: Re: Save me My Friend! Hard to test
Post by: beterhans on July 30, 2014, 08:23:13 am
You can use the mugen command line to load up 3 players for testing.

Code:
cmd.exe -
cd C:\Your\Path\To\Mugen
mugen.exe -p1 char_defnamewithoutextension -p2 char_defnamewithoutextension -p3 char_defnamewithoutextension -s stage_defnamewithoutextension.

It might be better to spawn hitboxes for both players to hit. Is this for a full game?

Thanks for your command
it doesn't work.
P4 can't hit P2's attackbox :)
Title: Re: Save me My Friend! Hard to test
Post by: yaminogun on July 30, 2014, 08:32:13 am
This is for her
https://www.youtube.com/watch?v=KhR70SDoWF4

what is the 1st stage name?
Title: Re: Save me My Friend! Hard to test
Post by: beterhans on July 30, 2014, 10:05:18 am

what is the 1st stage name?

Check out
http://mugenguild.com/forum/topics/remasterdebug-stage-mugen-1-0-133811.0.html