YesNoOk
avatar

How to charge two moves. (Read 561 times)

Started by David1990, November 08, 2011, 05:28:18 pm
Share this topic:
How to charge two moves.
#1  November 08, 2011, 05:28:18 pm
  • avatar
  • *
How you input in the cmd and/or the cns when charging one move charges the other one as well. Example balrog special move "dash punch" cancel it into a super violent buffalo both moves need charge motion which is holding back. I would appreciate if someone can help me with this.
Re: How to charge two moves.
#2  November 08, 2011, 08:18:35 pm
  • ****
    • Hungary
    • seravy.x10.mx/Wordpress
If I understand the question well, then like this :

Code move 1 as you normally do. (normal command changes to 1000, charged changes to 1010)

For move 2, code it like this instead :
Code:
[State -1]
Type=Changestate
Triggerall= ctrl  || (Stateno=[1000,1010])
Triggerall=other conditions for your move
Trigger1=command="uncharged command for move 2"
Trigger2=command="charged command for move 2"
value=1100+10*((command="charged command for move 2") || (Stateno=1010))

Example state numbers used :
State 1000 Uncharged version of move 1
State 1010 Charged version of move 1
State 1100 Uncharged version of move 2
State 1110 Charged version of move 2

Otherwise, you can use a variable which you keep at 1 while performing a charged command, and set to 0 when idle. Then if the variable is 1 and an uncharged move would be used, change to the charged version instead.
Re: How to charge two moves.
#3  November 10, 2011, 03:58:49 pm
  • avatar
  • *
Thanks  :)
Re: How to charge two moves.
#4  November 10, 2011, 09:03:36 pm
  • *****
  • Mega Klinklang confirmed
    • USA
    • ricepigeon.webs.com
If I understand the question well, then like this :

Code move 1 as you normally do. (normal command changes to 1000, charged changes to 1010)

For move 2, code it like this instead :
Code:
[State -1]
Type=Changestate
Triggerall= ctrl  || (Stateno=[1000,1010])
Triggerall=other conditions for your move
Trigger1=command="uncharged command for move 2"
Trigger2=command="charged command for move 2"
value=1100+10*((command="charged command for move 2") || (Stateno=1010))

Example state numbers used :
State 1000 Uncharged version of move 1
State 1010 Charged version of move 1
State 1100 Uncharged version of move 2
State 1110 Charged version of move 2

Otherwise, you can use a variable which you keep at 1 while performing a charged command, and set to 0 when idle. Then if the variable is 1 and an uncharged move would be used, change to the charged version instead.

I believe he's talking about charge commands involving directions, not charging a move by holding an attack button, since he mentioned Balrog as an example (ie: hold b, f + atk). Stemming from that, it also sounds like he's asking how to charge two of those moves simultaneously. example: with Guile, holding DB will let you perform the charge for both Flash Kick ([D],U+K) and Sonic Boom ([ B],F+P).

<<-- Updated 09/14/14

You limit yourself so badly when you try to avoid variables. When you get over your fear of the "complexity" of variables, you will find yourself in a better place: A beautiful world where coding is actually fun.
Last Edit: November 11, 2011, 03:35:01 am by RicePigeon
Re: How to charge two moves.
#5  November 13, 2011, 05:34:13 pm
  • avatar
  • *
Thanks Ricepigeon for simplifying what i'm saying. Yeah that's exactly what i want to know. I want to know simplest way to do this and easy to understand.
Re: How to charge two moves.
#6  November 13, 2011, 05:58:51 pm
  • ****
    • Hungary
    • seravy.x10.mx/Wordpress
In that case, code it like this :
Code:
[Command]
name = "Charged 1"
command = ~30$D,U,a

[Command]
name = "Uncharged 1"
command = $D,U,a

[Command]
name = "Charged 2"
command = ~30$B,F,a

[Command]
name = "Uncharged 2"
command = $B,F,a

[Statedef -1]

[State -1]
Type=Changestate
Trigger1=ctrl || (Stateno=[1000,2999])
Trigger1=command="Uncharged 1" || command="Charged 1"
Trigger1=additional conditions for move 1
value=1000+1000*((Stateno=[2000,2999]) || (command="Charged 1"))

[State -1]
Type=Changestate
Trigger1=ctrl || (Stateno=[1000,2999])
Trigger1=command="Uncharged 2" || command="Charged 2"
Trigger1=additional conditions for move 2
value=1010+1000*((Stateno=[2000,2999]) || (command="Charged 2"))

...same for the remaining moves if there are more than 2.
All non-charged moves use states 1000-1999 and charged ones use 2000-2999, and the difference between the charged and uncharged move state number is always 1000.
So in the example,
1000 - Uncharged move 1
1010 - Uncharged move 2
1020 - Uncharged move 3
...
2000 - Charged move 1
2010 - Charged move 2
2020 - Charged move 3
...

In the line with ctrl, write the actual state numbers and conditions you want the move to be available from, the example allows cancelling any move into any other move at any time.
Re: How to charge two moves.
#7  November 21, 2011, 11:19:57 pm
  • avatar
  • *
Thanks again.