Skocz do zawartości
  • 0

pomoc z zmiennymi


JaJkO

Pytanie

	mshehe: &aGratulacje,&9 otrzymales jak prezent!	prezent1: none  	prezent2: Stone  	prezent3: diamond  	prezent4: cobblestone  	prezent5: blaze rod  	prezent6: egg  	prezent7: egg  

Jak to zrobić aby była jedna zmienna z tych prezent1 itp itd np zeby pisało na czacie

	mshehe: &aGratulacje,&9 otrzymales [zmiena za te prezenty] jak prezent!np:	mshehe: &aGratulacje,&9 otrzymales Egg jak prezent!

pomoże ktoś?

Odnośnik do komentarza
https://skript.pl/temat/3761-pomoc-z-zmiennymi/
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

ale nie o to chodzi masz tutaj kod może załapiesz

on rightclick with egg:	if name of player's tool is "&6Jajko Heheheszk'owe":		if {event.hehe} is true:			cancel event			remove 1 egg from player's tool			chance of 5%:				give {@prezent1} to player				send "{@mshehe}"			chance of 5%:				give {@prezent2} to player				send "{@mshehe}"			chance of 5%:				give {@prezent3} to player				send "{@mshehe}"			chance of 5%:				give {@prezent4} to player				send "{@mshehe}"			chance of 5%:				give {@prezent5} to player				send "{@mshehe}"			chance of 5%:				give {@prezent6} to player				send "{@mshehe}"			chance of 5%:				give {@prezent7} to player				send "{@mshehe}"options:	mshehe: &aGratulacje,&9 otrzymales {@prezent6} jako prezent!	prezent1: none  	prezent2: Stone  	prezent3: diamond  	prezent4: cobblestone  	prezent5: blaze rod  	prezent6: egg  	prezent7: egg  
Odnośnik do komentarza
https://skript.pl/temat/3761-pomoc-z-zmiennymi/#findComment-32428
Udostępnij na innych stronach

  • 0
mshehe: &aGratulacje,&9 otrzymales %{@prezent1}% jak0 prezent!prezent1: none  prezent2: Stone  prezent3: diamond  prezent4: cobblestone  prezent5: blaze rod  prezent6: egg  prezent7: egg  

albo

mshehe: &aGratulacje,&9 otrzymales jak prezent!prezent1: none  prezent2: Stone  prezent3: diamond  prezent4: cobblestone  prezent5: blaze rod  prezent6: egg  prezent7: egg  send "%{@mshehe}%"
Odnośnik do komentarza
https://skript.pl/temat/3761-pomoc-z-zmiennymi/#findComment-32454
Udostępnij na innych stronach

  • 0

hmmm wiem już o co ci chodzi:

on rightclick with egg:    if name of player's tool is "&6Jajko Heheheszk'owe":        if {event.hehe} is true:            cancel event            remove 1 egg from player's tool            chance of 5%:                give {@prezent1} to player                send "%{@mshehe1}%"            chance of 5%:                give {@prezent2} to player                send "%{@mshehe2}%"            chance of 5%:                give {@prezent3} to player                send "%{@mshehe3}%"            chance of 5%:                give {@prezent4} to player                send "%{@mshehe4}%"            chance of 5%:                give {@prezent5} to player                send "%{@mshehe5}%"            chance of 5%:                give {@prezent6} to player                send "%{@mshehe6}%"            chance of 5%:                give {@prezent7} to player                send "%{@mshehe7}%"options:    mshehe1: &aGratulacje,&9 otrzymales {@prezent1} jako prezent!    mshehe2: &aGratulacje,&9 otrzymales {@prezent2} jako prezent!    mshehe3: &aGratulacje,&9 otrzymales {@prezent3} jako prezent!    mshehe4: &aGratulacje,&9 otrzymales {@prezent4} jako prezent!    mshehe5: &aGratulacje,&9 otrzymales {@prezent5} jako prezent!    mshehe6: &aGratulacje,&9 otrzymales {@prezent6} jako prezent!    mshehe7: &aGratulacje,&9 otrzymales {@prezent7} jako prezent!    prezent1: none      prezent2: Stone      prezent3: diamond      prezent4: cobblestone      prezent5: blaze rod      prezent6: egg      prezent7: egg  
Odnośnik do komentarza
https://skript.pl/temat/3761-pomoc-z-zmiennymi/#findComment-32470
Udostępnij na innych stronach

  • 0

@up opcje nie traktuje się tak samo jak zmienne jajko dobrze napisał np. send "{@mshehe7}" - jest poprawne.

on rightclick with egg:	if name of player's tool is "&6Jajko Heheheszk'owe":	if {event.hehe} is true:		cancel event		remove 1 egg from player's tool		set {_numer} to random integer between 0.5 and 7	#Czemu 0.5 zamiast 1 ? Bo wtedy praktycznie 1 nigdy Ci się nie wylosuje...		give {@prezent%{_numer}%} to player		send "{@mshehe}"options:    mshehe: &aGratulacje,&9 otrzymales {@prezent%{_numer}%} jako prezent!    prezent1: none      prezent2: Stone      prezent3: diamond      prezent4: cobblestone      prezent5: blaze rod      prezent6: egg      prezent7: egg

Mam nadzieję że dobrze zrozumiałem...

Odnośnik do komentarza
https://skript.pl/temat/3761-pomoc-z-zmiennymi/#findComment-33370
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...