7mm

Untitled

7mm
Mar 17th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. command /jinrou start <integer>:
  2. permission: admin
  3. description: /jinrou asa:朝にします /jinrou uranai <プレイヤー名>:プレイヤーを占います
  4. aliases: /j s
  5. trigger:
  6. #リセット処理
  7. arg 1 is 3
  8. reset {jinrou.joining}
  9. #ループ処理
  10. loop all players:
  11. block under loop-player is coal
  12. add 1 to {jinrou.joining}
  13. #参加人数超過
  14. if {jinrou.joining} is greater than arg 1:
  15. message "&4参加人数が%arg 1%人以上です!参加できなかった人はロビーで待機してください。申し訳ありません。" to all players
  16. stop
  17. #正常
  18. else:
  19. set {jinrou.join::%loop-player%} to {jinrou.joining}
  20. set {jinrou.jinrounum} to ceil({jinrou.joining} / 3)
  21. loop {jinrou.jinrounum} times:
  22. set {jinrou.chance} to random integer between 0 to {jinrou.joining}
  23. set {jinrou.chance} to {jinrou.join.%{jinrou.chance}%}
  24. set {jinrou.job.%{jinrou.chance}%} to "jinrou"
  25.  
  26. command /jinrounight <text> [<text>]:
  27. permission: admin
  28. description: /jinrou asa:朝にします /jinrou uranai <プレイヤー名>:プレイヤーを占います
  29. aliases: /jn
  30. trigger:
  31. if arg 1 is "asa":
  32. execute console command "tp @a[x=-443,y=8,z=-654,dx=4,dy=4,dz=-36] -418 5 -638"
  33. set time to 7:00
  34. broadcast "&4[人狼ゲーム]&r:朝になりました"
  35. else if arg 1 is "uranai" or "ura":
  36. if arg 2 is player:
  37. if {jinrou.job.%arg 2%} is 0:
  38. message "%arg 2%は人狼ではありません!"
  39. else if {jinrou.job.%arg 2%} is 1:
  40. message "%arg 2%は人狼でした!"
  41. else:
  42. message "&rエラーが発生しました。その時の状況を記録し、運営に報告してください。可能ならゲームを続行して構いません。"
Advertisement
Add Comment
Please, Sign In to add comment