Resulta que estuve probando con un code de rouge de Big Eli King para robar poderes de otros personajes
Pero como queria que robara el poder mediante un projectil, programe el codigo del disparo asi ;Card
[Statedef 10000]
type = A
movetype = A
anim = 36000
velset = 6,0
sprpriority = 3
[State 10000, AS]
type = AssertSpecial
trigger1 = 1
flag = noshadow
[State 10000, HitDef]
type = HitDef
trigger1 = AnimElem = 1
priority = 3
attr = S, HA
damage = 30
animtype = Low
guardflag = -1
sparkno = s37000
guard.sparkno = s90
sparkxy = 0,-9
hitsound = s5000,0
guardsound = s120,0
pausetime = 0
ground.type = Heavy
ground.slidetime = 1
ground.hittime = 1
ground.velocity = -4
air.velocity = -4,2
getpower = -10,-7
givepower = 40,15
fall = 1
[State 10000, CS]
type = ChangeState
trigger1 = Time = 35
value = 10001
ctrl = 1
[State 201, CS2]
type = ChangeState
trigger1 = HitCount = 1
value = 10002
ctrl = 1
;Card vuelve
[Statedef 10001]
type = A
movetype = A
anim = 38000
velset = -6,0
sprpriority = 3
[State 10001, AS]
type = AssertSpecial
trigger1 = 1
flag = noshadow
[State 10001, HitDef]
type = HitDef
trigger1 = AnimElem = 1
trigger2 = AnimElem = 4
priority = 3
attr = S, HA
damage = 35,3
animtype = Low
guardflag = -1
sparkno = s37000
guard.sparkno = s90
sparkxy = 0,-9
hitsound = s5000,0
guardsound = s120,0
pausetime = 0
ground.type = Heavy
ground.slidetime = 1
ground.hittime = 1
ground.velocity = -4
air.velocity = -4,2
getpower = -10,-7
givepower = 40,15
fall = 1
[State 10001, ProjUp]
type = velset
trigger1 = RootDist Y > 0
y = 0
[State 10001, ProjDown]
type = velset
trigger1 = RootDist Y < 0
y = -32
[State 10001, DS]
type = DestroySelf
trigger1 = RootDist X > 0
;Card vuelve sin dañar
[Statedef 10002]
type = A
movetype = A
anim = 38001
velset = -6,0
sprpriority = 3
[State 203, AS]
type = AssertSpecial
trigger1 = 1
flag = noshadow
[State 203, ProjUp]
type = velset
trigger1 = RootDist Y > 0
y = 0
[State 203, ProjDown]
type = velset
trigger1 = RootDist Y < 0
y = -32
[State -2, Power Steal] <---- Esta parte del codigo aparentemente es el iniciador
type = Helper
trigger1 = RootDist X > 0
stateno = 9992
ID = 9992
postype = p1
ownpal =1
[State 203, DS]
type = DestroySelf
trigger1 = RootDist X > 0
Pues, el codigo aparentemente funciona, pero cuando quiero realizar el movimiendo del char que ataqué. En este caso, Zero, el ataque no se activa, y no tengo idea que hacer.
Este es el code que puse para atacar con el poder de zero:
[Statedef 4030]
type = S
movetype = A
physics = S
juggle = 1
velset = 0,0
ctrl = 0
anim = 2008
poweradd = 0
sprpriority = 2
[State 200, 0]
type = HitDef
trigger1 = !MoveContact
trigger1 = !MoveReversed
attr = S, NA
damage = 60
animtype = Light
guardflag = MA
hitflag = MAF
priority = 4, Hit
pausetime = 3, 3
sparkno = s204
guard.sparkno = s215
sparkxy = -30, -30
hitsound = s9, 0
guardsound = s9, 1
ground.type = High
ground.slidetime = 12
ground.hittime = 15
ground.velocity = -1,0
airguard.velocity = -1,0
air.type = High
air.velocity = -1,0
air.hittime = 3
palfx.time = 1
palfx.add = 255,255,255
[State 200, 1]
type = PlaySnd
trigger1 = Time = 1
value = 0, 0
[State 200, 2]
type = VarSet
trigger1 = MoveHit
fvar(0) = Fvar(0)-(Fvar(0)*0.06)
ignorehitpause = 1
[State 200, 2]
type = VarSet
trigger1 = MoveHit
fvar(1) = 0.5
ignorehitpause = 1
[State 200, 3]
type = MoveHitReset
trigger1 = MoveContact
ignorehitpause = 1
[State 200, 4]
type = ChangeState
trigger1 = Animtime = 0
value = 203
ctrl = 1
Y el CMD lo puse al azar porque estaba probando todavia:
[State -1, Steal]
type = ChangeState
value = 29005
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = numhelper + numproj < 2
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 29005
trigger2 = time > 6
[State -1, Steal]
type = ChangeState
value = ifelse(Var(54) = 1 || Var(54) = 9,4003+(Var(54)*10),4006+(Var(54)*10))
triggerall = var(57) > 0 && random > ifelse(Var(54) = 17,500,900) && roundstate =2 && p2bodydist X < ifelse(Var(54)=17,20,ifelse(Var(54) = 3 || Var(54)=10,40,310))
triggerall = Var(54) !=0 && NumHelper(11000)=0 && NumHelper(11001)=0 && NumHelper(11002)=0 && NumHelper(11001)=0
trigger1 = (statetype != A && ((Var(54) =[5,8]) || (Var(54)=[10,11]) || (Var(54)=[13,18]) || Var(54) = 20))
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = (statetype != A && ((Var(54) =[5,8]) || (Var(54)=[10,11]) || (Var(54)=[13,18]) || Var(54) != 20))
trigger3 = Var(5) = 4 && Var(6) > 0
trigger3 = hitdefattr = SC, NA, SA, NP, SP
trigger3 = movecontact
trigger4 = statetype != C && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger4 = ctrl
trigger5 = stateno = [600,699]
trigger5 = movecontact && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger6 = movecontact && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger6 = Var(5) = 4 && Var(6) > 0
trigger6= hitdefattr = SCA, NA, SA, NP, SP
trigger6 = movecontact
[State -1, Steal]
type = ChangeState
value = 4000+(Var(54)*10)
triggerall = command = "start"
triggerall = Var(54) !=0 && NumHelper(11000)=0 && NumHelper(11001)=0 && NumHelper(11002)=0 && NumHelper(11001)=0
trigger1 = (statetype != A && ((Var(54) =[5,8]) || (Var(54)=[10,11]) || (Var(54)=[13,18]) || Var(54) = 20))
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = (statetype != A && ((Var(54) =[5,8]) || (Var(54)=[10,11]) || (Var(54)=[13,18]) || Var(54) = 20))
trigger3 = Var(5) = 4 && Var(6) > 0
trigger3 = hitdefattr = SC, NA, SA, NP, SP
trigger3 = movecontact
trigger4 = statetype != C && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger4 = ctrl
trigger5 = stateno = [600,699]
trigger5 = movecontact && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger6 = movecontact && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger6 = Var(5) = 4 && Var(6) > 0
trigger6= hitdefattr = SCA, NA, SA, NP, SP
trigger6 = movecontact
[State -1, Steal]
type = ChangeState
value = 4003+(Var(54)*10)
triggerall = command = "y"
triggerall = Var(54) !=0 && NumHelper(11000)=0 && NumHelper(11001)=0 && NumHelper(11002)=0 && NumHelper(11001)=0
trigger1 = (statetype != A && ((Var(54) =[5,8]) || (Var(54)=[10,11]) || (Var(54)=[13,18]) || Var(54) = 20))
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = (statetype != A && ((Var(54) =[5,8]) || (Var(54)=[10,11]) || (Var(54)=[13,18]) || Var(54) != 20))
trigger3 = Var(5) = 4 && Var(6) > 0
trigger3 = hitdefattr = SC, NA, SA, NP, SP
trigger3 = movecontact
trigger4 = statetype != C && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger4 = ctrl
trigger5 = stateno = [600,699]
trigger5 = movecontact && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger6 = movecontact && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger6 = Var(5) = 4 && Var(6) > 0
trigger6= hitdefattr = SCA, NA, SA, NP, SP
trigger6 = movecontact
;---------------------------------------------------------------------------
;Thou Shalt Steal 3
[State -1, Steal]
type = ChangeState
value = 4006+(Var(54)*10)
triggerall = command = "z"
triggerall = Var(54) !=0 && NumHelper(11000)=0 && NumHelper(11001)=0 && NumHelper(11002)=0 && NumHelper(11001)=0
trigger1 = (statetype != A && ((Var(54) =[5,8]) || (Var(54)=[10,11]) || (Var(54)=[13,18]) || Var(54) = 20))
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = movecontact
trigger3 = (statetype != A && ((Var(54) =[5,8]) || (Var(54)=[10,11]) || (Var(54)=[13,18]) || Var(54) != 20))
trigger3 = Var(5) = 4 && Var(6) > 0
trigger3 = hitdefattr = SC, NA, SA, NP, SP
trigger3 = movecontact
trigger4 = statetype != C && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger4 = ctrl
trigger5 = stateno = [600,699]
trigger5 = movecontact && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger6 = movecontact && (Var(54) !=[5,8]) && (Var(54)!=[10,11]) && (Var(54)!=[13,18]) && Var(54) != 20
trigger6 = Var(5) = 4 && Var(6) > 0
trigger6= hitdefattr = SCA, NA, SA, NP, SP
trigger6 = movecontact
Si alguien tiene ganas de ayudarme, avisenme por favor