YesNoOk
avatar

How Do You Code A MVC3 X-Factor for A Character? (Read 4192 times)

Started by Ki$@1st456v, October 08, 2021, 03:37:09 PM
Share this topic:
How Do You Code A MVC3 X-Factor for A Character?
#1  October 08, 2021, 03:37:09 PM
  • avatar
  • **
    • USA
I was trying to code a MVC3 X-Factor with the red aura effect, is there a way to add that because I am not sure how?
Re: How Do You Code A MVC3 X-Factor for A Character?
#2  October 10, 2021, 04:05:38 PM
  • avatar
  • **
    • USA
To add more information, I used the xfactor code of kart's MVC3 Ryu which is below.

;X Factor
[Statedef 197]
type = A
movetype=I
physics = N
poweradd = 0
ctrl = 0
[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = 1
id = 3012
[State 0, StateTypeSet]
type = StateTypeSet
trigger1 = pos Y >= 0
statetype = S
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = time = 0
value = 41
elem = 6
persistent = 0
[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = time = 0
trigger1 = statetype  = S
value = 196
elem = 1
persistent = 0
[State 0, VelSet]
type = VelSet
trigger1 = time=0
x = ifelse(vel x !=0,vel x/2,0)
y =0
[State 0, VelMul]
type = VelMul
trigger1 = 1
x = .5
[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
[State assert, *]
type = AssertSpecial
trigger1 = 1
flag = NoWalk
[State 0, Pause]
type = Pause
trigger1 =time=0
time =30
movetime = 30
endcmdbuftime = 30
[State 0, CtrlSet]
type = CtrlSet
trigger1 = time>17
value = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 =time=0
value = S195,0

[State 0, VarSet]
type = VarSet
trigger1 =time=8
v =21    ;fv = 10
value = 1
[State 0, VarSet]
type = VarSet
trigger1 =time=8
fv =21    ;fv = 10
value = 1000
[State 0, PosFreeze]
type = PosFreeze
trigger1 = time <8
value = 1

[State 0, Aura]
type = Helper
trigger1 = time = 0
ID = 198
name = "X-Factor Aura"
stateno = 198
pos = 0,0
postype = p1
keyctrl = 0
ownpal = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 0, StateTypeSet]
type = StateTypeSet
trigger1 = time = 8
trigger1 = statetype != S
physics = A         ;A,C,S,N
[State cs, *]
type = ChangeState
trigger1 = statetype = S
trigger1 = animtime=0
value = 0
ctrl = 1

[State 0, Aura]
type = Helper
trigger1 = time = 0
ID = 198
name = "X-Factor Aura"
stateno = 198
pos = 0,0
postype = p1
keyctrl = 0
ownpal = 1
pausemovetime = 99999999
supermovetime = 99999999

Lilith does the animation showing that the move works when I do it in training mode. However, I tried to add Kamekaze's red aura effect code to it but it did not work.

;X-Factor Aura
[Statedef 198]
type = A
movetype = I
physics = N
velset = 0,0
anim = 13003
sprpriority = -3

[State 198, Bind]
type= BindToRoot
trigger1 = 1
pos = 0,0

[State 198, Turn]
type = Turn
trigger1 = facing != Root, facing

[State 198, Muteki]
type = NotHitBy
trigger1 = 1
value = SCA

[State 198, Var]
type = VarSet
trigger1 = Root, hitpausetime = 0
var(0) = Root, AnimElemNo(0)

[State 198, Anim]
type = ChangeAnim
trigger1 = SelfAnimExist (Root, Anim)
trigger1 = AnimExist (Root, Anim)
value = Root, Anim
elem = Root, AnimElemNo(0)

[State 198, Cena]
type = AssertSpecial
trigger1 = time <= 0
trigger2 = !SelfAnimExist (Root, Anim)
trigger3 = !AnimExist (Root, Anim)
flag = invisible

[State 198, Angle]
type = AngleDraw
trigger1 = 1
scale = 1+var(1)*.002,1+var(1)*.0015

[State 198, Trans]
type = Trans
trigger1 = 1
trans = addalpha
alpha = 256, 256

[State 198, Pal]
type = PalFX
trigger1 = 1
time = 1
add = 255,-220,-220
invertall = 0
color = 256

[State 198, Var]
type = VarAdd
trigger1 = 1
var(2) = 1

[State 198, Var]
type = VarAdd
trigger1 = var(2) <= 30
var(1) = 1

[State 198, Var]
type = VarAdd
trigger1 = var(2) > 30
var(1) = -1

[State 198, Var]
type = VarSet
trigger1 = var(2) > 60
var(2) = 0

[State 198, Done]
type = Destroyself
trigger1 = root, var(58) = 0

What must I do to get the aura to work?