[Artifact 0101] グリモワールの作成#2057
Conversation
Lapis-LJA
left a comment
There was a problem hiding this comment.
全体的にセレクターにtype=が足りてないので追加してほしい
| # @within function asset:artifact/0101.grimoire/trigger/3.main | ||
| # @within function asset:artifact/0101.grimoire/trigger/balletfire |
There was a problem hiding this comment.
こう書いた方がスマートかな~
他の属性もそうしてね
| # @within function asset:artifact/0101.grimoire/trigger/3.main | |
| # @within function asset:artifact/0101.grimoire/trigger/balletfire | |
| # @within function | |
| # asset:artifact/0101.grimoire/trigger/3.main | |
| # asset:artifact/0101.grimoire/trigger/balletfire |
There was a problem hiding this comment.
各ballet○○ってやつ、ディレクトリを変えて、ballet/の中にfire, water. thunderを入れる感じにしたほうが良いかも~~
このままだと命名規則にも沿ってないし、やってることは同じだからフォルダにまとめた方がよさげに見える
There was a problem hiding this comment.
命名規則がまだ理解しきれてないけど、修正しました
balletに弾道と着弾まとめる感じでいいのかな...?
| particle minecraft:dust 1 0 0 1 | ||
| execute unless block ~ ~ ~ #lib:no_collision/ run return run function asset:artifact/0101.grimoire/trigger/fire | ||
| execute unless entity @s[distance=..10] run return run function asset:artifact/0101.grimoire/trigger/fire | ||
| execute at @e[tag=Enemy,distance=..2,sort=nearest,limit=1] run return run function asset:artifact/0101.grimoire/trigger/fire | ||
| execute positioned ^ ^ ^0.5 run function asset:artifact/0101.grimoire/trigger/balletfire |
There was a problem hiding this comment.
意図は伝わるけど...もうちょいコメントは書いたほうが良いかも(
| particle minecraft:dust 1 0 0 1 | ||
| execute unless block ~ ~ ~ #lib:no_collision/ run return run function asset:artifact/0101.grimoire/trigger/fire | ||
| execute unless entity @s[distance=..10] run return run function asset:artifact/0101.grimoire/trigger/fire | ||
| execute at @e[tag=Enemy,distance=..2,sort=nearest,limit=1] run return run function asset:artifact/0101.grimoire/trigger/fire |
There was a problem hiding this comment.
at @.eじゃなくて、positioned ~-0.5 ~-0.5 ~-0.5 at @.e[dx=0]ってしたほうが良い
その方が判定が正確になる
それと、セレクターにはtypeを使ってほしい、今回の場合は#lib:living_without_playerかな
| # 着弾処理 | ||
| # | ||
| # @within function asset:artifact/0101.grimoire/trigger/balletfire | ||
| #1840 |
There was a problem hiding this comment.
演出のミスタイプですかね
修正しました
| data modify storage api: Argument.ElementType set value "Water" | ||
| # 補正functionを実行 | ||
| function api:damage/modifier | ||
| # 範囲5m以内の敵を対象に |
There was a problem hiding this comment.
コメントが嘘すぎるので、もういっそDamageAPIのコメントは「ダメージ」だけでもいいんじゃないかな
…B/Asset into dev/ogachu_artifact101
Lapis-LJA
left a comment
There was a problem hiding this comment.
balletフォルダの位置は、trigger/ballet/fire_hit って位置の方がいいかもね、前のレビューで伝わってなかったのなら申し訳ない
| execute store result storage asset:temp type int 1 run random value 0..2 | ||
| execute if data storage asset:temp {type:0} at @s anchored eyes run function asset:artifact/0101.grimoire/ballet/fire | ||
| execute if data storage asset:temp {type:1} at @s anchored eyes run function asset:artifact/0101.grimoire/ballet/water | ||
| execute if data storage asset:temp {type:2} at @s anchored eyes run function asset:artifact/0101.grimoire/ballet/thunder |
There was a problem hiding this comment.
ここのat @.s要らないかも~
あと、anchored eyes positioned ^ ^ ^にした方がいいかも?(そっちで正常に動作してるならそのままでも可)
| # 音 | ||
| playsound item.book.page_turn player @s ~ ~ ~ |
There was a problem hiding this comment.
@.sなのがちょっと気になった
ダメというわけではなくて、マルチの際に周りに使用音が聞こえてもいいかも?くらい
| # 敵に当たってももちろん起爆 | ||
| execute positioned ~-0.5 ~-0.5 ~-0.5 at @e[type=#lib:living_without_player,dx=0] run return run function asset:artifact/0101.grimoire/ballet/fire_hit |
There was a problem hiding this comment.
コレ、敵に当たったら~となってるけど、プレイヤー以外の生物に当たったら起爆するので、以下を推奨(他の属性も変えてね
それと、**_hitを呼び出す際にpositionedでズレたままになるから、もう一度positionedして戻してやるべきかな
| # 敵に当たってももちろん起爆 | |
| execute positioned ~-0.5 ~-0.5 ~-0.5 at @e[type=#lib:living_without_player,dx=0] run return run function asset:artifact/0101.grimoire/ballet/fire_hit | |
| # 敵に当たってももちろん起爆 | |
| execute positioned ~-0.5 ~-0.5 ~-0.5 at @e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable,dx=0] positioned ~0.5 ~0.5 ~0,5 run return run function asset:artifact/0101.grimoire/ballet/fire_hit |
| # 補正functionを実行 | ||
| function api:damage/modifier | ||
| # 範囲ダメージ | ||
| execute as @e[type=#lib:living_without_player,distance=..2] run function api:damage/ |
There was a problem hiding this comment.
ここもpositionedとdx=0を適用してやるべきかも~~~~
There was a problem hiding this comment.
ここは敵が密集してる時にまとめて当たるようにしたくて範囲にしたんですけど変えたほうがいいですかね..?
There was a problem hiding this comment.
どれくらいの攻撃範囲にしたい?それによって変わるね
There was a problem hiding this comment.
ざっくり炸裂時のパーティクルと同じくらいの範囲ですかね
スプレッドシートでだれも手を付けず、放置されてるっぽかったので、勝手に作っちゃいました