Jump to content

ERROR notice_all and get_game.get_event_flag


Recommended Posts

hello bro's:

I have a failure I could not solve.

       when kill with npc.is_pc() and npc.empire != pc.empire and pc.get_map_index() == 103 and game.get_event_flag("war") == 1 begin              

game.set_event_flag("empire_"..pc.get_empire(),game.get_event_flag("empire_"..pc.get_empire())+1)

notice_all(" Emp 1"..game.get_event_flag("empire_1").." Emp 2 "..game.get_event_flag("empire_2").." Emp 3 "..game.get_event_flag("empire_3").." ")

The problem

when kill  emp_1 + 1 is good.

   notice_all(" emp_1 1 emp_2 0 emp_3 0 ") so good, but after

when kill emp_2 + 1 is bad

notice_all(" emp_1 2 emp_2 0 emp_3 0 ") so bad, but after

when kill emp_2 + 1 is good

notice_all(" emp_1 2 emp_2 1 emp_3 0 ")

I do not find a solution

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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