Missions not working properly

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Ariuw

Member
Sep 6, 2017
42
1
8
30
Hello!

I've been trying to work on a mision kind of thing, so when they talk to an NPC they complete a match so by using `/misions` they should be one marked as completed, but if they do two missions they show that they have completed two missions... so, the thing is when adding a third mission, wich will spam me the other two messages and it won't work properly, here's what I have:

The main idea is that they will only get 1 completed mission when done here's how they get the {misionmurray.%player%}:

Code:
on npc right click:
    if npc is named "&6&l[&e&l!&6&l] &2Nestor":
        if {nestor.%player%} is false:
            set {misionnestor.%player%} to true

Code:
 command /missions:
    trigger:
        if {misionmurray.%player%} and {misionbarbara.%player%} and {misioncalvin.%player%} and {misionnestor.%player%} and {misionjacob.%player%} are false:
            message ""
            message "&6You got 5 more missions to complete &7(0/5)"

        if {misionmurray.%player%} is true:
            message ""
            message "&6You got 4 more missions to complete  &7(1/5)"

        if {misionmurray.%player%} and {misionbarbara.%player%} are true:
            message ""
            message "&6You got 3 more missions to complete &7(2/5)"

        if {misionmurray.%player%} and {misioncalvin.%player%} are true:
            message ""
            message "&6You got 3 more missions to complete &7(2/5)"

I just want it to be displayed disgarding the order of the missions, thanks in advance!
 
Status
Not open for further replies.