Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: A! on February 06, 2011, 06:04:57 AM

Title: More Help
Post by: A! on February 06, 2011, 06:04:57 AM
Hey... (sigh)

Problem 1

I need help with another problem, ok im going to give an example... for example how do i code rush for megaman(not making megaman) but how do i code rush to follow him ect, i tried to look at the template, its good but i need a tutorial, i know i got make another cns for it.  Is there one on the internet(tutorial).

Problem 2

Im using the MvCEoH template and the intro's are never random it keeps doing the first intro, the coding is the same as who ever else used the template so i dont get why its not random for me.


Title: Re: More Help
Post by: Acey on February 07, 2011, 06:27:31 PM
1) Coding Rush

Rush is a "helper" in the character. So first you create a series of [statedef]s that have Rush's movements and attacks, programmed accordingly, then you create an sctrl in either your [statedef -2], [statedef 190], [statedef 5900] or all three that is type = helper whose purpose is to call the helper into action at the beginning of the battle.

2) Intro Radomization

It could be a variety of variable that it causing your intros to not randomize. Which statedef intro is being activated and what does the code look like that activates the second intro?
Title: Re: More Help
Post by: A! on February 08, 2011, 11:57:25 AM
1) Coding Rush

Rush is a "helper" in the character. So first you create a series of [statedef]s that have Rush's movements and attacks, programmed accordingly, then you create an sctrl in either your [statedef -2], [statedef 190], [statedef 5900] or all three that is type = helper whose purpose is to call the helper into action at the beginning of the battle.

OMG! the rush part is actually working, i was missing the part that i had to add in the statedef -2, i still need to understand the coding but its working  :)

Quote
2) Intro Radomization

It could be a variety of variable that it causing your intros to not randomize. Which statedef intro is being activated and what does the code look like that activates the second intro?

As for the intro heres the coding

;Introductions

[Statedef 190]
type = S

[State 190, 1]
type = VarRandom
trigger1 = Time = 0
v = 1
range = 0,200

[State 190, 2]
type = ChangeState
trigger1 = Var(1) = [0,200]
value = 191

[State 190, 3]
type = ChangeState
trigger1 = Var(1) = [201,400]
value = 192

;---------------------------------------------------------------------------------------------
;Intro1
[Statedef 191]
type = S
movetype = I
physics = N
ctrl = 0
anim = 190
velset = 0,0
spriority = 0

[State 0, VarSet]
type = VarRandom
trigger1 = time =0
v = 1
range = 6,8

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 190, ChangeState]
type = ChangeState
trigger1 = AnimTime = 0
value = 193

;---------------------------------------------------------------------------------------------
;Intro2
[Statedef 192]
type = S
movetype = I
physics = N
ctrl = 0
anim = 191
velset = 0,0
spriority = 0

[State 0, VarSet]
type = VarRandom
trigger1 = time =0
v = 1
range = 6,8

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 190, ChangeState]
type = ChangeState
trigger1 = AnimTime = 0
value = 193

I want to make him more intro's also
Title: Re: More Help
Post by: Acey on February 08, 2011, 05:08:00 PM
Next question, what are your animation 190 and 191 in the air file, are they the same?

Also, you can delete this code from 191 and 192:

Code: [Select]
[State 0, VarSet]
type = VarRandom
trigger1 = time =0
v = 1
range = 6,8
Title: Re: More Help
Post by: A! on February 09, 2011, 11:21:07 AM
Animation in the air file is 190(intro1) and 191(intro 2), and i deleted the varset
Title: Re: More Help
Post by: Acey on February 09, 2011, 12:09:04 PM
Go ahead and send over the char and I'll take a look, or if you're uncomfortable with that you can just post the AIR code for the two animations.

[begin action 191]
[begin action 192]
Title: Re: More Help
Post by: Acey on February 09, 2011, 12:40:20 PM
Found the two problems, and it was there in front of our eyes the whole time.

[State 190, 1]
type = VarRandom
trigger1 = Time = 0
v = 1
range = 0,400

[State 190, 2]
type = ChangeState
trigger1 = Var(1) = [0,200]
value = 191

[State 190, 3]
type = ChangeState
trigger1 = Var(1)= [201,400]
value = 192
SimplePortal 2.3.5 © 2008-2012, SimplePortal