Can anyone help me with this code?
Code:
---------------------------------------------------------------------------------------------------------------------------
-- DOPSHOGUN
--
local current_dopshogun = ""
local function OnFactionTurnedShogun(context)
local current_dopshogun = context.string;
scripting.game_interface:create_force(--[FACTION]--
current_dopshogun,
--[SPECIFIC ARMY LIST]--
"Cav_Spear_Great_Guard,Cav_Spear_Yari_Cavalry,Cav_Spear_Yari_Cavalry",
--[COORDINATES]--
-44.0, -124.0,
--[ID]--
"Great Guard",
--[USE_COMMAND_QUEUE]--
true)
scripting.game_interface:create_force(--[FACTION]--
current_dopshogun,
--[SPECIFIC ARMY LIST]--
"Heavy_Ship_Nihon_Maru,Light_Ship_Bow_Kobaya,Light_Ship_Bow_Kobaya",
--[COORDINATES]--
-64.0, -130.5,
--[ID]--
"Epic Ship",
--[USE_COMMAND_QUEUE]--
true)
end
How can I make this deliver when the human faction owns a particular region?