Use 'attacker' and/or 'victim' in damage/death events

on damage:
victim is player
attacker is not player
send "hehehe" to victim
on damage:
victim is player
attacker is not player
send "hehehe" to victim
で実行すると Use 'attacker' and/or 'victim' in damage/death events というエラーが出ます。。。 解決方法ありますか...
Solution:
is a player is not a playerでいけるらしい...
Jump to solution
14 Replies
るび
るび6mo ago
No description
るび
るび6mo ago
あと前までちゃんと動いていたのにサーバー再起動すると急にエラー出ました broadcast "%attacker%" だといけました.......
Solution
わし
わし6mo ago
is a player is not a playerでいけるらしい
るび
るび6mo ago
エラーなしです!いけました ありがとうございます!
Tsukineko(月雲)
まじ?
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
いいですか タイプを比較するには type of is is a is of type
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
特に3つ目はあまり知られてないと思います https://skripthub.net/docs/?id=1168
Skript Hub - Documentation
Is of Type (Condition) - Skript
Checks whether an item of an entity is of the given type. This is mostly useful for variables, as you can use the general 'is' condition otherwise (e.g. 'victim is a creeper').
___
___6mo ago
is a | is an
is a | is an
Type https://skripthub.net/docs/?id=2169 https://github.com/SkriptLang/Skript/blob/master/src/main/resources/lang/readme.txt https://github.com/SkriptLang/Skript/blob/master/src/main/java/ch/njol/skript/classes/data/SkriptClasses.java#L98
type of
type of
Expression https://skripthub.net/docs/?id=922
is type of
is type of
Condition https://skripthub.net/docs/?id=1168 a | an って変えられるのかな?
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
英文法的な細かいチェックはしてないと思う だからどっちでいいかな? 三単現とかもお構い無しだしね
Tsukineko(月雲)
(doesn't contains はだめなもよう)
___
___6mo ago
いや、 https://github.com/SkriptLang/Skript/blob/1a009cdb1419292046de0e95429bcb40eaaaab15/src/main/resources/lang/default.lang#L17C9-L17C9 このgendersってセクションでaiueoとかに変えられるのかなと思ってlangに追加してみたけど無理だったので別のやり方があるのかなと思いました doesn't containsがダメなのは構文を見ればわかると思う https://skripthub.net/docs/?id=1154 githubにjapanese.langあるんだね https://github.com/SkriptLang/Skript/blob/master/src/main/resources/lang/japanese.lang
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
それ2.7.0で日本語対応したときからのものかな
___
___6mo ago
https://github.com/SkriptLang/Skript/commits/master/src/main/resources/lang/japanese.lang https://github.com/SkriptLang/Skript/tags#toggle-commit-2.7.2 2.7.2から追加されてるけど、langファイル自体は9ヵ月前からあるみたい ここでjapanese.lang配布してる時点ではもう公式のgithubにあったみたいだね
yukkina
yukkina6mo ago
don't(do not) contain/doesn't(does not) containなんやろなぁ
Want results from more Discord servers?
Add your server
More Posts
プレイヤーに矢を刺さらないようにしたい矢のダメージは入るけど、刺さった矢を消したい[クソ長コード]コードの軽量化ymlを読み込み、内容を変数に保存していくコードなのですが 如何せん処理に時間がかかっていて… これを軽量化する方法はないでしょうかitemに個別のkeyとvalueを設定してあげたいentityなら `set metadata "test" of entity to 10` とかできるじゃないですか アイテムでも似たようなことがやりたいです ```applescript set ダイヤモンドを右クリックした後の15秒間、敵にダメージを与えると継続ダメージを与える``` on rightclick holding diamond: set {centhe2.skill.%player%} to 1 set {centhe2.click.%plapushがくそ```applescript on right click: player is op player's tool is getOPItem() push player forplayerが特定の進捗を達成しているかできますかね...? 環境 bungeecord 1.20 接続先 paper 1.20.1 skript 2.7.3 アドオン zulfungee last shot entity がバグってる``` on leftclick holding bow: set {_x} to x-coordinate of player set {_y} to y-coordinate of plaat 00:00 が動かない```applescript at 10:00 in "w-lobby-new": broadcast "test"``` /time set ~ した時に、上記コードが動かなくなります これbungeecordsw使えるチャット連携skriptを作ってほしい環境 bungeecord 1.20 接続先 paper 1.20.1 skript 2.7.3 アドオン zulfungee skungee mythicmobsで作ったモブをskriptで召喚したい。スポーンさせてlast spawned entityで指定したいです。 環境:1.19.4