YesNoOk
avatar

Problems with "low health" mode in a character.. (Read 439 times)

Started by Saohc, July 01, 2010, 02:23:34 am
Share this topic:
Problems with "low health" mode in a character..
#1  July 01, 2010, 02:23:34 am
  • ****
  • Working on MGS1 Snake's VR missions in MGS2
    • USA
I'm having problems with a mode that one of my characters goes into when his health is low..

Here's the full code..
[mcode] ;Danger! (When Energy Gets Low)
;SetDanger Var
[State -2, VarSet]
type = VarSet
triggerall = life < 250
trigger1 = (var(46) = 0)
trigger3 = p2name != "F1" || p4name != "F1"
v = 46
value = 1

[State -2, VarSet2]
type = VarSet
trigger1 = life > 250
v = 51
value = 0

[State -2, VarSet2]
type = VarSet
triggerall = (var(46) = 1)
trigger1 = life < 250
v = 51
value = 1



;Danger!
[State -2, PlaySnd]
type = PlaySnd
trigger1 = var(46) = 1
value = 9067,0
volume = 255
flag = nomusic

;Close Danger Var
[State -2, VarSet]
type = VarSet
trigger1 = var(46) = 1
v = 46
value = 2

;Begin NoMusic state.
[State -2, VarSet]
type = VarSet
triggerall = p2name != "F1" || p4name != "F1"
trigger1 = var(46) = 2
v = 58    ;fv = 10
value = 1
ignorehitpause = 1



[State -2, AssertSpecial]
type = AssertSpecial
trigger1 = var(58) = 1
flag = nomusic


;Start Black and White Screen
[State -2, VarSet]
type = VarSet
triggerall = p2name != "F1" || p4name != "F1"
trigger1 = var(51) = 1
v = 54
value = 1
ignorehitpause = 1


[State -2, AllPalFX]
type = AllPalFX
trigger1 = var(54) =1
time = -1
add = 50,50,50
ignorehitpause = 1
color = 0
persistent = 0

[State -2, VarSet]
type = VarSet
trigger1 = life < 200
v = 55   ;fv = 10
value = 1
ignorehitpause = 1

[State -2, PalFX critical2]
type = PalFX
trigger1= var(55) = 1
time = -1
ignorehitpause = 1
add = 128,128,128





;Add defense
[State -2, VarSet]
type = VarSet
trigger1 = var(55) = 1
v = 38    ;fv = 10
value = 1


[State -2, DefenceMulSet]
type = DefenceMulSet
trigger1 = var(38) = 1
value = 0.52
ignorehitpause = 1






[state -2, stop charge sound]
type = stopsnd
trigger1 = stateno != 9090
channel = 3

[State -2, VarSet2]
type = VarSet
trigger1 = life > 250
v = 54
value = 0

[State -2, VarSet3]
type = VarSet
trigger1 = life > 200
v = 55
value = 0

[State -2, VarSet3]
type = VarSet
trigger1 = life > 250
v = 58
value = 0
[/mcode]

Apperantly when it goes into the next round, the music sometimes starts glitching up.
I know it's due to the "nomusic" state, but I placed that in there for dramatic effect.

Second, whenever the other character preforms a super move or something while LucasX3(Dark) is in "low health" mode, the other character is no longer in black and white like they should be(using the same code as above.), how can I prevent this?

With Borghi's character, Noroko in her fatal move and one of her supers the palfx on the opponent never goes away, even when a super move is preformed, I think.. what could be the difference?Does Borghi have a helper state in or something?

Would choosing me for the question thread be a
unique experience?  I can't really say.
Re: Problems with "low health" mode in a character..
#2  July 01, 2010, 02:52:33 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
They probably set their own, it'll overwrite yours. Especially as you're paused and they're not.


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.
Re: Problems with "low health" mode in a character..
#3  July 01, 2010, 03:09:23 am
  • ****
  • Working on MGS1 Snake's VR missions in MGS2
    • USA
Hm...

Well do I need to make a helper or something in order to prevent the opponent from changing out of the palfx when they do a super move or something?

and what about the problem with "Nomusic" state sometimes making the battle/stage music glitch up and become choppy and such?

Would choosing me for the question thread be a
unique experience?  I can't really say.
Re: Problems with "low health" mode in a character..
#4  July 01, 2010, 06:29:48 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You're still using winmugen. Winmugens support for MP3's is shit. It's support for ogg is better but still bad. Basically if it makes it skip and jitter, it's a winmugen fault. Different plugins might work, different PC's might work. You cannot achieve a 100% compatibility here.


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.
Re: Problems with "low health" mode in a character..
#5  July 03, 2010, 02:22:16 am
  • ****
  • Working on MGS1 Snake's VR missions in MGS2
    • USA
Hm...

Well do I need to make a helper or something in order to prevent the opponent from changing out of the palfx when they do a super move or something?

Now this is the one problem I'm focusing on now.

Would choosing me for the question thread be a
unique experience?  I can't really say.
Re: Problems with "low health" mode in a character..
#6  July 03, 2010, 02:50:12 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You can't. The helper will be paused too.


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.
Re: Problems with "low health" mode in a character..
#7  July 04, 2010, 04:53:08 am
  • ****
  • Working on MGS1 Snake's VR missions in MGS2
    • USA
:omg:

All I'm trying to do is make it where the enemy is still has the palfx that happens when LucasX3(Dark) is in "Danger" mode, regardless if the enemy decides to use a super move or something.

I never said I was going to use Borghi's coding, I mentioned one of his characters, because when "Noroko" does her fatal move, the palfx that affects the enemy never goes away.

Would choosing me for the question thread be a
unique experience?  I can't really say.
Re: Problems with "low health" mode in a character..
#8  July 04, 2010, 05:20:00 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
He was doing a full game and factored that in. If you are doing this for normal mugen you cannot.

You can make it last a long time and hope P2 doesn't overwrite it. That's it.


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.