News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Helper Attack help

Started by Hadoabuser, November 09, 2008, 02:05:32 AM

Previous topic - Next topic

Hadoabuser

I can't get this helper hifdef
Spoiler (click to show)
[Statedef 9010]
type = U
movetype = A
physics = U
velset = 0,0
sprpriority = 8
anim = 9010

[State 9010, HitDef]
type = HitDef
trigger1 = !Time
attr = S,HA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag = MA         ;HLA
getpower = 5,5
givepower = 10,2
animtype = hard          ;light,medium,hard,back,up,diagup
air.animtype = hard
priority = 4,Hit   ;Hit,Miss,Dodge
damage = 75,25
pausetime = 3,3
sparkno = S9001
guard.sparkno = 0
sparkxy = -20,-50
hitsound = S6,1
guardsound = 0,0
ground.type = High      ;Low,Trip,None
ground.slide = 7
ground.hit = 7
air.hittime = 20
ground.velocity = -5,0
guard.velocity = -7
air.velocity = -5,-3
airguard.velocity = -7,0
sprpriority = 8

[State 9010, BindToParent]
type = BindToParent
trigger1 = Movehit
time = 100

[State 9010, DestroySelf]
type = DestroySelf
trigger1 = root, var(1) = 1
trigger2 = !AnimTime
to make the opponent have recoil.

Is my method completely wrong or am I just missing some things?
Card Sagas Wars > what ever you like.
Quote from: Cybaster on February 19, 2010, 05:27:30 PM
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D

Cyanide

Not precisely. You've gone into FF and double clicked the sctrl, and dragged in their flawed version of it with many non working incorrect syntax parameters.

Quoteground.slide = 7
ground.hit = 7
wrong

Quoteground.slidetime = 7
ground.hittime = 7
right.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Hadoabuser

Thank you Cyanide. I saw it typed like that in the sctrls document but i didnt think that was the issue  --;
Card Sagas Wars > what ever you like.
Quote from: Cybaster on February 19, 2010, 05:27:30 PM
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D

Cyanide

If you have syntax errors they might not break mugen but they will cause code not to work as planned.

persisten is my most common typo. It doesn't make mugen quit, but at the same time if i want something to happen every 11 ticks and it happens every tick instead, it's cos of my typo.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Hadoabuser

I have a new problem same area tho, the helper hits twice in 1 tick ???, it doing that throws off what i had planned to use it for.
Spoiler (click to show)
[Statedef 9030]
type = U
physics = N
movetype = A
anim = 9030
velset = 0,0
sprpriority = 4

[State 9030, ChangeAnim]
type = ChangeAnim
triggerall = root, StateType = C
trigger1 = !Time
value = 9031

[State 9030, Pause]
type = Pause
trigger1 = MoveHit
time = 12
movetime = 0
persistent = 0
pausebg = 1

[State 9030, HitDef]
type = HitDef
trigger1 = !Time
attr = S,HA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag = MA         ;HLA
getpower = 5,5
givepower = 10,10
animtype = hard          ;light,medium,hard,back,up,diagup
air.animtype = hard
priority = 4,Hit   ;Hit,Miss,Dodge
damage = 34,9
pausetime = 0,2
sparkno = S9001
guard.sparkno = 0
sparkxy = -5,-100
hitsound = S6,1
guardsound = 0,0
ground.type = High      ;Low,Trip,None
ground.slidetime = 3
ground.hittime = 7
air.hittime = 20
ground.velocity = -5,0
air.velocity = -3,-3
sprpriority = 4

[State 9030, HitDef]
type = HitDef
trigger1 = AnimElem = 4 && root, StateType != C
attr = S,HA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag = MA         ;HLA
getpower = 5,5
givepower = 10,10
animtype = hard          ;light,medium,hard,back,up,diagup
air.animtype = hard
priority = 4,Hit   ;Hit,Miss,Dodge
damage = 26,9
pausetime = 0,2
sparkno = S9001
guard.sparkno = 0
sparkxy = 0,-10
hitsound = S6,1
guardsound = 0,0
ground.type = High      ;Low,Trip,None
ground.slidetime = 3
ground.hittime = 7
air.hittime = 20
ground.velocity = -5,0
air.velocity = -3,-3
sprpriority = 4

[State 9030, HitDef]
type = HitDef
trigger1 = AnimElem = 5 && root, StateType != C
attr = S,HA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag = MA         ;HLA
getpower = 5,5
givepower = 10,10
animtype = hard          ;light,medium,hard,back,up,diagup
air.animtype = hard
priority = 4,Hit   ;Hit,Miss,Dodge
damage = 24,9
pausetime = 0,2
sparkno = S9001
guard.sparkno = 0
sparkxy = 0,0
hitsound = S6,1
guardsound = 0,0
ground.type = High      ;Low,Trip,None
ground.slidetime = 3
ground.hittime = 7
air.hittime = 20
ground.velocity = -5,0
air.velocity = -3,-3
sprpriority = 4

[State 9030, BindToParent]
type = BindToParent
triggerall = root, StateType != C
trigger1 = Movehit
time = 100

[State 9030, DestroySelf]
type = DestroySelf
trigger1 = root, var(1) = 1
trigger2 = !AnimTime
Card Sagas Wars > what ever you like.
Quote from: Cybaster on February 19, 2010, 05:27:30 PM
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D

Cyanide

Your first trigger has the ability to hit at the same time as your second trigger. If you need multiple hit's it's best to only have clsn's when said attacks need to hit. And no clsn1 otherwise.

Hitdefs use slightly different rules than other thigns when triggering. Time = 0 will be active until it hits. Rather than only on time = 0


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Hadoabuser

What u said fixed the problem with all of the helpers, thx  :sugoi:, except this one, which i dont have a clue y it is still hitting twice while the root statetype is C.
Spoiler (click to show)
[Statedef 9010]
type = U
movetype = A
physics = U
velset = 0,0
sprpriority = 4
anim = 9010

[State 9010, HitDef]
type = HitDef
trigger1 = Time = 0
attr = S,HA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag = MA         ;HLA
getpower = 5,5
givepower = 10,2
animtype = hard          ;light,medium,hard,back,up,diagup
air.animtype = hard
priority = 4,Hit   ;Hit,Miss,Dodge
damage = 75,25
pausetime = 0,8
sparkno = S9001
guard.sparkno = 0
sparkxy = -20,-50
hitsound = S6,1
guardsound = 0,0
ground.type = High      ;Low,Trip,None
ground.slidetime = 10
ground.hittime = 7
air.hittime = 20
ground.velocity = -8,0
guard.velocity = -4
air.velocity = -5,-3
airguard.velocity = -7,0
sprpriority = 4

[State 9010, Pause]
type = Pause
trigger1 = MoveHit
time = 12
movetime = 0
persistent = 0
pausebg = 1

[State 9010, BindToParent]
type = BindToParent
triggerall = root, StateType != C
trigger1 = Movehit
trigger2 = root, StateType = A
time = 100

[State 9010, BindToParent]
type = BindToParent
triggerall = root, StateType = C
trigger1 = Time = 0
time = 100
pos = 0,25

[State 9010, DestroySelf]
type = DestroySelf
trigger1 = root, var(1) = 1
trigger2 = !AnimTime
trigger3 = !root, StateNo = 210
Card Sagas Wars > what ever you like.
Quote from: Cybaster on February 19, 2010, 05:27:30 PM
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D

Rajaa Retired

strange, that shouldn't hit twice. You could make sure you're not mistaken it for another helper or make sure you aren't accidentally summoning 2. nothing you couldn't have inferred for yourself.

:mad:

Hadoabuser

Heres the command for it.
Spoiler (click to show)
[State -1, Balmung Slash {C}]
type = ChangeState
value = 410
triggerall = var(0) && command = "holddown" && command = "y" && Pos y = 0
trigger1 = ctrl
trigger2 = 440
Card Sagas Wars > what ever you like.
Quote from: Cybaster on February 19, 2010, 05:27:30 PM
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D

Bastard Mami

post the state that creates the helper, I also think that you are creating two of them.

Hadoabuser

The State its summoned in[Statedef 410]
type    = C
movetype= A
physics = C
juggle  = 6
poweradd= 29
ctrl = 0
anim = 410
sprpriority = 2

[State 410, Helper]
type = Helper
trigger1 = Time = 0 && var(0)
helpertype = normal ;player
name = "Balmung"
ID = 9010
stateno = 9010
pos = 0,25
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0
supermove
pausemove

[State 410, PowerAdd]
type = PowerAdd
trigger1 = var(0) && Time = 0
value = -350

[State 410, 2]
type = HitDef
trigger1 = AnimElem = 3 && !var(0)
attr = C, NA
damage    = 26, 10
animtype  = Medium
hitflag = MAF
guardflag = M
pausetime = 12,12
sparkno = S4000
sparkxy = -10,-15
hitsound   = S3,3
guardsound = S5,1
ground.type = Low
ground.slidetime = 12
ground.hittime  = 15
ground.velocity = -4
air.velocity = -3,-4

[State 410, PlaySnd]
type = PlaySnd
trigger1 = !Time
value = S3,3
volume = 0
channel = -1

[State 410, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 11
ctrl = 1
Card Sagas Wars > what ever you like.
Quote from: Cybaster on February 19, 2010, 05:27:30 PM
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D

Cyanide

Same as before. !time is the same as time=0 soon as it finds a clsn box, that hitdef activates.

Change your trigger to when you actually want the hit to occur.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Hadoabuser

The code above isnt the helpers statedef that is the state that calls the helper. The helper i am having a problem with is Balmung. The hitdef there i set to be disabled when var(0) = 1, and it goes with a base animation not used by helpers.
Card Sagas Wars > what ever you like.
Quote from: Cybaster on February 19, 2010, 05:27:30 PM
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D

Rajaa Retired

are you sure that it isn't you hiting along with the helper?

what you've shown us in the helper state, doesn't make the helper hit twice, what you you've shown us in the state where the helper is summoned doesn't indicate that you are summoning a duplicate helper; therefore your problem is deeper and you must troubleshoot. Take some things out/move some things around; see what happens.

Cyanide

Sorry, was looking at an older one

Quotetrigger2 = 440
That's a problem, but probably not THE problem.

How is var(0) set?


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Hadoabuser

#15
HOLY **** I cant believe I overlooked that, I was looking in the wrong place the WHOLE TIME!!!.  :bomb: That was THE problem Cyanide, u were right Raanii I was triggering it twice. Now it makes sense y it hit twice, visually it didnt look like it triggered twice, just that i set 2 hitdefs. Thx guys  :suttrox:
Card Sagas Wars > what ever you like.
Quote from: Cybaster on February 19, 2010, 05:27:30 PM
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D