Old Dialogue From NPCs

Started by Frodo, Sun 02/06/2019 21:41:15

Previous topic - Next topic

Frodo

I just came across a problem in my game that didn't occur to me before.  Hope I can explain this clearly. 

There are 5 characters, and I have to perform a task for each of them.
When I complete the task, they give me a verbal clue, which is going to be for a later puzzle (eg, I will have 5 verbal clues).
The trigger for each verbal clue is:
   I give an item from my Inventory to the character. 
  Then they give me a certain item in return. 
  Then they tell me the verbal clue.

The thing is... my Inventory is frequently changing. 
The item I give to the character, obviously, leaves my Inventory.
And the item the character gives to me, changes when I complete the next task.

So when I've done the task for Character 2, I no longer have the 'trigger' item from Character 1, because that item has changed.
And without the 'trigger' item, the character won't say the verbal clue. 

Is there a way round this?  Can I somehow make the characters say their verbal clues, even when I don't have the 'trigger' item anymore?
Something like... "Well, I did give you the item, so here is the verbal clue again."?

Or is my only option to remove the verbal clues and abandon the later puzzle? 


Cassiebsg

Well, you can create a bool variable for each clue... like hasVerbalClue1...
Default it to false, and once you have gotten the first clue, you set it to true. After that you can just check if hasVerbalClue1 is true and give the clue again...
There are those who believe that life here began out there...

Frodo

Sorry Cassie, I was busy yesterday and today.   :embarrassed:

The bool variables seems to work nicely, thanks.   :smiley:

SMF spam blocked by CleanTalk