I’m using smart_scripts to fix https://github.com/TrinityCore/TrinityCore/issues/20836 But at some point in that quest, two things might happen after the Player gossips with an NPC:
-
A 50% chance that the NPC becomes hostile
-
if-and-only-if that does not happen, a quest objective must be completed
I looked at the documentation and it says that smart_scripts can handle ‘chances’ but I can’t figure out how to make something else happen if that chance does NOT occur.
Any ideas?