YesNoOk
avatar

Command Attack Problem (Read 6121 times)

Started by Vebills, February 13, 2023, 12:37:00 pm
Share this topic:
Command Attack Problem
#1  February 13, 2023, 12:37:00 pm
  • avatar
    • Brazil
So, a friend was making some characters and completed them, but one of these characters has two attacks that the player cannot perform, but the CPU can. I'm trying to fix this since he probably won't be playing on this project anymore. I've tried changing the command, or even somehow changing the state, but it never do the attack.

The command should be this for the "Punch Rush" attack

[Command]
name="PunchRush"
command=~B,F,b
time=20

And the state

[Statedef 1500]
type=S
movetype=A
physics=S
juggle=1
velset=0,0
ctrl=0
anim=1500
poweradd=20
sprpriority=2
[State 1500]
type=PlaySnd
trigger1=AnimElem=2
trigger2=AnimElem=4
trigger3=AnimElem=6
trigger4=AnimElem=8
trigger5=AnimElem=10
trigger6=AnimElem=12
trigger7=AnimElem=14
trigger8=AnimElem=16
value=F2,0
[State 1500]
type=HitDef
trigger1=AnimElem=2
trigger2=AnimElem=4
trigger3=AnimElem=6
trigger4=AnimElem=8
trigger5=AnimElem=10
trigger6=AnimElem=12
trigger7=AnimElem=14
attr=S,NA
damage=10,0
animtype=Medium
guardflag=MA
pausetime=3,3
sparkxy=-20,-36
hitsound=F0,1
guardsound=F1,1
ground.type=High
ground.slidetime=12
ground.hittime=16
ground.velocity=0
air.velocity=-1.4,-3
[State 1500]
type=HitDef
trigger1=AnimElem=16
attr=S,NA
damage=50,0
animtype=Medium
guardflag=MA
pausetime=20,10
sparkxy=-20,-36
hitsound=F0,1
guardsound=F1,1
ground.type=High
ground.slidetime=12
ground.hittime=16
ground.velocity=-9,-1
air.velocity=-1.4,-3
fall=1
[State 1500]
type=ChangeState
trigger1=AnimTime=0
value=0
ctrl=1

The second attack was to be a "ground wave"

[Command]
name="Ground_Wave"
command=~F,B,F,c
time=20

and the state

[Statedef 1050]
type=S
movetype=A
physics=S
poweradd=-100
juggle=1
anim=1050
ctrl=0
velset=0,0
[State 1050]
type=PlaySnd
trigger1=AnimElem=2
value=s5,1
[State 1050]
type=Projectile
trigger1=AnimElem=2
Projanim=1051
ProjHitAnim=6002
ProjRemAnim=6002
projpriority=2
velocity=10,0
remvelocity=.7,0
velmul=1,1
accel=.2,0
attr=S,SP
animtype=Hard
damage=80,25
getpower=0
givepower=0
guardflag=L
pausetime=0,12
sparkxy=0,0
hitsound=F0,2
guardsound=F1,0
ground.type=Low
ground.slidetime=15
ground.hittime=9
ground.velocity=-4,-3.5
air.type=low
air.velocity=-2.5,-5.5
air.juggle=3
Fall=1
[State 1050]
Type=ChangeState
trigger1=time=50
value=0
ctrl=1

What's up with this character? Why do the commands not work but the cpu can use them?
Re: Command Attack Problem
#2  February 13, 2023, 02:39:11 pm
  • ****
    • crepa.neocities.org

  • Online
What about the changestates on -1?