Jump to content

A gamble mini-game


MoonSweets

Recommended Posts

Hello,

 

So there's a mini-game I thought of and would like to create in the game. As I'm more the creative than programmer kind I'd like a bit of advice to know if what I've thought of is doable or not.

 

Basically, what I want is that an NPC asks the player a given amount of questions. If the player answers all the answers correctly, they get gold, if they answer wrong, they loose gold.

I took a look at how the random services comments are generated and saw that they were all stacked infos in a same topic. So here's what I thought I could do in way to be sure the combination of questions would never/hardly ever be the same, and to avoid using too much scripting/counter to be sure of the amount of questions:

 

I thought of creating say 5 topics. Each topic would countain a good number of infos. Each info would lead to a choice of answers, which would then lead to the following question topic (containing several infos as well).

It's probably gonna look messy in the dialog views with links going everywhere but that's all I can think of for now.

 

Now the issue is that I still need a counter to know if the player answered right or wrong. Should I do this using quest stages? Like, at first question, a right answer sets the quest stage to 10, and a wrong answer sets the stage to 100. In the following questions, a quest stage check should be done, so if the stage <100 and the answer is right, the stage is set to 20/30/40, etc... Else, quest stage =100.

Eventually I would like a subtlety: I'd like to give silly answer options, and if the player choose all/most of those, they get a funny reward while still loosing gold. Maybe those answers should set the quest stage above 100, and at final question, if the quest stage >=170, it's set to 200.

90 would be win stage.

100 would be fail stage.

200 would be alternate fail stage.

 

I'm going to test things out but if someone has advice, please tell.

I really am not a programmer and I'm only discovering what can be done with quests and dialogs.

 

Thanks for reading

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...