Just make a helper for the attack then add poweradd with negative value and the trigger = command = "hold_x"(this mean when you hold the button you will lose power) and Changestate with value 0 and tigger = command!= "hold_x" (This will take you to the normal standing stance when you stop holding the button).
If you couldn't understand here is an example:
[State 471, PowerAdd] type = PowerAdd trigger1 = Command = "hold_x" value = -5
[State 471, end] type = ChangeState trigger1 = Command != "hold_x" value = 0 ctrl = 1
For recording I use Camstudio latest version.
Message edited by Leo116 - Tuesday, 2012-07-03, 10:30 AM
the parentvarset in state 232 is for setting the value to 15 WHEN you did NOT hold the button AT LEAST 5 ticks
the damage value of hitdef should be INTEGER, not float, so you can't use division formula
Added (2012-07-03, 10:30 AM) --------------------------------------------- KevStick, i gave you a chargeable helper code. damage depends on how long you charge it