YesNoOk
avatar

Add004 (Read 3607 times)

Started by NecusX, July 20, 2019, 12:54:03 am
Share this topic:
Add004
#1  July 20, 2019, 12:54:03 am
  • **
  • BOOM!
  • I'm a magen dade who knows how to code somewhat
    • USA
So is there any way to change a characters assist because I personally want to change some characters assist to some that doesn't use any assist at all when on screen, most notably, Strider Hiryu.
That will happen to you if you don't wear your seat belts, so make sure to wear your seat belts.
Re: Add004
#2  July 20, 2019, 09:11:17 am
  • **
    • USA
I'll explain this the best way I can use control D to go into debug mode and look at the value of the special attack you want to use

put the value in the characters cns file and at the very botton of the CNS folder put this

; Partner Attack
; land>roundover
; ??>??????
;--------------------------
[statedef 190195]
type=s
movetype=i
physics=s
anim=47
sprpriority=-2
velset=0,0
ctrl=0
;---
[state 0]
   type=nothitby
   trigger1=1
   value=sca
   time=8 ;;<-options
[state 0]
   type=screenbound
   trigger1=1
   value=0
[state 0]
   type=playerpush
   trigger1=1
   value=0
[state 0]
   type=posset
   trigger1=!time
   y=0
;---
[state 0]
   type=changestate
   trigger1=(animtime=0) && (roundstate=2) && (sysfvar(4)>0) && (sysfvar(0)>0) && playeridexist(floor(sysfvar(0)))
   trigger1=(playerid(floor(sysfvar(0))),var(0)=90900)
  value=1320 ;;Change this to set support move
   anim=150 ;; guarding anim for stateno-checking
   ctrl=0

; ex-change (for safety)
; ???
[state 0]
   type=changestate
   trigger1=animtime=0
   value=0
   ctrl=1

change the value to what you want in the bolded section
Re: Add004
#3  July 20, 2019, 05:30:24 pm
  • **
  • BOOM!
  • I'm a magen dade who knows how to code somewhat
    • USA
It still doesn't seem to work here is how I put it in the file

[State 5900, 4] ;Intro for round 1
type = ChangeState
trigger1 = roundno = 1
value = 190

[State 5900, 5] ;All other rounds
type = ChangeState
triggerall = !roundsexisted && teammode = turns
trigger1 = roundno != 1
value = 190

; ...
[Statedef 19999997]
type    = A
movetype= H
physics = N
velset = 0,0
anim = 9999

[State 7760]
type = playsnd
trigger1 = Time = 1
value = 0,14
channel = 8
volume = 255
persistent = 0

[State 7760]
type = playsnd
trigger1 = Time = 1
value = 0,14
channel = 9
volume = 255
persistent = 0

[State FX-4b, Pause]
type = Pause
trigger1 = roundstate = 2
trigger1 = time <= 60
trigger1 = (time % 1) = 0
time = 1

[State 7760]
type = Explod
triggerall = !NumExplod(88888888)
trigger1 = WinKO
trigger2 = Time = 0
persistent = 0
anim = 9950
id = 88888888
postype = Back
pos = 0, 0
bindtime = -1
removetime = -2
ontop = 1
supermovetime = 1000
pausemovetime = 1000
ignorehitpause = 1


[State 7760]
type = DestroySelf
trigger1 = Parent,alive

[Statedef 19999998]
type    = A
movetype= H
physics = N
velset = 0,0
anim = 9999

[State 6119, Explod]
type = Explod
triggerall = !NumExplod(88888888)
trigger1 = WinKO
trigger2 = Time = 0
persistent = 0
anim = 9950
id = 88888888
postype = Back
pos = 0, 0
bindtime = -1
removetime = -2
ontop = 1
supermovetime = 1000
pausemovetime = 1000
ignorehitpause = 1


[State 7760]
type = playsnd
trigger1 = Time = 1
value = 0,15
channel = 8
volume = 255
persistent = 0

[State 7760]
type = playsnd
trigger1 = Time = 1
value = 0,15
channel = 9
volume = 255
persistent = 0


[State 7770]
type = DestroySelf
trigger1 = Parent,alive
 
;Doing the Recovery command while
;lying down will save you from extra hits on ground
[Statedef 5202]
type    = C
movetype= H
physics = N
anim = 5200
facep2 = 1
sprpriority = -1

[State 5201, PosSet]
type = PosSet
trigger1 = time = 0
y = 0

[State 5201, VelSet]
type = VelSet
trigger1 = time = 0
x = 8
y = 0

[State 5201, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 5201, PlayerPush]
type = PlayerPush
trigger1 = anim = 5200
value = 0

[State 5201, ChangeState]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;P1 Tech Hit
[Statedef 200000]
type = S
movetype = I
physics = S
velset = -8,0
facep2 = 1
anim = 47

[State -2, ?V?X?e?????b?Z?[?W]
type = Explod
triggerall = teamside = 1 && alive
trigger1 = time = 0
anim = 8573
ownpal = 1
ontop = 1
postype = right
bindtime = -1
pos = 0,80
scale = .5,.5
supermove = 1
pausemovetime = 99999999
ignorehitpause = 1
id = 8570

[State 1000, Explod]
type = Explod
trigger1 = time = 0
anim = 9101
id = 9101
pos = 0,-50
supermove = 1
sprpriority = 4
ownpal = 1

[State -2, ?V?X?e?????b?Z?[?W]
type = Explod
triggerall = teamside = 2 && alive
trigger1 = time = 0
anim = 8578
ownpal = 1
ontop = 1
postype = left
bindtime = -1
pos = 0,80
scale = .5,.5
supermove = 1
pausemovetime = 99999999
ignorehitpause = 1
id = 8570

[State 7000, sn1]
type = PlaySnd
trigger1 = Time = 0
value = 7,14
volume = 255

[State 820, 2]
type = nothitby
trigger1 = 1
value = SCA

[State 820, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;P1 Air Tech-Hit
[Statedef 200010];??????
type = A
movetype = I
physics = N
anim = 132
velset = -2,-2
facep2 = 1

[State 820, 1]
type = playsnd
trigger1 = time = 1
value = S8201,4
volume = 250

[State -2, ?V?X?e?????b?Z?[?W]
type = Explod
triggerall = teamside = 1 && alive
trigger1 = time = 0
anim = 8578
ownpal = 1
ontop = 1
postype = right
bindtime = -1
pos = 0,80
scale = .5,.5
supermove = 1
pausemovetime = 99999999
ignorehitpause = 1
id = 8570

[State 1000, Explod]
type = Explod
trigger1 = time = 0
anim = 9101
id = 9101
pos = 0,-50
supermove = 1
sprpriority = 4
ownpal = 1


[State -2, ?V?X?e?????b?Z?[?W]
type = Explod
triggerall = teamside = 2 && alive
trigger1 = time = 0
anim = 8573
ownpal = 1
ontop = 1
postype = left
bindtime = -1
pos = 0,80
scale = .5,.5
supermove = 1
pausemovetime = 99999999
ignorehitpause = 1
id = 8570

[State 7000, sn1]
type = PlaySnd
trigger1 = Time = 0
value = 7,14
volume = 255

[State 821, 1] ;Gravity
type = VelAdd
Trigger1 = 1
y = .53

[State 820, 2]
type = nothitby
trigger1 = 1
value = SCA
time = 1

[State 820, 2]
type = SelfState
trigger1 = time > 15
value = 51
anim = 44
ctrl = 1

;----------------------------------------------------------------------
;P2 Tech-Hit
[Statedef 200020]
type = A
movetype = H
physics = N
velset = -4,-10
facep2 = 1

[State 821, 1]
type = VelAdd
Trigger1 = 1
y = .53

[State 820, 1]
type = ChangeAnim
Trigger1 = Time = 0
value = 5040

[State 820, 2]
type = nothitby
trigger1 = time = 0
value = SCA
time = 17

[State 820, 2]
type = SelfState
trigger1 = time > 18
value = 50
ctrl = 1

; Partner Attack
; land>roundover
; ??>??????
;--------------------------
[statedef 190195]
type=s
movetype=i
physics=s
anim=47
sprpriority=-2
velset=0,0
ctrl=0
;---
[state 0]
   type=nothitby
   trigger1=1
   value=sca
   time=8
[state 0]
   type=screenbound
   trigger1=1
   value=0
[state 0]
   type=playerpush
   trigger1=1
   value=0
[state 0]
   type=posset
   trigger1=!time
   y=0
;---
[state 0]
   type=changestate
   trigger1=(animtime=0) && (roundstate=2) && (sysfvar(4)>0) && (sysfvar(0)>0) && playeridexist(floor(sysfvar(0)))
   trigger1=(playerid(floor(sysfvar(0))),var(0)=90900)
  value=2000
   anim=150
   ctrl=0

; ex-change
; ???
[state 0]
   type=changestate
   trigger1=animtime=0
   value=0
   ctrl=1



That will happen to you if you don't wear your seat belts, so make sure to wear your seat belts.
Re: Add004
#4  July 20, 2019, 05:53:54 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
;Replace 1000 with special move state you want to use,put this after Statedef -1 in cmd
;sys::-1::Partner-Assist-Registration
[state 0]
   type=varset
   trigger1=(stateno=190193)
   sysvar(1)=1000 ;;<-StateNo
Re: Add004
#5  July 20, 2019, 06:13:41 pm
  • **
  • BOOM!
  • I'm a magen dade who knows how to code somewhat
    • USA
Thank you, it was a big help
That will happen to you if you don't wear your seat belts, so make sure to wear your seat belts.