So, i'm working on a Cookie Monster character and in one of his specials he would summon Gingerbrave from Cookie Run to do a rushing move. But i'm stumped in how to summon him in the first place. Is there something missing in this code?
[Statedef 12000]
type = S
physics = S
moveType = A
anim = 20001
ctrl = 0
velset = 0,0
sprPriority = 2
poweradd = 70 * !var(20)
faceP2 = 1
[State 1200, 2]
type = HitDef
trigger1 = Time = 0
attr = S, SA
animtype = Hard
damage = 100, 6
priority = 5
guardflag = MA
pausetime = 12,12
sparkxy = 0,-65
hitsound = 5,3
guardsound = 6,0
ground.type = Low
ground.slidetime = 16
ground.hittime = 20
ground.velocity = -10
ground.cornerpush.veloff = -12 ;To push far away when p2 is in corner
guard.velocity = -7
air.velocity = -3.5,-4.5
airguard.velocity = -3.5,-4.5
[State 0, Helper]
type = Helper
trigger1 = animelem = 4
helpertype = normal ;player
name = "Gingerbrave"
ID = 20001
stateno = 12000
pos = 0,0
postype = p1 ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0
supermovetime = 0
pausemovetime = 0
;size.xscale =
;size.yscale =
;size.ground.back =
;size.ground.front =
;size.air.back =
;size.air.front =
;size.height =
;size.proj.doscale =
;size.head.pos = ,
;size.mid.pos = ,
;size.shadowoffset =
;ignorehitpause =
;persistent =
[State 1000, End]
type = ChangeState
trigger1 = !AnimTime
value = 0
ctrl = 1
ReplyQuoteRemove
I'm real newbie here
Oh, and about adding a new move... I put the command for it in the commands file, but it didn't do anything when i input the command.
Quote from: snowy997 on March 16, 2026, 08:57:17 PM
So, i'm working on a Cookie Monster character and in one of his specials he would summon Gingerbrave from Cookie Run to do a rushing move. But i'm stumped in how to summon him in the first place. Is there something missing in this code?
[Statedef 12000]
type = S
physics = S
moveType = A
anim = 20001
ctrl = 0
velset = 0,0
sprPriority = 2
poweradd = 70 * !var(20)
faceP2 = 1
[State 1200, 2]
type = HitDef
trigger1 = Time = 0
attr = S, SA
animtype = Hard
damage = 100, 6
priority = 5
guardflag = MA
pausetime = 12,12
sparkxy = 0,-65
hitsound = 5,3
guardsound = 6,0
ground.type = Low
ground.slidetime = 16
ground.hittime = 20
ground.velocity = -10
ground.cornerpush.veloff = -12 ;To push far away when p2 is in corner
guard.velocity = -7
air.velocity = -3.5,-4.5
airguard.velocity = -3.5,-4.5
[State 0, Helper]
type = Helper
trigger1 = animelem = 4
helpertype = normal ;player
name = "Gingerbrave"
ID = 20001
stateno = 12000
pos = 0,0
postype = p1 ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0
supermovetime = 0
pausemovetime = 0
;size.xscale =
;size.yscale =
;size.ground.back =
;size.ground.front =
;size.air.back =
;size.air.front =
;size.height =
;size.proj.doscale =
;size.head.pos = ,
;size.mid.pos = ,
;size.shadowoffset =
;ignorehitpause =
;persistent =
[State 1000, End]
type = ChangeState
trigger1 = !AnimTime
value = 0
ctrl = 1
ReplyQuoteRemove
I'm real newbie here
Quote from: snowy997 on March 16, 2026, 09:05:09 PM
Oh, and about adding a new move... I put the command for it in the commands file, but it didn't do anything when i input the command.
Hi, how are you? We didn't see anything wrong with the code itself, but have you checked if the Statedef number is correct for both the command and the helper?
Quote from: snowy997 on March 16, 2026, 08:57:17 PM
[Statedef 12000]
type = S
physics = S
moveType = A
anim = 20001
ctrl = 0
velset = 0,0
sprPriority = 2
poweradd = 70 * !var(20)
faceP2 = 1
(...)
[State 0, Helper]
type = Helper
trigger1 = animelem = 4
helpertype = normal ;player
name = "Gingerbrave"
ID = 20001
stateno = 12000
pos = 0,0
postype = p1 ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0
supermovetime = 0
pausemovetime = 0
Clearly you've a problem here, you can't summon a helper if the state is its same than the root state. If you got the state 12000 for your char to summon the helper, the helper state should be 12001 or any other number since it's another state independent of this one