News:

MFG's Character of the Month: October 2026 Voting

Main Menu

a win win oppurtunity

Started by 1nfrnus, November 15, 2008, 06:11:43 PM

Previous topic - Next topic

1nfrnus

how do guys add winposes to chars say K Dash?

Shamrock

I think an easy way to learn is to download Fighter Factory and open Kung Fu Man. You then can easily find The Animations and coding for win poses.

Also you should look at the Mugen Docs that came with your mugen.

Good Luck.

1nfrnus

thanks........added a few winposes to K'....but get to play them....he keeps on doing the same pose.....Why?

BC

have you added a win pose state decider?
Accepting commissions

1nfrnus

Ummmmm..what?
Even though i read the docs and tutorials i dont remember a win decider.....

BC

basically its a state that randomly decides which state to change to.

the states it will change to will be your win pose states.

[Statedef 180]
type =


[State 180,which state?]
type = ChangeState
trigger1 =
value =

bascially this is a state decider... it chooses randomly which state to change to, and those states will be your win poses.

but it wont do anything without code.

which is where random comes in

firstly you would need to add the value of your win pose... then +random%

depending on how many win poses you have in total you would add that value after the %

heres an example of mine.  181+random%3

because i have 3  win poses ranging from 181-183.

what the random code will do is randomly pick one of those.
Accepting commissions

1nfrnus

;---------------------------------------------------------------------------
; Win state decider
; CNS difficulty: basic
[Statedef 180]
type = S

[State 180, 1]
type = ChangeState
trigger1 = Time = 0
value = 181+random%3

;---------------------------------------------------------------------------
; Win pose 1
; CNS difficulty: basic
[Statedef 181]
type = S
ctrl = 0
anim = 183
velset = 0,0

[State 181, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

;[State 0, PlaySnd]
;type = PlaySnd
;trigger1 = animelem = 2
;value = S180,5
;volume = 70
;channel = 2

;---------------------------------------------------------------------------
am i going wrong somewhere......got 4 win poses in the char

Bastard Mami


BC

well for starters you dont need a nothitby, theres no need for collisions during a win pose. 181+random%3 is for randomly choosing three win poses states.

if you have 4 then that shouldnt be hard to work out.


also yea code more states(more winpose states)..you've done 1, it wont show the others because you havent coded them.
Accepting commissions