Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.93 KB | None | 0 0
  1. focus = {
  2.         id = test_the_chinese_focus
  3.         icon = GFX_goal_generic_political_pressure
  4.         available = {
  5.             is_puppet = no
  6.  
  7.         }
  8.         bypass = {
  9.             608 = {
  10.                 NOT = {
  11.                     is_controlled_by = CHI
  12.                     is_controlled_by = PRC
  13.                     is_controlled_by = SHX
  14.                 }
  15.             }
  16.             597 = {
  17.                 NOT = {
  18.                     is_controlled_by = CHI
  19.                     is_controlled_by = PRC
  20.                     is_controlled_by = SHX
  21.                 }
  22.             }
  23.             614 = {
  24.                 NOT = {
  25.                     is_controlled_by = CHI
  26.                     is_controlled_by = PRC
  27.                     is_controlled_by = SHX
  28.                 }
  29.             }
  30.             OR = {
  31.                 NOT = { country_exists = CHI }
  32.                 has_global_flag = KMT_pro_japanese
  33.                 }
  34.         }
  35.         x = 5
  36.         y = 0
  37.         cost = 10
  38.         will_lead_to_war_with = CHI
  39.         ai_will_do = {
  40.             factor = 10
  41.             modifier = {
  42.                 factor = 0
  43.                 date < 1937.1.1
  44.             }
  45.         }
  46.         completion_reward = {
  47.             if = {
  48.                 limit = {
  49.                     CHI = { #if CHI owns one of these states, they get the event
  50.                         OR = {
  51.                             controls_state = 608
  52.                             controls_state = 597
  53.                             controls_state = 614
  54.                         }
  55.                     }
  56.                 }
  57.                 CHI = {
  58.                     country_event = china.1
  59.                 }
  60.             }
  61.             if = {
  62.                 limit = {
  63.                     PRC = { #only fires the event for PRC if they control ALL of the states (to ensure that only one of them gets it, to avoid issues when one selects to turn over the states and the other doesn't)
  64.                         AND = {
  65.                             controls_state = 608
  66.                             controls_state = 597
  67.                             controls_state = 614
  68.                         }
  69.                     }
  70.                 }
  71.                 PRC = {
  72.                     country_event = china.1
  73.                 }
  74.             }
  75.             if = {
  76.                 limit = {
  77.                     SHX = { #only fires the event for SHX if they control ALL of the states (to ensure that only one of them gets it, to avoid issues when one selects to turn over the states and the other doesn't)
  78.                         AND = {
  79.                             controls_state = 608
  80.                             controls_state = 597
  81.                             controls_state = 614
  82.                         }
  83.                     }
  84.                 }
  85.                 SHX = {
  86.  
  87.                     country_event = china.1
  88.                 }
  89.             }
  90.             add_named_threat = { threat = 1 name = test_the_chinese_focus }
  91.         }
  92.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement