Tales of - Guardian

Tales of - Guardian Tutorial


First, you'll need the commands. The one below is the one I use for my Tales characters. Also, you need to have Guard and Guardian use the same command. Which right now is "hold_x". If you want to change it to something else, go ahead.

[State -1, Guard]
type = ChangeState
value = 120
trigger1 = command = "hold_x"
trigger1 = command != "fwd" && command != "back"
trigger1 = command != "up" && command != "down"
trigger1 = ctrl

[State -1, Guardian]
type = ChangeState
value = 160
trigger1 = command = "hold_x" && command = "down"
trigger1 = ctrl && statetype != A
trigger1 = power >= 500

Now, just throw these states below straight into your cns file with the walking, jumping, guarding states. Or wherever you want it.
The animation for 160 is the [State 160, 1] coding below. That is the animation for your character while using Guardian.
The animation can be as many ticks as you want, but if you want it to match with the effects, it must be 60 ticks long.


;---------------------------------------------------------------------------
;Guard Arcana
[Statedef 160]
type = S
movetype = I
physics = S
ctrl = 0

[State 160, 1]
type = ChangeAnim
triggerall = PrevStateNo != 161
trigger1 = Time = 0
value = 160

[State 160, 2]
type = PowerAdd
triggerall = PrevStateNo != 161
trigger1 = Time = 0
value = -500

[State 160, 3]
type = HitOverRide
trigger1 = NumHelper(162) != 0
attr = SCA, AA, AP, AT
time = 1
stateno = 161

[State 160, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 120
ctrl = 1
;---------------------------------------------------------------------------
;Guard Arcana HIT
[Statedef 161]
type = S
movetype = H
physics = S
ctrl = 0
;poweradd= 60

[State 161, 1]
type = ChangeState
trigger1 = Time = 0
value = 160

And that's it. Just press and hold x and then press down.
Of course, this is without the effects. If you want the effects, you can get them here. And the coding for it is right below.

First, add this helper in the [Statedef 160] above.


[State 160, Effects]
type = Helper
triggerall = PrevStateNo != 161
trigger1 = Time = 1
name = "GuardianFX"
stateno = 162
ID = 162
ownpal = 1
keyctrl = 0

Next, add the coding for the effects.

;---------------------------------------------------------------------------
;Guard Arcana Shield
[Statedef 162]
type    = S
movetype= I
physics = N
juggle  = 1
poweradd= 0
ctrl = 0
velset = 0,0
anim = 161
sprpriority = 8

[State 162, 1]
type = AssertSpecial
trigger1 = 1
flag = NoShadow
ignorehitpause = 1
supermovetime = 9999
pausemovetime = 9999

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

[State 162, 3]
type = Trans
trigger1 = 1
trans = Add

[State 162, 4]
type = AngleDraw
trigger1 = 1
scale = 1-(sin(gametime*10))/20.0,1-(sin(gametime*10))/20.0

[State 162, 5]
type = PalFx
trigger1 = Time < 10
time = 1
add = -240+(Time)*24,-240+(Time)*24,-240+(Time)*24

[State 162, 6]
type = PalFx
trigger1 = Time > 20
time = 1
add = -(Time-20)*10,-(Time-20)*10,-(Time-20)*10

[State 162, 7]
type = Explod
triggerall = PrevStateNo != 161
trigger1 = Time = 1
anim = 162
ID = 162
bindtime = -1
sprpriority = -2

[State 162, 8]
type = ModifyExplod
trigger1 = 1
ID = 162
scale = .3-(cos(gametime*10))/20.0,.3-(cos(gametime*10))/20.0

[State 162, 9]
type = DestroySelf
trigger1 = Time = 40

Now for the animations of the effects. Put the green ball under stateno 161 with 2 images. The first one being 1 tick long. The second image being 40 ticks long. With A for the trans.
Here's some images.




Put the green ring under stateno = 162 with just a single image. The image being 40 ticks long with A for trans.
Here's an image.



And that's it. You should be able to use Guardian now. Next time I'll put up a tutorial for Demon Fang, Counter, & Overlimit.

*Credit to Alfred for effects and coding

Tuesday
27/June/2017
15:42
Search
Site friends