mutilple quests one npc

● ARCHIVED · READ-ONLY
Started by Jarick 5 posts View original ↗
  1. i have made an npc that gives mutiple quests not sure how to get set up with the pages what not
  2. So they offer all quests at the same time? Do you have to complete one before you can go to the next? When one quest is complete, do you want it to be removed from the list of options?

    You could do something like this ...

    Use a variable to check what quest has been selected - set it to a different number for each quest.
    Create a new page for each quest and use the variable = whatever number for each page condition. This will allow the NPC to focus on just one quest at a time, if that's what you want.
    Allocate one switch for each quest. On the page for the quest, turn the appropriate switch on when the quest is complete, and set the variable back to 0.

    On the main page, when the player chooses any option, first check if that switch is on to indicate they've already done that quest. If they have, show a message. If they haven't, set the variable to the appropriate number.

    Something like this:

    Code:
    Page 1:
    
    Show Choices: Kill Some Rats; Get Me a Beer
    When [Kill Some Rats]
      If Switch [0010: Killed Rats] = ON
        Text: I don't need anymore rats
      Else
        Control Variables: [0005: Chosen Quest] = 1
        Text: Kill 10 Rats for me then I'll give you another job
      End
    When [Get Me a Beer]
      If Switch [0011: Gave Beer] = ON
        Text: Maybe later
      Else
        Control Variables: [0005: Chosen Quest] = 2
        Text: In a Tankard, please
      End
    End    
    
    
    
    Page 2 (conditioned by Variable 5 = 1):
    Control Variables [0002: Junk] = Rats in Inventory
    If Variable [0002: Junk] >= 10
      Text: Thanks.  That'll keep 'em out of my cheese!
      Change Items: Rats -= 10
      Control Switches [0010: Killed Rats] = ON
    Else
      Text: I need 10 rats
    End
    
    
    Page 3 (conditioned by Variable 5 = 2):
    If Beer in Inventory
      Text: Just what I need on a stinkin' hot day!
      Change Items: Beer -= 1
      Control Switches [0011: Gave Beer] = ON
    Else
      Text: Any sign of that beer?  It's getting warmer by the minute!
    End
  3. if you choose that a quest do it then it goes off list wht im trying to do
  4. Then you would need a Conditional Choices plugin.