Jump to content

Recommended Posts

Hi, here is my question: How set a notice when a game flag is changed?

E.g: 

 

quest test1 begin
    state start begin
        when 8027.kill with game.get_event_flag("event_test1_drop") == 1

 

when that "event_test1_drop" == 1 some notice pop up on global chat, like: "Event Test1 is now enabled..." 

 

Link to comment
Share on other sites

12 hours ago, Coutter said:

Hi, here is my question: How set a notice when a game flag is changed?

E.g: 

 

quest test1 begin
    state start begin
        when 8027.kill with game.get_event_flag("event_test1_drop") == 1

 

when that "event_test1_drop" == 1 some notice pop up on global chat, like: "Event Test1 is now enabled..." 

 

 

You can use the lua function notice_all

 

notice_all("message")

 

 

 

 

  • Love 1
Link to comment
Share on other sites

10 hours ago, Sonitex said:

There is no quest state trigger unless you make one by yourself. Instead you can go to questmanager.cpp and take a look at this function:


void CQuestManager::SetEventFlag(const string& name, int value)

 

Right, could you please be a little bit more specific in this case?

6 hours ago, Cappuccino said:

 

You can use the lua function notice_all

 


notice_all("message")

 

 

 

 

I know how to use notice_all but when it comes to event_flag i cant make it work out...  

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 4

      Feeding game source to LLM

    2. 0

      Quest 6/7 Problem

    3. 5

      Effect weapons

    4. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

    5. 3

      Crystal Metinstone

    6. 4

      Feeding game source to LLM

    7. 113

      Ulthar SF V2 (TMP4 Base)

    8. 4

      Feeding game source to LLM

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.