15gudasc Posted November 28, 2023 Share Posted November 28, 2023 (edited) Hi! I want to condition dialogue options based on whether an earlier dialogue options were chosen. I want to do this a lot over multiple conversations, so I've created a script with a set of simple functions that can 1. set a bool to true when a certain dialogue option is chosen, and 2. reset the bool so it's prepped for use again later. However, I'm missing a crucial component: I don't know how to create a condition that will only display a dialogue option based on DialogueOptionChosen = true. Here's my script. Any ideas? Also glad to hear if someone has an even simpler idea for how to do this. Thanks! Scriptname MyMod01:ConditionalDialogueScript extends Quest Conditional Bool Property DialogueOptionChosen Auto Function SetDialogueChosen() DialogueOptionChosen = true EndFunction ; Reset the dialogue option status Function ResetDialogueOptionChosen() DialogueOptionChosen = false EndFunction Edited November 28, 2023 by 15gudasc Link to comment Share on other sites More sharing options...
Fantafaust Posted November 28, 2023 Share Posted November 28, 2023 You put the conditions on the dialogue itself, and you can even put scripts directly on dialogue options, so they set global variables that you can use for those conditions. Link to comment Share on other sites More sharing options...
15gudasc Posted November 28, 2023 Author Share Posted November 28, 2023 That's a good idea–do you know what condition would work here? Is there some sort of "IsTrue" condition (I can't check atm) that knows how to read that global variable? I struggled to find one yesterday. Link to comment Share on other sites More sharing options...
15gudasc Posted November 28, 2023 Author Share Posted November 28, 2023 Sorry, I just found that there is indeed a condition function called "GetGlobalValue." That should work for this purpose. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts