Skip to content

Commit

Permalink
オープニング攻撃 実装
Browse files Browse the repository at this point in the history
  • Loading branch information
EllaCoat committed Aug 28, 2024
1 parent 74322bd commit da5bbb9
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@
# @within function asset:mob/0392.ecual_first/ai/animation/

# 対象プレイヤー保存
# execute if score @s AW.AnimationTick matches 1 run scoreboard players operation @s AW.UUID = @p[tag=!PlayerShouldInvulnerable,distance=..100] UserID
execute if score @s AW.AnimationTick matches 211 run scoreboard players operation @s AW.UUID = @p[tag=!PlayerShouldInvulnerable,distance=..100] UserID

# 近くのプレイヤーの方を向く
# 一部の時間のみ向く処理を入れる
# tag @s add AW.Temp.This
# scoreboard players operation $AW.Temp AW.UUID = @s AW.UUID
# execute if score @s AW.AnimationTick matches 153..159 if predicate api:global_vars/difficulty/max/normal as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0391.axia_first/ai/general/2.rotate
# execute if score @s AW.AnimationTick matches 153..159 if predicate api:global_vars/difficulty/min/hard as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0391.axia_first/ai/animation/7_0_zangekihou/rotate
# execute if score @s AW.AnimationTick matches 178..185 if predicate api:global_vars/difficulty/max/normal as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0391.axia_first/ai/general/2.rotate
# execute if score @s AW.AnimationTick matches 178..185 if predicate api:global_vars/difficulty/min/hard as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0391.axia_first/ai/animation/7_0_zangekihou/rotate
# execute if score @s AW.AnimationTick matches 230..243 as @p[tag=!PlayerShouldInvulnerable,distance=..100] run function asset:mob/0391.axia_first/ai/general/2.rotate
# execute if score @s AW.AnimationTick matches 244..253 if predicate api:global_vars/difficulty/min/hard if entity @p[distance=..100] run function asset:mob/0391.axia_first/ai/animation/3_0_triple_slash/predict/
# scoreboard players reset $AW.Temp AW.UUID
# tag @s remove AW.Temp.This
tag @s add AW.Temp.This
scoreboard players operation $AW.Temp AW.UUID = @s AW.UUID
execute if score @s AW.AnimationTick matches 211..261 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/general/2.rotate
execute if score @s AW.AnimationTick matches 268..281 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/general/2.rotate
execute if score @s AW.AnimationTick matches 284..301 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/general/2.rotate
execute if score @s AW.AnimationTick matches 308.. as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/general/2.rotate
scoreboard players reset $AW.Temp AW.UUID
tag @s remove AW.Temp.This

# アニメーション再生
execute if score @s AW.AnimationTick matches 1 as @e[type=item_display,tag=AW.Root.This,distance=..100] run function animated_java:ecual/animations/12_0_opening_attack/play
Expand All @@ -34,3 +32,23 @@

# クリティカル登場
execute if score @s AW.AnimationTick matches 1 run function asset:mob/0392.ecual_first/ai/projectile/critical/0.summon

# 両手からハイドロ召喚
execute if score @s AW.AnimationTick matches 97 run function asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/summon/1

# プレイヤー追従ハイドロ
execute if score @s AW.AnimationTick matches 122 at @e[type=marker,tag=AW.Marker.SummonPoint,distance=..100] run function asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/summon/2
execute if score @s AW.AnimationTick matches 147 at @e[type=marker,tag=AW.Marker.SummonPoint,distance=..100] run function asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/summon/2
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 157 at @e[type=marker,tag=AW.Marker.SummonPoint,distance=..100] run function asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/summon/2
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 167 at @e[type=marker,tag=AW.Marker.SummonPoint,distance=..100] run function asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/summon/2

# クワイタスレイン
execute if score @s AW.AnimationTick matches 151 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/0.summon

# 予告線表示
execute if score @s AW.AnimationTick matches 237 run function asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/announce_line

# レーザー発射
execute if score @s AW.AnimationTick matches 267 positioned ^ ^1.25 ^ run function asset:mob/0392.ecual_first/ai/projectile/shining_ray/1.start
execute if score @s AW.AnimationTick matches 287 positioned ^ ^1.25 ^ run function asset:mob/0392.ecual_first/ai/projectile/shining_ray/1.start
execute if score @s AW.AnimationTick matches 307 positioned ^ ^1.25 ^ run function asset:mob/0392.ecual_first/ai/projectile/shining_ray/1.start
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#
# 両手からハイドロ
#
# @within function asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/
# @within function
# asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/
# asset:mob/0392.ecual_first/ai/animation/100_0_opening/

execute rotated ~90 0 positioned ^ ^1.5 ^1.5 run function asset:mob/0392.ecual_first/ai/projectile/hydro/0.summon
execute rotated ~-90 0 positioned ^ ^1.5 ^1.5 run function asset:mob/0392.ecual_first/ai/projectile/hydro/0.summon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#
# プレイヤー 追従型
#
# @within function asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/
# @within function
# asset:mob/0392.ecual_first/ai/animation/10_0_hydro_storm/
# asset:mob/0392.ecual_first/ai/animation/100_0_opening/

# マーカーを呼ぶ
tp 0-0-0-0-0 ^ ^ ^ ~ 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
tag @s add AW.Temp.This
scoreboard players operation $AW.Temp AW.UUID = @s AW.UUID
execute if predicate api:global_vars/difficulty/max/normal as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/general/2.rotate
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 1..78 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/rotate
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 83..98 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/rotate
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 103..118 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/rotate
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 1..77 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/rotate
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 83..97 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/rotate
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 103..117 as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/rotate
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 123.. as @a if score @s UserID = $AW.Temp AW.UUID run function asset:mob/0392.ecual_first/ai/general/2.rotate
scoreboard players reset $AW.Temp AW.UUID
tag @s remove AW.Temp.This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#
# 予告線表示
#
# @within function asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/
# @within function
# asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/
# asset:mob/0392.ecual_first/ai/animation/100_0_opening/

execute anchored eyes run summon item_display ^ ^ ^2 {interpolation_duration:0,teleport_duration:0,Tags:["AW.AnnounceInit"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0.383f,0.924f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,20f],scale:[0f,0f,40f]},item:{id:"minecraft:white_stained_glass",Count:1b}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# @within function
# asset:mob/0392.ecual_first/ai/animation/5_0_shining_ray/
# asset:mob/0392.ecual_first/ai/animation/5_1_water_bullet/
# asset:mob/0392.ecual_first/ai/animation/100_0_opening/

# タグ付与
tag @s add AW.Temp.Target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
kill @e[tag=AW.WaterBullet]
kill @e[tag=AW.QuietusRain]
kill @e[tag=AW.WaterWall]
kill @e[tag=AW.Critical]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# スコア初期化
scoreboard players set @s AW.AnimationTick 0
scoreboard players set @s AW.AnimationNum 80
scoreboard players set @s AW.AnimationNum 1000
scoreboard players set @s AW.FalterCount 0

# animated javaモデル召喚
Expand Down

0 comments on commit da5bbb9

Please sign in to comment.