YesNoOk
avatar

Helper hit doesn't trigger VarSet (Read 644 times)

Started by FobiaZz, December 11, 2017, 03:15:14 pm
Share this topic:
Helper hit doesn't trigger VarSet
#1  December 11, 2017, 03:15:14 pm
  • **
  • Some People Are Born To Be Extraordinary
    • Italy
    • fab.marchetti86@gmail.com
Hi all! I've a serious issue with my fireball helper, since doesn't take var(32) value to 1 (as established in automatic states) when hits the enemy. Any other attack or projectile hit works except this one. I tried various things but I can't figure it out how to solve it. Help please! :(

;---------------------------------------------------------------------------
; Radiant bolt (helper)
[Statedef 1501]
type = A
movetype = A
physics = N
juggle = 2
velset = 6,0
sprpriority = 2
ctrl = 0

[State 1501]
type = ChangeAnim
trigger1 = anim != 10032
value = 10032

[State 1501]
type = AssertSpecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1

[State 1501]
type = HitDef
trigger1 = !movecontact
attr = S, SP
animtype = Light
damage = 90, 9
guardflag = MA
pausetime = 0,2
sparkno = s10033
guard.sparkno = s10033
hitsound = s8,14
guardsound = s8,14
ground.type = High
ground.slidetime = 12
ground.hittime = 12
ground.velocity = -4,0
air.velocity = -3,-3
airguard.velocity = -2,-2
palfx.time = 24
palfx.mul = 256,256,256
palfx.add = 40,-70,-200
palfx.sinadd = 40,30,0,10
palfx.invertall = 1
palfx.color = 0

[State 1501]
type = DestroySelf
trigger1 = frontedgedist < -100
trigger2 = movecontact

***********************************************************

In State -3:

[State -3, Time slowing]
type = VarSet
triggerall = var(32)
trigger1 = hitdefattr = SCA,AA,AP,AT && movecontact
var(32) = 1
Re: Helper hit doesn't trigger VarSet
#2  December 11, 2017, 03:33:11 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
This belongs in MUGEN Development Help - in the future please post questions like this one over there :)

This might take care of your problem (insert the helper's ID number inside the parenthesis)

Code:
[State -3, Time slowing]
type = VarSet
triggerall = var(32)
trigger1 = hitdefattr = SCA,AA,AP,AT && movecontact
trigger2 = NumHelper(XXXX)
trigger2 = Helper(XXXX),hitdefattr = SCA,AA,AP,AT && Helper(XXXX),movecontact
var(32) = 1

Last Edit: December 11, 2017, 03:37:42 pm by altoiddealer
Re: Helper hit doesn't trigger VarSet
#3  December 11, 2017, 06:03:53 pm
  • **
  • Some People Are Born To Be Extraordinary
    • Italy
    • fab.marchetti86@gmail.com
Sorry, I'll remember it!

It works, great! Thanks a lot! :)