YesNoOk
avatar

Some sort of var combo (Read 1265 times)

Started by BurningSoul, October 21, 2021, 06:12:17 PM
Share this topic:
Some sort of var combo
#1  October 21, 2021, 06:12:17 PM
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
Sharin lame ways to do combos
Requires a free var
Code:
[State 1000, Detect Reset]
type=VarSet
trigger1=!Time
var(x)=0

[State 1000, Followup]
type=VarSet
triggerAll=(!var(x) || AILevel) && animelemtime(4)<0
trigger1=!AILevel
trigger1=MoveContact
trigger1=command="y" && command!="holddown"
var(x)=210

[State 1000, Followup]
type=ChangeState
trigger1=var(x)=[200,699]
trigger1=!Animtime
value=var(x)


some sort of cheat way to do combos,
you set a var that triggers if ai is on or varx is off as triggerall
below you enter condition as trigger1 it could be movecontact or could even be a cancel you can do beetween certain frames of animation even if it
didnt hit,animelemtime(3)>0 so if your move has red hitbox on frame3/animelem 3 then this means it will trigger after 3 or you can do it to sth like
animelemtime(3)>=0 to make it easier and it will set a var and that var will be used as a stateno number when character is in !Animtime
command for medium punch is y and not holddown hence ! so this is how I set it pretty much,different state like 420 crouching hard punch would need sth like this
command="x" && command="holddown"

You can also use this for auto combo stuff. can even change !Animtime to a specific animelem to combo into next attack before animation ends