Hola vans! he estado intentando últimamente aplicar esto..... y lo único que he logrado es hacerme bolas y que los personajes no hagan nada de lo que espero. concretamente, lo que sucede es que el escudo no refleja el proyectil, este se sigue de largo y ni siquiera golpea al char.VIDEO Posted: July 20, 2021, 12:36:42 am Asi quedo el codigo.;--------------------------------------------------------------------------- ;(HELPER)闇払い・ヘルパー [Statedef 1020] type = A movetype = A physics = N ctrl = 0 anim = 1020 sprpriority = 5 ;este va en el proyectil, como helper ;=======================================; ;PROJECTILE REFLECTION COMPATIBILITY ; ;????????????? ; ;by Vans ; ;GUIDE: ; ;FOR PROJECTILE / ????? ; ;sysvar(0) = 131072 ; ;sysvar(1) = REFLECTED_BEHAVIOR_STATE ; ;=======================================; [State 1005, COMPATIBILITY] type = VarSet trigger1 = !time sysvar(0) = 131072 [State 1005, REFLECTED STATE] type = VarSet trigger1 = !time sysvar(1) = 1021 ;=======================================; ;ガード不能連携 [State 1000, ] type = VarSet trigger1 = root,stateno = 1450 trigger2 = root,stateno = 4000 trigger3 = root,stateno = 7000 trigger4 = root,stateno = 7100 trigger5 = root,stateno = 9100 var(2) = 1 [State 1000, 無敵] type = NotHitBy trigger1 = 1 value = SCA [State 1000, 特殊効果] type = AssertSpecial trigger1 = 1 flag = NoShadow ;影を消す [State 1000, AirGuard] type = AssertSpecial trigger1 = root,var(20) >= 1 trigger1 = p2statetype = A trigger2 = var(2) = 1 flag = unguardable [State 1000, AttackDist] type = AttackDist trigger1 = var(2) = 0 value = 90 [State 1000, AttackDist] type = AttackDist trigger1 = var(2) = 1 value = 0 [state 1000, VelSet] type = VelSet trigger1 = time = 0 trigger1 = root,var(15) = 0 x = 4 [state 1000, VelSet] type = VelSet trigger1 = time = 0 trigger1 = root,var(15) = 1 x = 8 [State 1000, ヒット定義] type = HitDef triggerall = root,var(12) = 0 triggerall = root,var(16) != 1 trigger1 = 1 attr = A, SP damage = floor(90*root,fvar(5)),10 getpower = 135,135 givepower = 10,10 animtype = Hard guardflag = MA hitflag = MAF priority = 4, Hit pausetime = 2,10+root,var(0) Sparkno = 2;+(root,var(11)*10000) guard.Sparkno = 42;+(root,var(11)*10000) sparkxy = 20,-45 hitsound = s1,1+ifelse((root,var(9)),90,(root,var(11))*10) guardsound = s2,1+ifelse((root,var(9)),90,(root,var(11))*10) ground.type = Low ground.hittime = 17 ground.slidetime = 17 ground.velocity = -9 air.velocity = -3.6,-3.8 yaccel = .35 air.fall = 1 fall.recover = 0 fall.recovertime = 94190; fuego rojo palfx.time = 25 palfx.add = 30,-40,-140 palfx.sinadd = 60,60,50,10 palfx.color = 0 palfx.invertall = 1 [State 1000, ヒット定義] type = HitDef triggerall = root,var(12) = 0 triggerall = root,var(16) = 1 trigger1 = 1 attr = A, SP damage = floor(90*root,fvar(5)),10 getpower = 135,135 givepower = 10,10 animtype = Hard guardflag = MA hitflag = MAFD priority = 4, Hit pausetime = 2,10+root,var(0) Sparkno = 2;+(root,var(11)*10000) guard.Sparkno = 42;+(root,var(11)*10000) sparkxy = 20,-45 hitsound = s1,1+ifelse((root,var(9)),90,(root,var(11))*10) guardsound = s2,1+ifelse((root,var(9)),90,(root,var(11))*10) ground.type = Low ground.hittime = 17 ground.slidetime = 17 ground.velocity = -9 air.velocity = -3.6,-3.8 yaccel = .35 air.fall = 1 fall.recover = 0 fall.recovertime = 94190; fuego rojo palfx.time = 25 palfx.add = 30,-40,-140 palfx.sinadd = 60,60,50,10 palfx.color = 0 palfx.invertall = 1 [State 1000, Projectile] type = Projectile trigger1 = time = 0 projID = 1000 projanim = 1021 projremove = 1 projpriority = 1 projhitanim = -1 projremanim = -1 projsprpriority = 0 projshadow = 0,0,0 projremovetime = -1 offset = 0,0 velocity = vel X, vel Y ;ヒット数測定 [State 1000, ] type = ParentVaradd trigger1 = movehit = 1 fvar(1) = 1 [State 1000, ガードクラッシュ値削り] type = parentvaradd trigger1 = moveguarded = 1 fvar(10) = 13 ignorehitpause = 1 persistent = 0 [State 1000, スタン値削り] type = parentvaradd trigger1 = movehit = 1 fvar(12) = floor(20*root,fvar(14)) ignorehitpause = 1 persistent = 0 [State 1000, ガードクラッシュ値回復不能時間] type = ParentVarSet triggerall = root,fvar(11) != 180 triggerall = roundstate = 2 trigger1 = moveguarded = 1 fvar(11) = 180 [State 1000, スタン値回復不能時間] type = ParentVarSet triggerall = root,fvar(13) != 120 triggerall = roundstate = 2 trigger1 = movecontact = 1 fvar(13) = 120 ;ジャグル設定 [State 1000, Juggle] type = ParentVarSet trigger1 = p2statetype = A trigger1 = movehit var(12) = 2 ;投げ制限 [State 1000, Throw Limitter] type = ParentVarSet trigger1 = movehit= 1 var(17) = 1 ;スロー処理 [State 1000, ヘルパーを出す] type = Helper trigger1 = Movehit = 1 name = "Slow" stateno = 4900 ID = 4900 helpertype = normal pos = 0,0 postype = p1 keyctrl = 0 ownpal = 1 ignorehitpause = 1 persistent = 0 ;燃え小エフェクト [State 1000, ヘルパーを出す] type = Helper trigger1 = movehit = 1 name = "hit" stateno = 4910 ID = 4910 helpertype = normal pos = 0,0 postype = p2 keyctrl = 0 ownpal = 1 ignorehitpause = 1 persistent = 0 [State 1000, このヘルパーを消す] type = DestroySelf trigger1 = time >= 300 trigger2 = frontedgedist <= -80 [State 1000, ステート変更] type = changestate trigger1 = movecontact trigger2 = root,numprojID(1000) = 0 value = 1025 ;--------------------------------------------------------------------------- ;(HELPER)闇払い・ヘルパー [Statedef 1021] type = A movetype = A physics = N ctrl = 0 anim = 1020 sprpriority = 5 ;se copia el proyectil a el estado 1007, se a?ade lo siguiente ;=======================================; ;PROJECTILE REFLECTION COMPATIBILITY ; ;????????????? ; ;by Vans ; ;GUIDE: ; ;FOR PROJECTILE / ????? ; ;sysvar(0) = 131072 ; ;sysvar(1) = REFLECTED_BEHAVIOR_STATE ; ;=======================================; [State 1005, COMPATIBILITY] type = VarSet trigger1 = !time sysvar(0) = 131072 [State 1005, REFLECTED STATE] type = VarSet trigger1 = !time sysvar(1) = 1005 ;ガード不能連携 [State 1000, ] type = VarSet trigger1 = root,stateno = 1450 trigger2 = root,stateno = 4000 trigger3 = root,stateno = 7000 trigger4 = root,stateno = 7100 trigger5 = root,stateno = 9100 var(2) = 1 [State 1000, 無敵] type = NotHitBy trigger1 = 1 value = SCA [State 1000, 特殊効果] type = AssertSpecial trigger1 = 1 flag = NoShadow ;影を消す [State 1000, AirGuard] type = AssertSpecial trigger1 = root,var(20) >= 1 trigger1 = p2statetype = A trigger2 = var(2) = 1 flag = unguardable [State 1000, AttackDist] type = AttackDist trigger1 = var(2) = 0 value = 90 [State 1000, AttackDist] type = AttackDist trigger1 = var(2) = 1 value = 0 [state 1000, VelSet] type = VelSet trigger1 = time = 0 trigger1 = root,var(15) = 0 x = 4 [state 1000, VelSet] type = VelSet trigger1 = time = 0 trigger1 = root,var(15) = 1 x = 8 [State 1000, ヒット定義] type = HitDef triggerall = root,var(12) = 0 triggerall = root,var(16) != 1 trigger1 = 1 attr = A, SP damage = floor(90*root,fvar(5)),10 getpower = 135,135 givepower = 10,10 animtype = Hard guardflag = MA hitflag = MAF priority = 4, Hit pausetime = 2,10+root,var(0) Sparkno = 2;+(root,var(11)*10000) guard.Sparkno = 42;+(root,var(11)*10000) sparkxy = 20,-45 hitsound = s1,1+ifelse((root,var(9)),90,(root,var(11))*10) guardsound = s2,1+ifelse((root,var(9)),90,(root,var(11))*10) ground.type = Low ground.hittime = 17 ground.slidetime = 17 ground.velocity = -9 air.velocity = -3.6,-3.8 yaccel = .35 air.fall = 1 fall.recover = 0 fall.recovertime = 94190; fuego rojo palfx.time = 25 palfx.add = 30,-40,-140 palfx.sinadd = 60,60,50,10 palfx.color = 0 palfx.invertall = 1 ;al hitdef ;=======================================; ;PROJECTILE REFLECTION COMPATIBILITY ; ;????????????? ; ;by Vans ; ;GUIDE: ; ;FOR PROJECTILE / ????? ; ;sysvar(0) = 131072 ; ;sysvar(1) = REFLECTED_BEHAVIOR_STATE ; ;=======================================; id = sysvar(0) affectteam = F ;al final, antes del changestate [State 1000, ヒット定義] type = HitDef triggerall = root,var(12) = 0 triggerall = root,var(16) = 1 trigger1 = 1 attr = A, SP damage = floor(90*root,fvar(5)),10 getpower = 135,135 givepower = 10,10 animtype = Hard guardflag = MA hitflag = MAFD priority = 4, Hit pausetime = 2,10+root,var(0) Sparkno = 2;+(root,var(11)*10000) guard.Sparkno = 42;+(root,var(11)*10000) sparkxy = 20,-45 hitsound = s1,1+ifelse((root,var(9)),90,(root,var(11))*10) guardsound = s2,1+ifelse((root,var(9)),90,(root,var(11))*10) ground.type = Low ground.hittime = 17 ground.slidetime = 17 ground.velocity = -9 air.velocity = -3.6,-3.8 yaccel = .35 air.fall = 1 fall.recover = 0 fall.recovertime = 94190; fuego rojo palfx.time = 25 palfx.add = 30,-40,-140 palfx.sinadd = 60,60,50,10 palfx.color = 0 palfx.invertall = 1 ;al hitdef ;=======================================; ;PROJECTILE REFLECTION COMPATIBILITY ; ;????????????? ; ;by Vans ; ;GUIDE: ; ;FOR PROJECTILE / ????? ; ;sysvar(0) = 131072 ; ;sysvar(1) = REFLECTED_BEHAVIOR_STATE ; ;=======================================; id = sysvar(0) affectteam = F ;al final, antes del changestate [State 1000, Projectile] type = Projectile trigger1 = time = 0 projID = 1000 projanim = 1021 projremove = 1 projpriority = 1 projhitanim = -1 projremanim = -1 projsprpriority = 0 projshadow = 0,0,0 projremovetime = -1 offset = 0,0 velocity = vel X, vel Y ;ヒット数測定 [State 1000, ] type = ParentVaradd trigger1 = movehit = 1 fvar(1) = 1 [State 1000, ガードクラッシュ値削り] type = parentvaradd trigger1 = moveguarded = 1 fvar(10) = 13 ignorehitpause = 1 persistent = 0 [State 1000, スタン値削り] type = parentvaradd trigger1 = movehit = 1 fvar(12) = floor(20*root,fvar(14)) ignorehitpause = 1 persistent = 0 [State 1000, ガードクラッシュ値回復不能時間] type = ParentVarSet triggerall = root,fvar(11) != 180 triggerall = roundstate = 2 trigger1 = moveguarded = 1 fvar(11) = 180 [State 1000, スタン値回復不能時間] type = ParentVarSet triggerall = root,fvar(13) != 120 triggerall = roundstate = 2 trigger1 = movecontact = 1 fvar(13) = 120 ;ジャグル設定 [State 1000, Juggle] type = ParentVarSet trigger1 = p2statetype = A trigger1 = movehit var(12) = 2 ;投げ制限 [State 1000, Throw Limitter] type = ParentVarSet trigger1 = movehit= 1 var(17) = 1 ;スロー処理 [State 1000, ヘルパーを出す] type = Helper trigger1 = Movehit = 1 name = "Slow" stateno = 4900 ID = 4900 helpertype = normal pos = 0,0 postype = p1 keyctrl = 0 ownpal = 1 ignorehitpause = 1 persistent = 0 ;燃え小エフェクト [State 1000, ヘルパーを出す] type = Helper trigger1 = movehit = 1 name = "hit" stateno = 4910 ID = 4910 helpertype = normal pos = 0,0 postype = p2 keyctrl = 0 ownpal = 1 ignorehitpause = 1 persistent = 0 ;=======================================; ;PROJECTILE REFLECTION COMPATIBILITY ; ;飛び道具を跳ね返し行動設定 ; ;by Vans ; ;GUIDE: ; ;FOR PROJECTILE / 飛び道具で ; ;sysvar(0) = 131072 ; ;sysvar(1) = REFLECTED_BEHAVIOR_STATE ; ;FOR REFLECTOR / 飛び道具を跳ね返するHELPERで; ;sysvar(0) = 262144 ; ;=======================================; [State 1007, Turn] type = Turn trigger1 = movecontact trigger1 = root,NumProjID(262144) persistent = 0 ignorehitpause = 1 [State 1206, ChangeState] type = ChangeState trigger1 = movecontact trigger1 = root,NumProjID(262144) value = sysvar(1) ctrl = 0 ignorehitpause = 1 ;=======================================; [State 1000, このヘルパーを消す] type = DestroySelf trigger1 = time >= 300 trigger2 = frontedgedist <= -80 [State 1000, ステート変更] type = changestate trigger1 = movecontact trigger2 = root,numprojID(1000) = 0 value = 1025