Results 1 to 1 of 1

Thread: Problem with script of spawn army

  1. #1

    Default Problem with script of spawn army

    Hello. I can't get a script work where an army appears in a place in the map and in a certain turn. I don't know what is wrong written in the code. If someone can help me correct it, I will be very grateful.

    Code of scripting.lua file:
    Code:
    local function OnFactionTurnStart(context)
    	if conditions.TurnNumber(context) == 2 then
    		if conditions.FactionName("pun_rome", context) then
      			scripting.game_interface:create_force("pun_rome", "Rom_Hastati,Rom_Hastati,Rom_Hastati,Rom_Principes,Rom_Principes", "pun_celtiberia_numantia", 295, 407, "Rome_Additional_01", true)
    		end
    	end
    end
    Last edited by Miguel_80; December 24, 2017 at 07:22 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •