Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] Skript osiągnięcia.


TheMasterOfMPC

Rekomendowane odpowiedzi

Opublikowano

Witam,
Chciałbym dodać do mojego początkowego skripty dopiero go zaczynam gotowe jakieś 5% nie hejtować ;D Sprawa wygląda niby prosto ale nie mam pojęcia gdzie umieścić taki dodatek który jeżeli zmienna będzie wynosić 3 to napisze wiadomość na broadcast
KOD:
 

variables:
	{gry.EASY.%player%} = 0
	{gry.MEDIUM.%player%} = 0
	{gry.HARD.%player%} = 0
on walking on end stone:
	clear the player's inventory
	execute console command "tppos %player% 0 100 0"
	equip player with diamond helmet of protection 4
	equip player with diamond chestplate of protection 4
	equip player with diamond leggings of protection 4
	equip player with diamond boots of protection 4
	execute console command "give %player% 276 1 sharpness:5 fireaspect:2"
	execute console command "give %player% 276 1 knockback:2"
	execute console command "give %player% 322 5"
	execute console command "give %player% 322:1 2"
	execute console command "give %player% 322 5"
	execute console command "give %player% 261 1 punch:2 infinity:1"
	execute console command "give %player% 368 2"
	execute console command "give %player% 320 64"
	execute console command "give %player% 262 1"
	add 1 to {gry.HARD.%player%}
	send "&3» &6Witamy na arenie &cHARD &6to juz twoja &3%{gry.HARD.%player%}% &6gra!"
	stop
on death:
	clear drops
	stop
command /staty:
	trigger:
		send "&3» &7Ilosc zagranych gier:" to the player
		send "&3» &aEASY: %{gry.EASY.%player%}%" to the player
		send "&3» &6MEDIUM: %{gry.MEDIUM.%player%}%" to the player
		send "&3» &cHARD: %{gry.HARD.%player%}%" to the player
		stop
on chat:
	cancel event
	broadcast "&8[&aE:&3%{gry.EASY.%player%}%&8][&6M:&3%{gry.MEDIUM.%player%}%&8][&cH:&3%{gry.HARD.%player%}%&8] &7%name of player% &3» &7%message%"
	stop

Chodzi mi o taki efekt:
 

if {gry.HARD.%player%} is 3:
     broadcast "&6Gracz &3%player% &6uzyskal serie &3%{gry.HARD.%player%}% &6zagran na arenie &cHARD&6! "

Ale nie mam pojęcie gdzie to umieścić z góry dziękuje za pomoc ;3

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...