Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: Luis/Dshiznet on June 01, 2008, 07:04:32 PM

Title: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 01, 2008, 07:04:32 PM
i dunno how to explain it much.. my title is prob confusing you so let me explain.
i want to make a helper appear and attack when i press the button *z* without making the character have to do anything whats so ever.

can any1 help me real quick?
Title: Re: How to make a helper state with out making a call helper state.
Post by: Aura-Master on June 01, 2008, 07:14:09 PM
well, I think i have seen an example of that, problem is I dont know which character has the helper that attacks o.O#
Title: Re: How to make a helper state with out making a call helper state.
Post by: Alexziq on June 01, 2008, 07:16:13 PM
couldnt you just adapt it from an explode state, using the helper animations? Either that or just make the call state "0" then he shouldnt do anything when the helper comes out. Theres a helper in Harley quinn I just coded that doesnt do anything and the helper just pops out.
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 01, 2008, 07:28:15 PM
couldnt you just adapt it from an explode state, using the helper animations? Either that or just make the call state "0" then he shouldnt do anything when the helper comes out. Theres a helper in Harley quinn I just coded that doesnt do anything and the helper just pops out.
i tried.. it doesnt want to work for me..
mind if i borrow ur helper code?
Title: Re: How to make a helper state with out making a call helper state.
Post by: Alexziq on June 01, 2008, 07:51:02 PM
this is the CODE used when calling helper

[Statedef 32000]
type = C
movetype = I
physics = N
ctrl = 0
anim = 0  this is the animation SHE does when calling HELPER
velset = 0,0
sprpriority = 0

[State 32000, Helper]
type = Helper
trigger1 =  AnimElem = 3
trigger1 = NumHelper(32001) = 0
helpertype = normal ;player     
name = "HELPER"           
ID =  32001                   
stateno =   32001
pos = 30,-230
postype = p2   
facing = 1
keyctrl = 0
ownpal = 1
supermove
pausemove

Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 01, 2008, 07:54:35 PM
this is the animation SHE does when calling helper
[Statedef 32000]
type = C
movetype = I
physics = N
ctrl = 0
anim = 0  this is the animation SHE does when calling HELPER
velset = 0,0
sprpriority = 0

[State 32000, Helper]
type = Helper
trigger1 =  AnimElem = 3
trigger1 = NumHelper(32001) = 0
helpertype = normal ;player     
name = "HELPER"           
ID =  32001                   
stateno =   32001
pos = 30,-230
postype = p2   
facing = 1
keyctrl = 0
ownpal = 1
supermove
pausemove


lol she?
neways imma use that as a reference and see if it works.
thnx man.
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 01, 2008, 08:10:14 PM
naw still wont work.. now the helper pops up every sec and when i press z i become the helper @_@

this is what i have

[StateDef 0]
type = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 1
anim = 0
poweradd = 20
sprpriority = 2


[State 0, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;--------------------------------

[State 710, Helper]
type = Helper
trigger1 = time=0
helpertype = normal ;player
name =  "Helper1"
ID =  710
stateno = 710
pos = -5,0
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0
supermove
pausemove


[State 196, DestroySelf]
type = DestroySelf
trigger1 =  time=500
ignorehitpause =
persistent =






;-------------------------------------------------------------------------------------
[Statedef 710]
type=S
physics=S
movetype=A
anim=710
velset=0,0
ctrl=0
sprpriority=-1



[State 0, 1]
type = HitDef
trigger1 = time=0
attr = S, NA
damage = 100
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 10, 10
sparkno = 0
sparkxy = -10, -76
hitsound = 5, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -8,-6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12




[State 196, DestroySelf]
type = DestroySelf
trigger1 =   time=500


[State 196, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 01, 2008, 09:05:29 PM
i dunno how to explain it much.. my title is prob confusing you so let me explain.
i want to make a helper appear and attack when i press the button *z* without making the character have to do anything whats so ever.

can any1 help me real quick?

Its quite simple:

[statedef -2]

Code: [Select]
[State 0, Helper]
type = Helper
trigger1 = command = "z" && NumHelper(1000) = 0
helpertype = normal ;
name = "helper"
ID = 1000; the same from NumHelper
stateno = 710
pos = -5,0
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = X
ownpal = X
supermove = X
pausemove = X
ignorehitpause = 1
;size.xscale (float)
;size.yscale (float)
;size.ground.back (int)
;size.ground.front (int)
;size.air.back (int)
;size.air.front (int)
;size.height (int)
;size.proj.doscale (int)
;size.head.pos (int,int)
;size.mid.pos (int,int)
;size.shadowoffset (int)
;persistent =

Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 01, 2008, 09:14:38 PM
i dunno how to explain it much.. my title is prob confusing you so let me explain.
i want to make a helper appear and attack when i press the button *z* without making the character have to do anything whats so ever.

can any1 help me real quick?

Its quite simple:

[statedef -2]

Code: [Select]
[State 0, Helper]
type = Helper
trigger1 = command = "z" && NumHelper(1000) = 0
helpertype = normal ;
name = "helper"
ID = 1000; the same from NumHelper
stateno = 710
pos = -5,0
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = X
ownpal = X
supermove = X
pausemove = X
ignorehitpause = 1
;size.xscale (float)
;size.yscale (float)
;size.ground.back (int)
;size.ground.front (int)
;size.air.back (int)
;size.air.front (int)
;size.height (int)
;size.proj.doscale (int)
;size.head.pos (int,int)
;size.mid.pos (int,int)
;size.shadowoffset (int)
;persistent =


added it and it still doesnt work.
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 01, 2008, 09:29:54 PM
because you are making some mistake  :-"

[statedef -2]

[State -2, Helper]
type = Helper
trigger1 = command = "z" && NumHelper(1000) = 0
helpertype = normal ;
name = "helper"
ID = 1000; the same from NumHelper
stateno = 710
pos = -5,0
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1

pay attention that is under STATEDEF -2 . I've tested on KFM and it works
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 01, 2008, 09:33:33 PM
because you are making some mistake:

[statedef -2]

[State 0, Helper]
type = Helper
trigger1 = command = "z" && NumHelper(1000) = 0
helpertype = normal ;
name = "helper"
ID = 1000; the same from NumHelper
stateno = 710
pos = -5,0
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 1
ignorehitpause = 1

pay attention that is under STATEDEF -2 . I've tested on KFM and it works
lol i did put it under -2
here what i have .

[Statedef 710]
type=S
physics=S
movetype=A
anim=710
velset=0,0
ctrl=0
sprpriority=-1


[State 710, 1]
type = HitDef
trigger1 = Time=0
attr = S, NA
damage = 100
animtype = Heavy
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 10, 10
sparkno = 0
sparkxy = -10, -76
hitsound = 5, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime  = 12
ground.velocity = -8,-6
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12
fall=1

[State 710, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1



[State 0, VelSet]
type = VelSet
trigger1 = time >= 1 && <=20
x = 3
y = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 =    time=500

^^ not under -2


[State 0, Helper]
type = Helper
trigger1 = command = "z"    && NumHelper(1000) = 0
helpertype = normal
name = "Helper1"
ID = 1000; the same from NumHelper
stateno = 710
pos = -5,0
postype = p1    ;p2,front,back,left,right
facing = 1

^^ under -2
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 01, 2008, 09:48:13 PM
two things:

1-
Quote
[State 710, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

Why it needs a chantestate to the 0, if its a helper and you will use a DetroySelf after?


2-
Quote
[State 0, VelSet]
type = VelSet
trigger1 = time >= 1 && <=20
x = 3
y = 0

Make this way:

Quote
[State 0, VelSet]
type = VelSet
trigger1 = time = [1,20]
x = 3
y = 0

But what happens? the helper aren't showing up?

Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 01, 2008, 09:50:24 PM
it shows up.. i just become the helper instead of the helper just moving across the screen.
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 01, 2008, 09:54:34 PM
you become the helper????? Its impossible.

aren't using the SAME state 710 two times?
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 01, 2008, 10:01:30 PM
you become the helper????? Its impossible.

aren't using the SAME state 710 two times?
nope.

want me to send u the character?
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 01, 2008, 10:03:39 PM
send a link by Pm, but I'm going to sleep now, tomorrow I see it.

If you want, open the KFM, add a "[statedef -2]", add the code that I've sent to you and see that it works.

 :O*D
Title: Re: How to make a helper state with out making a call helper state.
Post by: Alexziq on June 02, 2008, 04:00:47 PM
this is the animation SHE does when calling helper
[Statedef 32000]
type = C
movetype = I
physics = N
ctrl = 0
anim = 0  this is the animation SHE does when calling HELPER
velset = 0,0
sprpriority = 0

[State 32000, Helper]
type = Helper
trigger1 =  AnimElem = 3
trigger1 = NumHelper(32001) = 0
helpertype = normal ;player     
name = "HELPER"           
ID =  32001                   
stateno =   32001
pos = 30,-230
postype = p2   
facing = 1
keyctrl = 0
ownpal = 1
supermove
pausemove


lol she?
neways imma use that as a reference and see if it works.
thnx man.

Sorry I meant my character was a she.

I take it you got it working?
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 02, 2008, 04:02:03 PM
this is the animation SHE does when calling helper
[Statedef 32000]
type = C
movetype = I
physics = N
ctrl = 0
anim = 0  this is the animation SHE does when calling HELPER
velset = 0,0
sprpriority = 0

[State 32000, Helper]
type = Helper
trigger1 =  AnimElem = 3
trigger1 = NumHelper(32001) = 0
helpertype = normal ;player     
name = "HELPER"           
ID =  32001                   
stateno =   32001
pos = 30,-230
postype = p2   
facing = 1
keyctrl = 0
ownpal = 1
supermove
pausemove


lol she?
neways imma use that as a reference and see if it works.
thnx man.

Sorry I meant my character was a she.

I take it you got it working?
yea but now i become the helper lo.. im waiting on lisionista to reply back.
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 02, 2008, 05:29:39 PM
I'm fixing this right now (you have made mistakes, as I thought hehe)

Plus, something PLUS is going too :)


edit:

Your mistake was:

CMD

Quote
;Helper1
[State -1, Helper1]
type =ChangeState
value = 710
triggerall = command = "Helper1"
trigger1 = (statetype = s) && ctrl

If the state 710 was the helper's state, why do you sent your char to the same state? :)

on the cns:

Quote
[Statedef 710]
type=S
physics=N; Its NEUTRAL, not stand.
movetype=A
anim=710
velset=10,3
ctrl=0
sprpriority=10

and, as I said: Put the code  UNDER STATEDEF -2:


Quote
[State 0, Helper]
type = Helper
trigger1 = command = "z"&& NumHelper(1000) = 0
helpertype = normal
name = "Helper1"
ID = 1000; the same from NumHelper
stateno = 710
pos = -5,0
postype = p1    ;p2,front,back,left,right
facing = 1

Where is the [statedef -2], above it? Without this, you code won't work.

I've sent to you the files that I've fixed. On the state 710 I put two versions...check it out :)
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 02, 2008, 07:08:47 PM
thanks alot dude it works!
now the problem is.. when im standing still or moving forward and back i still become the helper!
but when ducking or in the air the helper comes out perfectly.
ne idea why its like that?
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 02, 2008, 07:22:23 PM
nvm got it..
but it still has the error when his power bar is full.
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 02, 2008, 08:03:22 PM
Quote
now the problem is.. when im standing still or moving forward and back i still become the helper!

You gotta be kiddin me....PLEASE PAY ATTENTION WHEN SOMEONE IS TRYING TO HELP YOU.  >o:-(

Check the freakin CMD....

Quote
but it still has the error when his power bar is full.

What problem?
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 02, 2008, 08:26:43 PM
Quote
now the problem is.. when im standing still or moving forward and back i still become the helper!

You gotta be kiddin me....PLEASE PAY ATTENTION WHEN SOMEONE IS TRYING TO HELP YOU.  >o:-(

Check the freakin CMD....

Quote
but it still has the error when his power bar is full.

What problem?
whoa whoa dude no need for an aditude followed what u said and it works
now the only problem is when lucarios bar is al full and when pressing z, he becomes the helper only when standing, and moving.

but when he has less then 3 bars the move works perfectly.
Title: Re: How to make a helper state with out making a call helper state.
Post by: Fallen_Angel on June 03, 2008, 10:24:03 AM
check the cmd or the cns, for something that has as a trigger power >=3000 or power =3000
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 03, 2008, 11:30:13 AM
Quote
whoa whoa dude no need for an aditude followed what u said and it works

Sorry, but when we are trying to help someone, when we're using our few free time and this person doesn't reads carefully what we says, this is really bad. Do you remember what I've said about the CMD?

I will post AGAIN, so you can see:

Quote
;Helper1
[State -1, Helper1]
type =ChangeState
value = 710
triggerall = command = "Helper1"
trigger1 = (statetype = s) && ctrl
[/b]

YOU NEED TO DELETE THIS CODE FROM THE CMD

You are sending your own character to the state 710, as I've said before.

Because I have the version that I've sent to you...and its WORKS PERFECTLY.

This is the image, if you don't believe:

(http://img119.imageshack.us/img119/1383/mugen19cd0.jpg)

note that he is walking...and everything is okay.

Sorry if I was rude, but this really piss me off.
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 03, 2008, 03:42:13 PM
Quote
whoa whoa dude no need for an aditude followed what u said and it works

Sorry, but when we are trying to help someone, when we're using our few free time and this person doesn't reads carefully what we says, this is really bad. Do you remember what I've said about the CMD?

I will post AGAIN, so you can see:

Quote
;Helper1
[State -1, Helper1]
type =ChangeState
value = 710
triggerall = command = "Helper1"
trigger1 = (statetype = s) && ctrl
[/b]

YOU NEED TO DELETE THIS CODE FROM THE CMD

You are sending your own character to the state 710, as I've said before.

Because I have the version that I've sent to you...and its WORKS PERFECTLY.

This is the image, if you don't believe:

(http://img119.imageshack.us/img119/1383/mugen19cd0.jpg)

note that he is walking...and everything is okay.

Sorry if I was rude, but this really piss me off.
hmm alright thanks dude i guess i forgot to delete that cmd(could have sworn i had..)

it works now.
Title: Re: How to make a helper state with out making a call helper state.
Post by: O Ilusionista on June 03, 2008, 03:46:03 PM
Quote
hmm alright thanks dude i guess i forgot to delete that cmd(could have sworn i had..)

it works now.

See what I talk? hehehe

And do you liked the zoomed version?
 
Title: Re: How to make a helper state with out making a call helper state.
Post by: Luis/Dshiznet on June 03, 2008, 03:50:19 PM
Quote
hmm alright thanks dude i guess i forgot to delete that cmd(could have sworn i had..)

it works now.

See what I talk? hehehe

And do you liked the zoomed version?
 
its alright.. but i prefer the second and original version best.
SimplePortal 2.3.5 © 2008-2012, SimplePortal