New problem with Power Charge

Started by YungBlaze, March 06, 2011, 02:10:42 AM

Previous topic - Next topic

YungBlaze

New:
im having trouble making the ground shake when he chargeing i got it to work with all my projectile moves,  i tryed to add it to  the power charge and its just not working
heres the code
;Power Charge
[Statedef 6010]
type = S
movetype = I
physics =  S
ctrl = 0
anim = 6010
sprpriority = 0

[State 6010, 1]
type = PowerAdd
trigger1 = (time%3)= 0
value = 10+ceil(time/20)

[State 6010, 2]
type = changestate
trigger1 = Command != "holddown" && Command != "hold_z"
trigger2 = power = PowerMax
value =  6011

[State 6010, EnvShake]
type = EnvShake
trigger1 = Command != "holddown" && Command != "hold_z"
time = 30
freq = 60
ampl = -4
phase = 90


;finsh charge
[Statedef 6011]
type = s
movetype = I
physics = s
anim = 6011
sprpriority = 2


[State 6011, 1]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1


OLD:
i followed this This tutorial www.youtube.com/watch?v=fW1ck480WEI i looked over it 3 to 4 time and everything looks right what did i do wrong.
This is the error i got


;Power Charge
[StateDef 6010]
type = S
movetype= i
physics = S
ctrl = 0
anim = 6010
sprpriority = 2

[StateDef 6010, 1]
type = PowerAdd
trigger1 = (time%3)
value = 10+ceil(time/20)

[State 6010, 2]
type = Explod
trigger1 = !Time
anim = 6004
ID = 6004
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
scale = 1,1
sprpriority = 3
removeongethit = 0

[State 6010, 3]
type = changestate
trigger1 = Comand != "holdx" && Command != "holda"
trigger2 = power = PowerMax
value =  6011

;finsh charge
[StateDef 6010]
type - s
movetype = I
physics = s
anim = 6010
sprpriority = 2

[StateDef 6010, 1]
type = removeexplod
trigger1 = !time
id = 6004

[StateDef 6010, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1


Riptide

movetype should be I not i

type - s
should be type=s

fix those then see if you get an error in StateDef 6010, 1

2OS

Quote from: Riptide on March 06, 2011, 02:15:01 AM
movetype should be I not i

^ This doesn't matter

Take it from someone that codes 100 % optimized 100 % of the time

YungBlaze

okay i edited it and i get the same error, what now? or did i not misses up again
;Power Charge
[StateDef 6010]
type = s
movetype= I
physics =  S
ctrl = 0
anim = 6010
sprpriority = 2

[StateDef 6010, 1]
type = PowerAdd
trigger1 = (time%3)
value = 10+ceil(time/20)

[State 6010, 2]
type = Explod
trigger1 = !Time
anim = 6004
ID = 6004
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
scale = 1,1
sprpriority = 3
removeongethit = 0

[State 6010, 3]
type = changestate
trigger1 = Comand != "holdx" && Command != "holda"
trigger2 = power = PowerMax
value =  6011

;finsh charge
[StateDef 6011]
type = s
movetype = I
physics = s
anim = 6011
sprpriority = 2

[StateDef 6011, 1]
type = removeexplod
trigger1 = !time
id = 6004

[StateDef 6011, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

Riptide

Type=S not s
I don't see anything else throwing an error.

Cyanide

trigger1 = (time%3)

It's that. You need an = 0 on the end of it or something.

And in most cases, Case is not important. The only times i have found it makes a difference is in p2dist where it's an expression. Using p2dist x broke, using p2dist X did not. And with command strings, you have to match case there as well.


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.

2OS

I should have been more abundant

Casing DOES NOT EVER MATTER


As for your error


[StateDef 6010, 1]
type = PowerAdd
trigger1 = (time%3)
value = 10+ceil(time/20)

[StateDef 6010, 1]
type = removeexplod
trigger1 = !time
id = 6004

[StateDef 6010, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1


Get rid of ^ those please

Riptide

I didn't realize he had def everywhere. I was only looking at statedef 610 because that where the error was :P

I kept thinking something was wrong with his formatting but ignored it thinking those were separate states.

Casing matters in the CMD so I just assumed. I never use lowercase letters in the CNS.

YungBlaze

edited code
[State 6010, 1]
type = PowerAdd
trigger1 = (time%3)= 0
value = 10+ceil(time/20)

[State 6010, 2]
type = Explod
trigger1 = !Time
anim = 6004
ID = 6004
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
scale = 1,1
sprpriority = 3
removeongethit = 0

[State 6010, 3]
type = changestate
trigger1 = Comand != "holdx" && Command != "holda"
trigger2 = power = PowerMax
value =  6011

;finsh charge
[Statedef 6011]
type = s
movetype = I
physics = s
anim = 6011
sprpriority = 2

[State 6011, 1]
type = removeexplod
trigger1 = !time
id = 6004

[State 6011, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

new error
Error message: Invalid trigger: Comand
Error parsing trigger1, 1
Error parsing [State 6010, 3]
Error in [Statedef 6010]
Error in Taitto.cns
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/ffchartest/ffchartest.def
Error loading p1

Library error message: Died parsing Comand != "holdx" && Command != "holda"


Riptide

Comand  should be command.

You're having all these spelling and syntax errors. You need to look over your code.
I'd hate to see what would happen if you were working in the CMD.

YungBlaze

this is my first character  i never knew 1 thing could just corrupt the thing now that i know ill be sure to be more careful.
i was working the the command spot too, i always mark thing off when i add

New error code

Error message: Need at least 1 trigger
Error parsing [State -1, Power Charge]
Error in [Statedef -1]
Error in Taitto.cmd
Error loading chars/ffchartest/ffchartest.def
Error loading p1



[Command]
name = "holdx"
command = /x
time = 1

[Command]
name = "holda"
command = /a
time = 1


;power Charge
[State -1, Power Charge]
type = ChangeState
value = 6010
triggerall = conrl && power != PowerMax && StateType != A
Tigger1 = command = "holda" command = "holdx"


What do i do from here

Cyanide

conrl
Tigger1 = command = "holda" (you need something here) command = "holdx"

Every time you type something, check it, these are probably things you could bug test yourself, even with limited experience. Spelling errors don't help much.


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.

Riptide

 ::) I was right about the cmd. If you are using FF you shouldn't be running into all those spelling errors. Are you typing stuff from scratch on notepad?

YungBlaze

:D got it to work now thanks for your help everyone.

ill make sure i check  my spelling, everything i know is what i learn on youtube, is there any place around here or anywhere else that i could learn how to code properly.
i was typing from scratch following what the guy was saying  quality  was not the best so i had to make somethings out.

Riptide

Read the docs and keep talking to cyanide. Don't always type from scratch.
I used youtube in the beginning but I realized the information was limited, old and some of it was incorrect.  So I came here. Reading other people's help topics can help you get through some of your problems.
Sometimes I do that for code ideas.

YungBlaze

kk cool    i guess reading other peoples stuff should help me a bit, right now i wanna learn combos anywhere you suggest i look?

YungBlaze

im having trouble making the ground shake when he chargeing i got it to work with all my projectile moves,  i tryed to add it to  the power charge and its just not working
heres the code
;Power Charge
[Statedef 6010]
type = S
movetype = I
physics =  S
ctrl = 0
anim = 6010
sprpriority = 0

[State 6010, 1]
type = PowerAdd
trigger1 = (time%3)= 0
value = 10+ceil(time/20)

[State 6010, 2]
type = changestate
trigger1 = Command != "holddown" && Command != "hold_z"
trigger2 = power = PowerMax
value =  6011

[State 6010, EnvShake]
type = EnvShake
trigger1 = Command != "holddown" && Command != "hold_z"
time = 30
freq = 60
ampl = -4
phase = 90


;finsh charge
[Statedef 6011]
type = s
movetype = I
physics = s
anim = 6011
sprpriority = 2


[State 6011, 1]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

Riptide

Does it just trigger once or...what is actually happening?

YungBlaze

im tryin to make it when when your in power change mode it shakes,  when you let go it stops

2OS

[State 6010, EnvShake]
type = EnvShake
trigger1 = Command != "holddown" && Command != "hold_z"&&timemod=10,1
time = 10

freq = 60
ampl = -4
phase = 90