Skocz do zawartości
  • 0

Problem z tab completer


MilutuS
 Udostępnij

Pytanie

Witam mam problem chciałbym dodać aby po wbiskaniu tab podpowiadało kolejne argumenty dla moich komend 
W tym problem ze chce aby argumenty dla 1szego jak i dla drugiego argumentu były inne 
Ktoś pomoże? 
 

command /test [<text>] [<text>] [<text>]:
	trigger:
		if arg 1 is "1szystopien-2":
			send "done"
			if arg 2 is "2gistopien-2":
				send "done2"
			if arg 2 is "2gistopien-3":
				send "done2"
				if arg 3 is "3cistopien-2":
					send "done3"
				if arg 3 is "3cistopien2-2":
					send "done3-2"
		if arg 1 is "1szystopien":
			send "done"
			if arg 2 is "2gistopien":
				send "done2"
				if arg 3 is "3cistopien":
					send "done3"
				if arg 3 is "3cistopien2":
					send "done3-2"

 

Po wpisaniu /test Propozycje to -> 1szystopien-2 i 1szystopien
po dopisaniu 1szystopien propozycja zmieniona na 2gistopien po wpisaniu 2gistopien dodane propozycje 3cistopien i 3cistopien2

Myślę że dość jasno to wytłumaczyłem proszę o pomoc :>

Odnośnik do komentarza
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
on tab completer for "/test":
	if argument at 1 is "":
		add "1szystopien" to completions
		add "1szystopien-2" to completions
	if argument at 1 is "1szystopien":
		add "2gistopien" to completions
	if argument at 1 is "1szystopien-2":
		add "2gistopien-2" to completions
	if argument at 1 is "1szystopien":
		if argument at 2 is "2gistopien":
			add "3cistopien" to completions
			add "3cistopien2" to completions
	if argument at 1 is "1szystopien-2":
		if argument at 2 is "2gistopien-3":
			add "3cistopien-2" to completions
			add "3cistopien2-2" to completions

troche mie od tego głowa boli ale dałem rade trzymaj :)

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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