YesNoOk
avatar

Cmd Triggering (fatality) (Read 1031 times)

Started by AlumDixon, September 26, 2009, 09:28:51 pm
Share this topic:
Cmd Triggering (fatality)
#1  September 26, 2009, 09:28:51 pm
  • **
  • Kung Lao - 70% Almost ready to release!
OK BIG BIG UPDATE!!! ima post some pics ina sec

--Update again.
Ok ok.. now its my cmd
When its round 2 and p1 has 1 life, i press my key or whatever and then it does this!


But problem is has to win a round
when using the bolded code it doesnt work. Its suppose to be you need to win a round in order to perform this state.
ALSO i need to use my command "x" for it to work for some reason. unless my triggers are bad.
[State -1, Fatality Start]
type = Changestate
triggerall = P2Life <= 1
trigger1 = Ctrl ;It must have the control.
trigger1 = command = "x"
;trigger1 = P2Life <= 1 ;Life of P2 must be equal the 1.
;trigger1 = NumHelper(9010) = 0 ;It cannot have another Helper as this in the screen.
;trigger1 = P2StateNo != 003 ;Opponent cannot be in Custom State.
trigger1 = RoundNo != 1 ;Round cannot be the first one.
trigger1 = var(58) >= 1 ;You must be to win one round before.
;trigger1 = statetype != A ;P1 cannot be in air.
;trigger1 = p2statetype != A ;P2 also not.
value = 9000

Could someone suggest what to change this to?

edit: heres my state -2s, i think these are a problem.

[State -2, 1]
type = varset
trigger1 = Win = 1
trigger1 = NumHelper(9010) = 0 ;Helper
v = 58
value = 1



[State -2, 2]
type = varset
trigger1 = Win = 1
trigger1 = NumHelper(9010) = 1
trigger1 = p2life != 0
v = 58
value = 0



[State -2, 3]
type = AttackMulSet
triggerall = !Var(58) && p2Life <= 1
trigger1 = RoundNo != 1 && Win = 1
trigger2 = P2StateNo = 003
value = 9999


[state -2, 4]
type = AssertSpecial
trigger1 = NumHelper(9010)=1
flag = nomusic
flag2 = nobardisplay

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Last Edit: September 29, 2009, 11:12:11 pm by AlumDixon
Re: Helper not appearing at right time (fatality)
#2  September 27, 2009, 12:56:56 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Well if you KILL p2, he's going to go past 1 life and die, so the helper won't trigger properly.

Every hitdef you have needs to register whether a fatality is allowed in this round or not and set the kill flag accordingly.


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: Helper not appearing at right time (fatality)
#3  September 27, 2009, 01:09:38 am
  • **
  • Kung Lao - 70% Almost ready to release!
hmm.. well i have it on 1 move, but still doesnt do nothing.

this is just at 1 hp




I use this move to try to get him to get to that state.'
this move he doesnt die.



And thats when the helper comes out.
while p2 is dieing

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Last Edit: September 27, 2009, 01:17:22 am by AlumDixon
Re: Helper not appearing at right time (fatality)
#4  September 27, 2009, 02:01:20 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Then your punch has killed him. You punch should be kill = 0 in round 2 so the helper has a 100% chance of coming out at the right time to also NOT kill him.


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: Helper not appearing at right time (fatality)
#5  September 27, 2009, 02:03:05 am
  • **
  • Kung Lao - 70% Almost ready to release!
On the second screen shot i put it so he doesnt get killed. but it does not come out. usually should come out right when he has 1 hp.

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Helper not appearing at right time (fatality)
#6  September 27, 2009, 02:39:07 am
  • ******
  • Somebody PM when Caddie is no longer a mod.
You need to stop player 2 from becoming dead. Take a look at my hitdef.

The following is my standing light punch state 200 check out the bolded code.

[State 200, 1-1]
type = HitDef
trigger1 = AnimElem = 3
attr = S, NA                     ;Attribute: Standing, Normal Attack
damage = 43,8                   ;Damage that move inflicts
animtype = Light                 ;Animation type: Light, Medium, Heavy, Back (def: Light)
getpower = 75,150                 ;Power to get on hit, on guard
givepower = 15,8                 ;Power to give opponent on hit, on guard
guardflag = MA                   ;Flags on how move is to be guarded against
hitflag = MAF                    ;Flags of conditions that move can hit
priority = 3, Hit                ;Attack priority: 0 (least) to 7 (most), 4 default
pausetime = 0,0                  ;Time attacker pauses, time victim shakes
numhits = 0                      ;Number of hits to count as (Def: 1)
sparkno = -1                      ;Spark image group and no (Def: set above)
sparkxy = -10,-70                ;X-offset for the "hit spark" rel. to p2,
hitsound = S5,9                   ;Sound to play on hit
guardsound = 6,0                 ;Sound to play on guard
ground.type = Low               ;Type: High, Low, Trip (def: Normal)
ground.slidetime = 5             ;Time that the victim slides back
ground.hittime = 11             ;Time victim is in hit state
ground.velocity = -2             ;Velocity at which victim is pushed
airguard.velocity = -1.9         ;Guard velocity in air (def: (air.xvel*1.5, air.yvel/2))
air.velocity = -1.3,-3           ;X-velocity at which victim is pushed,
kill = !var(58) || 1*p2stateno = 003


You need to fill in your own states.
Re: Helper not appearing at right time (fatality)
#7  September 27, 2009, 02:45:28 am
  • **
  • Kung Lao - 70% Almost ready to release!
the thing where it says
p2stateno = 003, what is that? is it the fatality state? where they get dizzy?

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Helper not appearing at right time (fatality)
#8  September 27, 2009, 02:51:01 am
  • ******
  • Somebody PM when Caddie is no longer a mod.
Re: Helper not appearing at right time (fatality)
#9  September 27, 2009, 03:04:26 am
  • **
  • Kung Lao - 70% Almost ready to release!
hmm... but i dont have a fatality set up yet. im just trying to get the finish him thing to come up.

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Helper not appearing at right time (fatality)
#10  September 27, 2009, 03:08:58 am
  • ******
  • Somebody PM when Caddie is no longer a mod.
They all go together. The finish him the dizzy helper, the hitdef, the fatality helper, one has to go into the next one so that you end with a dead guy.

The kill trigger keeps him from dying the life trigger starts the helper and the dizzy state at the same time, then change state change state hitdef kills and bam the fatality help hits the screen. It is one long as piece of code.
Re: Helper not appearing at right time (fatality)
#11  September 27, 2009, 03:10:14 am
  • **
  • Kung Lao - 70% Almost ready to release!
ahhh ok i see how it works. ill try it out and see if i get a result.

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Helper not appearing at right time (fatality)
#12  September 27, 2009, 04:18:44 am
  • **
  • Kung Lao - 70% Almost ready to release!
well i made a brutality!

but ughh... this is stressful. the finish him still comes in late and doesn't make p2 dizzy. i cant seem to get it. let me show u what i got so far.

...........................
I separated the cns.
Spoiler, click to toggle visibilty

Not sure if my state -2 matter but heres that.
Spoiler, click to toggle visibilty


CMD thingy
Spoiler, click to toggle visibilty

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Helper not appearing at right time (fatality)
#13  September 27, 2009, 04:28:13 am
  • ******
  • Somebody PM when Caddie is no longer a mod.
Forgive me it has been awhile. I could be wrong but that 7000 that has the finish him helper should be followed by a helper with no animation just a really big clsn box.

The hit def with the clsn sends him to the dizzy. Do you have a really big clsn box?
Re: Helper not appearing at right time (fatality)
#14  September 27, 2009, 04:57:54 am
  • **
  • Kung Lao - 70% Almost ready to release!
i have a animation at 7000 having the big red box, and then a empty frame after that.
plus in my 2nd reply to Cy is having that picture of the red box.

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Helper not appearing at right time (fatality)
#15  September 27, 2009, 05:11:16 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Quote
trigger1 = P2StateType != S
Your hitdef won't ever hit that way. That says P2 isn't standing.

Dunno how you get the finish him message at all, what calls state 7010?

Are you following any of this through at all? Do it in pieces.

First step, get your hitdefs functioning right. On round 2 they should be incapable of killing p2. Unless he's in the custom state already.
Then have the helper created and dizzy p2, you have the triggers right for this, but i don't think you've thought everything through properly.
Once p2 is dizzying OK get the message going. That can be in state 7000, no reason to place it anywhere else. If it was me i'd use a no pause time superpause control and apply the message and sound that way.



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: Helper not appearing at right time (fatality)
#16  September 27, 2009, 05:17:00 am
  • ******
  • Somebody PM when Caddie is no longer a mod.
Yeah that fucking tutorial sucks ass.

This is what I came up with while looking at the tutorial, Bindho's code, and Mike O's code There is a lot more to it but this should be you to at least the dizzy and then you can figure out the rest or ask for more help. Took me over a month to code this even with copying code that others had done. I just couldn't figure out how to get all of it work together. The states are different so sorry about that. I used Bindho's code as a starting point so these are the same states he was using. I think.



Spoiler, click to toggle visibilty

Cy edit: Spoilered and Mcode for readability.
Last Edit: September 27, 2009, 05:19:12 am by Cyanide
Re: Helper not appearing at right time (fatality)
#17  September 27, 2009, 06:34:56 am
  • **
  • Kung Lao - 70% Almost ready to release!
hmm... i got the sign to pop up and everything.. just im not doing something right that has to do with p2 since i dont know which animations are what.
ima look more into it,

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Helper not appearing at right time (fatality)
#18  September 27, 2009, 07:47:49 am
  • **
  • Kung Lao - 70% Almost ready to release!
Yeah heres what i got.
Spoiler, click to toggle visibilty

the msg pops up but still when he dies.

does it have to do anything with statedef -2?
Spoiler, click to toggle visibilty

Or maybe in cmd?
Spoiler, click to toggle visibilty

Heres one of my attacks
Spoiler, click to toggle visibilty

Ive been trying to get this work since yesterday and dont have a clue >.< ima goto bed.. very tired right now.

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Helper not appearing at right time (fatality)
#19  September 27, 2009, 07:56:20 am
  • ******
  • Somebody PM when Caddie is no longer a mod.
Jesus you are missing a lot shit.

Give me a second and I'll post the stuff I know from memory. Really you can't expect me to code this thing for you, I mean you need to look through your states and figure out what they are all doing.
Re: Helper not appearing at right time (fatality)
#20  September 27, 2009, 08:10:31 am
  • ******
  • Somebody PM when Caddie is no longer a mod.
trigger1 = NumHelper(9000) = 0 ;It cannot have another Helper as this in the screen.

Wouldn't this mess you up?

Also, I hate to ask an obvious question, but you do have a custom animation for the dizzy in your character right? As in the state that uses the required animation to do the dizzy state.
Re: Helper not appearing at right time (fatality)
#21  September 27, 2009, 07:19:05 pm
  • **
  • Kung Lao - 70% Almost ready to release!
OK BIG BIG UPDATE!!! ima post some pics ina sec

--Update again.
Ok ok.. now its my cmd
When its round 2 and p1 has 1 life, i press my key or whatever and then it does this!


But problem is has to win a round
when using the bolded code it doesnt work. Its suppose to be you need to win a round in order to perform this state
[State -1, Fatality Start]
type = Changestate
triggerall = P2Life <= 1
trigger1 = Ctrl ;It must have the control.
trigger1 = command = "x"
;trigger1 = P2Life <= 1 ;Life of P2 must be equal the 1.
;trigger1 = NumHelper(9010) = 0 ;It cannot have another Helper as this in the screen.
;trigger1 = P2StateNo != 003 ;Opponent cannot be in Custom State.
trigger1 = RoundNo != 1 ;Round cannot be the first one.
trigger1 = var(58) >= 1 ;You must be to win one round before.
;trigger1 = statetype != A ;P1 cannot be in air.
;trigger1 = p2statetype != A ;P2 also not.
value = 9000

Could someone suggest what to change this to?

edit: heres my state -2s, i think these are a problem.

[State -2, 1]
type = varset
trigger1 = Win = 1
trigger1 = NumHelper(9010) = 0 ;Helper
v = 58
value = 1



[State -2, 2]
type = varset
trigger1 = Win = 1
trigger1 = NumHelper(9010) = 1
trigger1 = p2life != 0
v = 58
value = 0



[State -2, 3]
type = AttackMulSet
triggerall = !Var(58) && p2Life <= 1
trigger1 = RoundNo != 1 && Win = 1
trigger2 = P2StateNo = 003
value = 9999


[state -2, 4]
type = AssertSpecial
trigger1 = NumHelper(9010)=1
flag = nomusic
flag2 = nobardisplay

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Last Edit: September 27, 2009, 10:07:34 pm by AlumDixon
Re: Helper not appearing at right time (fatality)
#22  September 29, 2009, 11:08:57 pm
  • **
  • Kung Lao - 70% Almost ready to release!
2 days its been up. anyone?

Making Stick Figures in MS Paint is Fun....
Continuing Kung Lao =]
Re: Cmd Triggering (fatality)
#23  September 29, 2009, 11:26:00 pm
  • ******
Debugging, lesson 1.
Use a DisplayToClipboard to display, one by one, the values of everything you use as trigger. Var(58), RoundNo, NumHelper(9010), Win, P2Life... See if they all are at the correct value at the correct moment.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Last Edit: September 29, 2009, 11:29:49 pm by Byakko
Re: Cmd Triggering (fatality)
#24  September 30, 2009, 01:04:36 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You still don't really get what's going on at all. Break your code down and get EACH BIT working. Don't try and do everything at once. If you don't understand something, putting all the code in at once won't help you. You need to work out what each function is for, and what it does.

Byakko's suggestion will definitely help with this

[mcode]displaytoclipboard[/mcode]


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.