Help!!!

Started by GoldingCircle, April 18, 2011, 08:31:04 PM

Previous topic - Next topic

GoldingCircle

There is something wrong, my character seems to be acting weird by this code:

[State 550]
type = ChangeState
trigger1 = Time = 0 && movecontact && Anim = 6511 && ( p2name = "SasukeUchichashi" && p2stateno = 6500 || p2name = "GrayCircle" && p2stateno = 6550)
value = 7890


And something wrong at this statedef :
;Collision
[StateDef 7890]
type = S
movetype = A
physics = S
juggle  = 1
velset = 0,0
anim = 5501
sprpriority = 1

[State 7890]
type = VelSet
trigger1 = Time > 0 && p2bodydist x > 10 && movecontact
x = 20

[state 7890, 5]
type = TargetState
trigger1 = time > 0 && movecontact
ignorehitpause = 1
value = prevstateno

[State 7890]
type = ChangeState
trigger1 = time > 0 && var (0) < 10 && movecontact
value = prevstateno
anim = 6511

[State 7890]
type = ScreenBound
trigger1 = movecontact && (P2Name = "SasukeUchihashi" && p2stateno = 6500) || (P2Name = "GrayCircle" && p2stateno = 6500) || (P2Name = "Uzumaki Naruto" && p2stateno = 7500)
value = 1

[State 7890, 10]
type = VarSet
trigger1 = time = 0
v = 0
value = 0

[State 7890, 9]
type = VarAdd
trigger1 = command = "x" 
v = 0
value = 1

[State 7890]
type = TargetState
triggerall = time > 0
trigger1 = movecontact && (P2Name = "SasukeUchihashi" && p2stateno = 6500)|| (P2Name = "GrayCircle" && p2stateno = 6500)
value = prevstateno

[State 7890]
type = TargetState
triggerall = time > 0
trigger1 = movecontact && (P2Name = "Uzumaki Naruto" && p2stateno = 7500)
value = prevstateno

[State 7890, 1]
type = ChangeAnim2
trigger1 = movecontact && P2Name = "SasukeUchihashi"
trigger2 = prevstateno = 6500
value = 6500

[State 7890, 2]
type = ChangeAnim2
trigger1 = movecontact && P2Name = "Uzumaki Naruto"
trigger2 = prevstateno = 7500
value = 7500

[State 7890, 3]
type = ChangeAnim2
trigger1 = movecontact && P2Name = "GrayCircle" && command = "x"
trigger2 = prevstateno = 6500
value = 6500

[State 7890,4]
type = TargetState
triggerall = time > 15
trigger1 = command !="x"&& movecontact && P2Name = "GrayCircle"
value = 6621

[State 7890,5]
type = TargetState
triggerall = time > 15
trigger1 = command !="x"&& movecontact && P2Name = "SasukeUchihshi"
value = 6621

[State 7890,6]
type = TargetState
triggerall = time > 15
trigger1 = command !="x"&& movecontact && P2Name = "Uzumaki Naruto"
value = 7501

[State 7890,7]
type = ChangeState
triggerall = var (0) >= 10
trigger1 = command = "x"
value = 6621




  :???: I'm specificly trying to do is to make the character to tap the command "x" repeatedly when on a state to a specific character like an interupt bonus but it seems not to be working!!  :???: 
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Ricepigeon

It would help if you posted the code you have so far.

✟pao✟

★★★★★★
Admin in disguise
Spoiler (click to show)
★9.14.10★

Cybaster


Ricepigeon

Quote from: graycircle11 on April 18, 2011, 08:31:04 PM

[State 550]
type = ChangeState
trigger1 = Time = 0 && movecontact && Anim = 6511 && ( p2name = "SasukeUchichashi" && p2stateno = 6500 || p2name = "GrayCircle" && p2stateno = 6550)
value = 7890

So you want this to be able to activate as soon as you make contact with the opponent? I suggest checking that time trigger, if thats even supposed to be there since most attacks never have hitboxes on the first tick of an animation (and if they do its either because it a projectile or something is seriously wrong)

GoldingCircle

Quote from: RicePigeon on April 19, 2011, 05:57:46 PM
Quote from: graycircle11 on April 18, 2011, 08:31:04 PM

[State 550]
type = ChangeState
trigger1 = Time = 0 && movecontact && Anim = 6511 && ( p2name = "SasukeUchichashi" && p2stateno = 6500 || p2name = "GrayCircle" && p2stateno = 6550)
value = 7890

So you want this to be able to activate as soon as you make contact with the opponent? I suggest checking that time trigger, if thats even supposed to be there since most attacks never have hitboxes on the first tick of an animation (and if they do its either because it a projectile or something is seriously wrong)

Sooooooo....  :(
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.

Basara Bogard

Quote from: graycircle11 on April 20, 2011, 05:02:14 PM
Sooooooo....  :(
What?? Do you expect RiceP goes to you house to fix your char?? You got a tip to fix your code by yourself with what he said (the "time = 0" trigger if i'm not wrong)

As for me, what I could understand of this, maybe the problem is there're too many triggers and maybe the MUGEN doesn't compute all that stuff together and doesn't recognize your sctrl (especially to put like 8 codes in a same trigger, it's too much), maybe just making something like this,
[State 550]
type = ChangeState
trigger1 = movecontact
trigger2 = (p2name = "SasukeUchichashi")
value = 7890

your ChangeState could work better instead of adding a lot of unnecessary triggers in one line ;)

Also, if you didn't specify your problem in the topic title instead the typical "help!11!!eleven", i doubt you could get more help than this

GoldingCircle

Thanks! That was the problem.
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.