Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. require("libGarrisonFunctions")
  2.  
  3.  
  4. function Definitions()
  5. Define_State("State_Init", State_Init)
  6. end
  7.  
  8. function State_Init(message)
  9. if message == OnEnter then
  10. if Get_Game_Mode() ~= "Space" then
  11. ScriptExit()
  12. end
  13. Debug_Text("DEBUG_1")
  14. empire_player = Find_Player("EMPIRE")
  15. rebel_player = Find_Player("REBEL")
  16. Debug_Text("DEBUG_2")
  17. if Object.Get_Type().Get_Name() == "EMPIRE_RACKETEERING_CORRUPTION_UPGRADE" then
  18. Debug_Text("DEBUG_3")
  19. UpgradeRoutine("Empire", 2, "Empire_Capital_Shipyard")
  20. Debug_Text("DEBUG_4")
  21.  
  22. elseif Object.Get_Type().Get_Name() == "REBEL_RACKETEERING_CORRUPTION_UPGRADE" then
  23. Debug_Text("DEBUG_3")
  24. UpgradeRoutine("Rebel", 1, "Rebel_Capital_Shipyard")
  25. Debug_Text("DEBUG_4")
  26. end
  27. Debug_Text("DEBUG_5")
  28. ScriptExit()
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement