Choice question

im working on a game with a friend and we wanted to hide a choice to the player unless they finished a quest line but we want multiple choices hidden based on what they do (such as they can look at a door as one choice but if they have a lockpick it'll give them a new option saying they can lockpick it or look at the door)
This is interesting and it can be approached by many ways.


Give me a few minutes and I will edit this reply with one.


First of all if it has to do with common stuff the player will interact with everywhere, like doors, you should consider open the Database and go to Common Events and make a Common Event there for this case. Name it properly, let's say "DoorOpenEvent" then go to the door event and call that event using the event command Call Common Event.


Now this might be complex.


A door can be lockpicked, opened by a key, or let's say bashed if you are strong enough.


Conditional branches can do these checks for you.


Make three common events,


one that checks for hero having lockpicking,


one checking for for strength to bash it open


and one for checking that hero has a key fo rthe door.


Now in the DoorOpenEvent an idea on how it should look like is


IF you got lockpick


Call the CheckLockpick common event.


Else


  IF your sterngth is more than a certain number


  Call BashCheckCommonEvent


   Else


Call HaveKeyCheckCommonEvent


End


End
Requesting rule exception: Double posting.


I respect the rules, sorry for doing this but I had to answer here.


Dear @dawnsinit is really nice that you sent me a PM but I would like to answer to you using the forum for two reasons.


First of all, everyone can see my answers, so if any answer might help you out solve the problem, hopefully other people with the same problem can have access to it. Private messages limit the access of such an answer only to you.


Second disadvantage is that you limit your chances to get an answer from only ME having an answer and the time to reply. Thus I might have no answer, I might have an answer but I might delay replying to you, or even worse, delay to reply to you that I have no answer. 😛


See? It is REALLY better to write here, because EVERYONE can see that and you might get some help from some awesome guys like @Andar  for instance, who has made fantastic tutorials (see his signature for more info). See I really tell you that to show you why you should post here and to explain why it is for your advantage. 😉


If you want to enclose secret info about your project, you can always PM me something and I will happily answer to you if I can whenever I will find the time. But what you really ask me here is a vanilla way to set things in a game, so I copy - paste your question and answer that here:


"i thank you for the reply last night i tried your answer but it didn't work for what im trying to get it to work for in our game my friend wanted me to setup a system to allow the player to pick a class that is unlocked by quests now the event trigger works to unlock the quest but the choices will show all classes off the bat so im trying to hide a class (IE:mage) till the quest is finished and unlocked then allowing the player to pick the class do you have any ideas on how to go about this? im sorry if im bothering you on the subject  "


Okay, ROUND 2:



Make a variable name it SelectedClass. A VARIABLE. Not a switch!


I think  you first select a Class.


If class = Warrior


and set it to num


When the player selects a class,


If warrior set SelectedClass = 1


If mage set set SelectedClass = 2


If thief set SelectedClass = 3


If priest set SelectedClass = 4


blah blah blah...


Okay? Simple enough?


Now make a switch and name it Quest1Finished.


You should call a common event according to what SelectedClass value is.


If the quest is done, you just set switch Quest1Finished=on and make an event page for that.


BOOM!


So you can set quests available by checking if a variable equals to a specific value


(for warrior quest SelectedClass should be equal to 1).


Tell me if that helps you solve your issue, or if you still struggle.


Cheers mate.


I sugges you using Common events to make the quests, then call them from Map events.


That is because you can call common events like WarriorEvent1, WarriorEvent2, just giving you some ideas. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/choice-question.71285/