Skip to content

Commit

Permalink
居合い切り移動アニメーション実装
Browse files Browse the repository at this point in the history
  • Loading branch information
EllaCoat committed Aug 9, 2024
1 parent 6b45016 commit ecb9f98
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@

# 移動
# TP
execute if score @s AV.AnimationTick matches 31..41 at @s positioned ^ ^ ^1 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 42 at @s positioned ^ ^ ^0.75 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 43 at @s positioned ^ ^ ^0.5 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 44 at @s positioned ^ ^ ^0.25 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 45 at @s positioned ^ ^ ^0.1 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 31..41 at @s unless entity @a[distance=..2] positioned ^ ^ ^2 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 42 at @s unless entity @a[distance=..2] positioned ^ ^ ^1 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 43 at @s unless entity @a[distance=..2] positioned ^ ^ ^0.5 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 44 at @s unless entity @a[distance=..2] positioned ^ ^ ^0.25 run function asset:mob/0391.axia_first/ai/general/1.teleport
execute if score @s AV.AnimationTick matches 45 at @s unless entity @a[distance=..2] positioned ^ ^ ^0.1 run function asset:mob/0391.axia_first/ai/general/1.teleport

# ダメージ
execute if score @s AV.AnimationTick matches 48 run function asset:mob/0391.axia_first/ai/animation/6_2_moving_iai/damage
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#> asset:mob/0391.axia_first/ai/animation/6_2_moving_iai/damage
#
# ダメージ処理
#
# @within function asset:mob/0391.axia_first/ai/animation/6_2_moving_iai/

# ダメージ
# 引数の設定
# 与えるダメージ
data modify storage lib: Argument.Damage set value 45.0f
# 第一属性
data modify storage lib: Argument.AttackType set value "Physical"
# 第二属性
data modify storage lib: Argument.ElementType set value "Fire"
# デスログ
data modify storage lib: Argument.DeathMessage append value '[{"translate": "%1$sは%2$sによって無惨に切り裂かれた","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}]'
# 補正functionを実行
function lib:damage/modifier
# ダメージを与える
execute positioned ^ ^ ^2 as @a[tag=!PlayerShouldInvulnerable,distance=..3] at @s run function lib:damage/
# リセット
function lib:damage/reset

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
tag @s add AV.Temp.Target
# 滑らかに回転
execute as @e[type=wither_skeleton,tag=AV.Temp.This,distance=..64,sort=nearest,limit=1] at @s rotated ~ 0 positioned ^ ^ ^-2 facing entity @e[tag=AV.Temp.Target,distance=..66,limit=1] feet rotated ~ 0 positioned ^ ^ ^-1 facing entity @s feet positioned as @s run tp @s ^ ^ ^ ~ 0
execute as @e[type=wither_skeleton,tag=AV.Temp.This,distance=..64,sort=nearest,limit=1] at @s rotated ~ 0 positioned ^ ^ ^1 facing entity @e[tag=AV.Temp.Target,distance=..66,limit=1] feet rotated ~ 0 positioned ^ ^ ^1 if entity @e[type=wither_skeleton,tag=AV.Temp.This,distance=..0.1,sort=nearest,limit=1] at @s positioned ^ ^ ^1000 facing entity @e[tag=AV.Temp.Target,limit=1] feet positioned ^ ^ ^1000 facing entity @s feet positioned as @s positioned ^ ^ ^0.1 rotated as @s positioned ^ ^ ^-1 facing entity @s feet positioned as @s run tp @s ^ ^ ^ ~ ~
execute as @e[type=wither_skeleton,tag=AV.Temp.This,distance=..64,sort=nearest,limit=1] at @s rotated ~ 0 positioned ^ ^ ^1 facing entity @e[tag=AV.Temp.Target,distance=..66,limit=1] feet rotated ~ 0 positioned ^ ^ ^1 if entity @e[type=wither_skeleton,tag=AV.Temp.This,distance=..0.1,sort=nearest,limit=1] at @s run tp @s ^ ^ ^ ~1 ~
# 終了
tag @s remove AV.Temp.Target
tag @e[type=wither_skeleton,tag=AV.Temp.This,distance=..64] remove AV.Temp.This

0 comments on commit ecb9f98

Please sign in to comment.