Creating side-quests

Yes you need to create the quests in startup.txt as false and set them to true once they unlock the ability to do each quest.

2 Likes

The quanity of items are going to be individually collected by the player (if not available at the university shops), I’m planning to have an area set outside “university campus” to act as a future location for other activities and item collecting for sidequests.

Then you’ll also need to *create a variable for that too something like

*create elderwood 0

Sorry to be the grumpy grandpa, but @zenith8: You would help yourself immensely if you got into the habit of breaking down problems into smaller parts. Rather than asking us ‘How do you create side-quests’, have a think about what smaller functions that entails:

  • Storing data about the side quests
    • What data? The title, description, is it complete?
    • Would variables be OK for this?
  • Displaying the side quests
    • Do I know how to print my data from variables to the screen?
    • How about selection? Could I use Choices as menus?
  • How to ‘trigger/start’ the side quests?
    • Could I use *goto? *gosub? or will it happen under an *if as part of the story?

Once you do this, I guarantee, you’ll realize you know more than you think you do.

If you then get to a really small problem, like ‘How do I hide a choice option after it’s selected’, then by all means, ask away! But having people present you with their own examples really won’t help you much in the long run. Remember you’ll have to debug the code you use, so understanding it top to bottom is extremely important.

8 Likes

Yah, there is nothing special about “side-quests”, you would just code them like any other complex choices and variable control structure. The more complex what you want to do is the more it needs a detailed understanding of choice-script and variable management to get right and imo and isn’t something can just pick off the shelf from another coder/writer. - Essentially what Eiwynn says - read the wiki and see how you can make what you imaging work with the scripting language.

2 Likes

Gotta be precise with your code when offering advice.

*disable_reuse

*choice
  *if (zoe_sidquest = false) #Complete Zoe's side quest.
    *set zoe_sidequest true
    *goto_scene sidequests zoe
  *if (zack_sidequest = false) #Complete Zack's side quest
    *set zack_sidequest true
    *goto_scene sidequests zack
*if ((has_pencil = true) and (has_notebook = true))
  X happens.

Anyway, zenith8, create a document where you write down every function you know how to do in choicescript. Go through the wiki and go through the tutorials a few times. Write everything down. Then as CJW said, break your problem down into small parts and think about how you can use the tools at your disposal to achieve the outcome you want. You wouldn’t ask someone how to cook good, you’d ask about recipes you want to make.

3 Likes

Thanks for the correct coding!

I was only half paying attention to the coding (yikes) when I was writing it up.

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the @moderators.