Code (Text):
partywithin{d=10;n=1;ascaster=true} true
partyowner true
Add this condition
이 조건을 추가합니다
So where would be a good place to use it?
그래서 어디다가 쓰면 좋을까요?
Code (Text):
skill{s=partyint} @self
Code (Text):
partyint:
Skills:
- setvariable{var=caster.partycount;val="%md_party_size%";t=INTEGER} @self
- setvariable{var=caster.partymember2;val="%md_party_member_2%";t=STRING} @self
- setvariable{var=caster.partymember3;val="%md_party_member_3%";t=STRING} @self
- setvariable{var=caster.partymember4;val="%md_party_member_4%";t=STRING} @self
- setvariable{var=caster.partymember5;val="%md_party_member_5%";t=STRING} @self
- setvariable{var=caster.partymember6;val="%md_party_member_6%";t=STRING} @self
- setvariable{var=caster.partymember7;val="%md_party_member_7%";t=STRING} @self
- setvariable{var=caster.partymember8;val="%md_party_member_8%";t=STRING} @self
Code (Text):
Skills:
- cmd{c=mmobuff give <caster.var.partymember2> testbuff 10 SET 1 ADD -s} @PlayerByName{name=<caster.var.partymember2>} ?variableInRange{var=caster.partycount;v=2} ?partywithin{d=10;n=1;ascaster=true}
This is helpful.
The code syntax means: "Get the party variable and apply the mmobuff plugin's testbuff effect to the second party member for 10 seconds, equal to 1."
And what if you add the inline condition partywithin{d=10;n=1;ascaster=true}? If there's more than one party member, it checks whether they're within 10 blocks of the caster. If not, the effect won't be applied!
이런 식으로 쓰면 도움이 됩니다
코드 구문의 뜻은 파티의 변수를 구하고 2번째 파티원에게 mmobuff 플러그인의 testbuff 를 10 초 동안 1 만큼의 효과를 제공합니다 라는 뜻입니다
그리고 거기 뒤에? 인라인 조건 partywithin{d=10;n=1;ascaster=true} 를 붙이면? 파티원 1명 이상일 때 시전자 기준으로 10 블록 이내에 있느냐 조건을 확인해서 아니라면 효과를 주지 않습니다!
Required Plugins
필요한 플러그인
Mythicmobs
https://mythiccraft.io/index.php?resources/mythicmobs.1/
MythicDungeons
https://mythiccraft.io/index.php?resources/mythic-dungeons.869/