News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

2 problems

Started by Nnaajj, June 03, 2010, 07:50:47 PM

Previous topic - Next topic

Nnaajj

Well I have a few problems.
Firstly, I've made a move for my character which uses a helper. For some reason that helper can't be blocked. I've made sure I have used the right letters for the guardflag in the hitdef of the helper state but, it still can't be blocked.

Secondly, How can I make that helper be effected by my damage dampener?
Here's my code for the damage dampener:

[State -2, Damage Dampener]; Scaling in action
type = attackmulset
trigger1 = numenemy
value= ifelse(enemynear, gethitvar(hitcount) = 0, 1, ifelse(enemynear, gethitvar(hitcount) = 1, 0.9, 0.85**enemynear, gethitvar(hitcount)))
ignorehitpause= 1

[State -2, Damage Dampener]; Full damage
type= attackmulset
trigger1= numenemy
trigger1= enemynear,movetype!=H || (enemynear,stateno=[120,155])
value= 1.0
ignorehitpause= 1

I'm using POTS Damage Dampener code he made and I've had no problems till now.
It's based on hitcount and stuff so what I'm wondering is why it wouldn't effect an move which uses a helper?

Anyone know what I did wrong?
Quote from: Luis Alejandro on July 27, 2010, 07:46:45 PM
Quote from: RaiN on July 27, 2010, 07:44:57 PM
Kinda strange but I woke up today and her hand was on my ass cheek
I won't suspect anything though I'll take it she was sleeping and didn't notice
you should have flipped over slowly

Nnaajj

Quote from: Luis Alejandro on July 27, 2010, 07:46:45 PM
Quote from: RaiN on July 27, 2010, 07:44:57 PM
Kinda strange but I woke up today and her hand was on my ass cheek
I won't suspect anything though I'll take it she was sleeping and didn't notice
you should have flipped over slowly

Cyanide

If nobody answered, there's a possibility nobody knows. Or it's a blindingly simple question that you should be able to sort out. Attackmulset used in state -2 doesn't affect helpers.

Add it to the states.


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.

Nnaajj

Ok I understand, just was a bit annoyed.
Never knew it was that simple, should of played around some more with moving code and stuff.
Thanks. 1 down, 1 to go.
Quote from: Luis Alejandro on July 27, 2010, 07:46:45 PM
Quote from: RaiN on July 27, 2010, 07:44:57 PM
Kinda strange but I woke up today and her hand was on my ass cheek
I won't suspect anything though I'll take it she was sleeping and didn't notice
you should have flipped over slowly

Hero

Can you post the code of the Helper State? May help you while I´m triying to help u  ???

Nnaajj

;---------------------------------------------------------------------------
; WeakBlastPalmExplod
[StateDef 20014]
type = A
movetype= A
physics = N
juggle  = 10
velset = 0,0
ctrl = 0
anim = 20014
poweradd = 0
sprpriority = 9999999999999

[State 0, SprPriority]
type = SprPriority
trigger1 = 1
value = 5

[State 20015, 1]
type = HitDef
trigger1 = AnimElem = 1 || AnimElem = 2 || AnimElem = 3
attr = S, NA
damage = 32,1
animtype = Light
guardflag = HA
hitflag = MA
priority = 3, Hit
pausetime = 0, 0
sparkno = S11111
sparkxy = -30, -54
hitsound = S2, 1
guardsound = 6, 0
ground.type = Low
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -2
airguard.velocity = 0
air.type = High
air.velocity = -4,-3
air.hittime = 12
givepower = 0
air.fall = 1
ground.cornerpush.veloff = 0
air.cornerpush.veloff = 0
down.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
airguard.cornerpush.veloff = 0
getpower = 0

[State 20015, 1]
type = HitDef
trigger1 = AnimElem = 5
attr = S, NA
damage = 20,1
animtype = Light
air.animtype = Medium
guardflag = HA
hitflag = MA
priority = 3, Hit
pausetime = 3, 3
sparkno = S1111
sparkxy = -10, -76
hitsound = S2, 1
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -4,-3
airguard.velocity = 0
air.type = High
air.velocity = -4,-3
air.hittime = 12
givepower = 0
air.fall = 1
fall = 1
ground.cornerpush.veloff = 0
air.cornerpush.veloff = 0
down.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
airguard.cornerpush.veloff = 0
getpower = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = !AnimTime
trigger2 = root, movetype = H
Quote from: Luis Alejandro on July 27, 2010, 07:46:45 PM
Quote from: RaiN on July 27, 2010, 07:44:57 PM
Kinda strange but I woke up today and her hand was on my ass cheek
I won't suspect anything though I'll take it she was sleeping and didn't notice
you should have flipped over slowly

Cyanide

trigger1 = AnimElem = 1

That. It is occuring on the first tick of the first frame. It kicks in before the block changestate

Try animelemtime(1) = 1 instead.


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.

Nnaajj

Ah it works, thanks man.
This will help me fix some other issues I had in some of my other characters.
Quote from: Luis Alejandro on July 27, 2010, 07:46:45 PM
Quote from: RaiN on July 27, 2010, 07:44:57 PM
Kinda strange but I woke up today and her hand was on my ass cheek
I won't suspect anything though I'll take it she was sleeping and didn't notice
you should have flipped over slowly