Skocz do zawartości
  • 0

Nie działa mi komenda :(


Pytanie

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Godzinę temu, memlolmem napisał:

Chciałbym aby moja komenda rzucała podanego gracza ale nie działa:

 


command /fling <player> <text> <number>:
  trigger:
    push {player} {text} at speed {number}

 

Wydaje mi się że nie można dać zmiennej po text. No bo skąd skript ma wiedzieć że ten numer po texcie należy do zmiennej number a nie do zmiennej text. Zamień je miejecami

Odnośnik do komentarza
https://skript.pl/temat/48637-nie-dzia%C5%82a-mi-komenda/#findComment-303161
Udostępnij na innych stronach

  • 0

ok spróbuję

 

"Can't understand this condition/effect: push %arg1% %arg3% at speed %arg2% (Flinging.sk, line 13: push %arg1% %arg3% at speed %arg2%')"

command /fling <player> <number> <text>:
  trigger:
    push %arg1% %arg3% at speed %arg2%

 

CountingDogs

Łączę posty.

Notatka dodana przez CountingDogs

Odnośnik do komentarza
https://skript.pl/temat/48637-nie-dzia%C5%82a-mi-komenda/#findComment-303164
Udostępnij na innych stronach

  • 0
8 minut temu, Skiuel napisał:

Wydaje mi się że nie można dać zmiennej po text. No bo skąd skript ma wiedzieć że ten numer po texcie należy do zmiennej number a nie do zmiennej text. Zamień je miejecami

Głupota, nie ma znaczenia, czy pierw będzie argument z liczbą całkowitą, czy też tekst.

Co do samego wątku - zmienna {player}, {text} i speed nie istnieją, nie są ustawione. Najprościej by było, abyś podmienił te zmienne a 'arg-1', 'arg-2' i 'arg-3'.
 

Odnośnik do komentarza
https://skript.pl/temat/48637-nie-dzia%C5%82a-mi-komenda/#findComment-303166
Udostępnij na innych stronach

  • 1
Gość Usunięty#35900
command /fling [<player>] <text> <number>:
    trigger:
        if arg-2 is "upwards":
            set {_direction} to upwards
        else if arg-2 is "backwards":
            set {_direction} to backwards
        if arg-1 is set:
            push arg-1 {_direction} at speed arg-3
        else:
            push executor {_direction} at speed arg-3

Chyba tylko w ten sposób można to zrobić, kierunek nie jest tekstem, oraz nie można go dodać do argumentów komendy 🙄

Edytowane przez Mushkrem
Odnośnik do komentarza
https://skript.pl/temat/48637-nie-dzia%C5%82a-mi-komenda/#findComment-303191
Udostępnij na innych stronach

  • 0

Dziękuje bardzo za skrypt. Po eksperymentuje też trochę z zmienną {_direction} na przykład:

command /fling [<player>] <text> <number>:
    trigger:
            set {_direction} to arg-2
        if arg-1 is set:
            push arg-1 {_direction} at speed arg-3
        else:
            push executor {_direction} at speed arg-3

Update: mój skrypt nie działa xD

Edytowane przez memlolmem
update
Odnośnik do komentarza
https://skript.pl/temat/48637-nie-dzia%C5%82a-mi-komenda/#findComment-303207
Udostępnij na innych stronach

  • 0

Działa!

command /fling [<player>] <text> <number>:
    trigger:
        if arg-2 is "upwards":
            set {_direction} to upwards
        else if arg-2 is "backwards":
            set {_direction} to backwards
        else if arg-2 is "downwards":
            set {_direction} to downwards
        else if arg-2 is "north":
            set {_direction} to north
        else if arg-2 is "east":
            set {_direction} to east
        else if arg-2 is "south":
            set {_direction} to south
        else if arg-2 is "west":
            set {_direction} to west
        if arg-1 is set:
            push arg-1 {_direction} at speed arg-3
        else:
            push executor {_direction} at speed arg-3

 

Odnośnik do komentarza
https://skript.pl/temat/48637-nie-dzia%C5%82a-mi-komenda/#findComment-303209
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ę...