Jump to content
  • 0

EVENT FLAG NOTICE


Coutter

Question

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 post

3 answers to this question

Recommended Posts

  • 0
  • VIP
Posted (edited)

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)

 

Edited by Sonitex
  • Love 1
Link to post
  • 0
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 post
  • 0
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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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.