funfreak55 Posted November 9, 2019 Share Posted November 9, 2019 Hello all! I'm new to forums, so if I'm hard to understand please forgive me. Also, what I'm aksing help with is kinda XXX so I won't be saying exactly what I need help with, but will try my best to get the answer I'm looking for. I need help with editing an existing Papyrus Script. In this script there are two options, Option A is good and Otion B bad. I'm tyring to make an Option B2 where if Option B is different in a specific way it is neutral. Best anology I can come up with is this... We have colored boxes that we open. Opening green boxes will heal you, but opening red boxes will harm you. But if we have two kinds of red box, let's say striped red boxes and spotted red boxes, how could I make the striped box hurt me while the spotted box do nothing? I hope everyone can understand what my anology is trying to explain without fully explaing it. Thanks for reading and I hope someone can help! Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 9, 2019 Share Posted November 9, 2019 Just cause the content might be triple X, the script itself will be rather benign (unless you're using X rated terms for your variables). Without seeing the script (or even relevant snippets) I cannot make an accurate suggestion. However, in psuedo code it would be: If Option A condition is true ; do option A ElseIf Option B condition is true ; do option B ElseIf Option B2 condition is true ; do option B2 EndIf It could get more complicated depending upon the necessary conditions to differentiate between the three. For example, if the B and B2 options were very similar with only one thing separating them it could be adjusted as follows: If Option A condition is true ; do option A ElseIf Common Option B and Option B2 conditions are true If Specific Option B condition is true ; do option B ElseIf Specific Option B2 condition is true ; do option B2 EndIf EndIf That said, if you are not concerned about what conditions Option A or Option B might fail, you can simply give yourself an automatic fail result. That would be as follows: If Option A conditions are true ; do Option A ElseIf Option B conditions are true ; do Option B Else ; neither A or B are true ; do something else EndIf And you can always combine the two and have specific conditions for all three while also having a fourth fail result to cover any unforeseen combinations of the conditions. Link to comment Share on other sites More sharing options...
Recommended Posts