Hey scripting gurus out there, I have a question. I have this script
Code:
void main () {
if (GetIsObjectValid(GetItemPossessedBy(GetFirstPC(), "xxxxxxxx"))) {
if (GetIsObjectValid(GetItemPossessedBy(GetFirstPC(), "yyyyyyyy"))) {
if (GetIsObjectValid(GetItemPossessedBy(GetFirstPC(), "zzzzzzzz"))) {
AddJournalQuestEntry("XYZ",30); }}}
}
This script is on some placeables that is checked when inventory is disturbed, and when I have all three items journal entry 30 is triggered. Which I want to keep.
My question, how do I alter this script so that if I don't have all three items when the placeable is disturbed journal entry 20 is triggered instead?
Thanks.