Jump to content
  • 0

Events


Giligis

Question

So I was never good with events. I'm basically trying to play out a storyline. First, you talk to the chief, he hands you some items and tells you to grab a book, I set another event to a bookcase, and made it set player variable HasBook = 1, when you talk to the other event I made an if statement, if player HasBook = 1 he talks some more yada yada and gives you a quest, once you complete the quest, he'll give another to talk to someone else and then he will have some generic statement to say. Is this the right way of going about it? I don't want him to hand out the items every time you talk to him. 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

For variables that are yes and no it's better to just use a True/False switch to keep things simple. Instead of HasBook = 1 or 0 you can just have it as HasBook = True or False. 

 

For the scenario you're doing, It'd be best to have it like:

Talking to the chief

  >Conditional Branch

       >HasBook = False

            >ConditionalBranch

               >ChiefGivenItems = False

                  >here are some items, etc

                       >Set ChiefGivenItems = True

               >ChiefGivenItems = True

                  >'you should go look for that book'

       >HasBook = True

          >Conditonal Branch

              >QuestComplete = False

                  >Conditional Branch

                      >QuestStarted = False

                            >give quest

                                >Set QuestStarted to True

                      >QuestStarted = True

                         >repeat quest instructions

              >QuestComplete = True

                   >good job, go do this now, etc

 

Bookshelf

    >Conditional Branch

        >QuestStarted = False

           >You don't find anything worth reading

        >QuestStarted = True

             >Conditional Branch

                  >HasBook = False

                     >You find a book on the shelf!

                         >Set HasBook to True

                  >HasBook = True

                     >You don't find anything worth reading

 

something like that

Link to comment
Share on other sites

×
×
  • Create New...