Skip to content

[Artifact1572] アフターグロウの作成 - #2078

Open
ogachu0331 wants to merge 14 commits into
masterfrom
dev/ogachu_artifact1572
Open

ogachu0331 wants to merge 14 commits into
masterfrom
dev/ogachu_artifact1572

Conversation

@ogachu0331

@ogachu0331 ogachu0331 commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

仕様変更して直撃部と爆風部にダメージ判定を分け、落下までの時間を5秒に短縮、使用しているホットバーの数に応じた確率で外しても最もhpの多い敵に当たるようになりました

@Lapis-LJA Lapis-LJA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passiveフォルダが誤字ってそう

# 神器の発動条件 (TextComponentString) (オプション)
# data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.Damage set value [9999]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9999.9の方が良くない?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに
変えました!

Comment thread Asset/data/asset/functions/object/1166.after_glow/tick/beem.mcfunction Outdated
Comment thread Asset/data/asset/functions/object/1166.after_glow/tick/.mcfunction Outdated
@Lapis-LJA

Lapis-LJA commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

何Tickで着弾するのか、というのも調整されると思うので神器側定義で良いかも?

Comment on lines +7 to +9
# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
#function asset:artifact/common/check_condition/mainhand
# 他にアイテム等確認する場合はここに書く

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この条件を無視すると信仰外でもポインターが表示されるので、無視しないほうが良いかも

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これ無視しないとクールダウン中とかで神器が使えないとき、メッセージが毎tick出てきちゃうんですよね

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DisabledFlagで修正できました

# Object召喚
data modify storage api: Argument.ID set value 1166
# ダメージセット
data modify storage api: Argument.FieldOverride.Damage set value 9999.9

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9999.9d と書くといいかも(floatだと稀に計算の際にダメージが誤差で小さくなる場合がある)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正しました

Comment on lines +26 to +38
data modify storage lib: Argument.BoundingCylinder.Selector set value "@e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable]"
execute positioned ~ ~-1 ~ run function lib:bounding_cylinder/
# ダメージ
data modify storage api: Argument.Damage set from storage asset:context this.Damage
data modify storage api: Argument.AttackType set value "Magic"
data modify storage api: Argument.ElementType set value "Thunder"
execute store result score $UserID Temporary run data get storage asset:context this.UserID
execute as @a if score @s UserID = $UserID Temporary run function api:damage/modifier
execute as @e[type=#lib:living_without_player,tag=Enemy,tag=BoundingCylinder,tag=!Uninterferable] run function api:damage/
function api:damage/reset
scoreboard players reset $UserID Temporary
# tagリセット
tag @e[type=#lib:living_without_player,tag=Enemy,tag=BoundingCylinder,tag=!Uninterferable] remove BoundingCylinder

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

範囲内の3か所のセレクターに..128とかでもいいのでdistanceをつけてほしいかな
distanceの指定がないと別のdimensionも総当たりしてしまうので

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正しました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants