Jump to content
TrinityCore

How I work if/else scenarios with probabilities with smart_scripts?


nubqt
 Share

Recommended Posts

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:

1. A 50% chance that the NPC becomes hostile

2. 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?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...