Results 1 to 6 of 6

Thread: changing missions date conditions

  1. #1

    Default changing missions date conditions

    Hello everyone! I open this post to see if it is possible to change the deadline for each mission playing with the faction France in the European campaign. For example, "conquer Vienna before December 1805 from Berlin before December 1806 Warsaw before December 1807 until December 1808 and Madrid before Moscow in December 1812"

  2. #2

    Default Re: changing missions date conditions

    Sorry the bad english.

    conquer:
    - Vienna before December 1805
    - Berlin before December 1806
    - Warsaw before December 1807
    - Madrid before December 1808
    - Moscow before December 1812

    This is the deadline for each mission that I want.

    Saludos desde Argentina

  3. #3
    Frunk's Avatar Form Follows Function
    Artifex

    Join Date
    Jun 2009
    Location
    Gold Coast
    Posts
    6,506

    Default Re: changing missions date conditions


  4. #4
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: changing missions date conditions

    Go to data campaign_maps, you'll see each campaign. Open scripting.lua with notepad.

    Change the missions conditions.

  5. #5

    Default Re: changing missions date conditions

    Example Mission 1:

    \data\campaigns\eur_napoleon\scripting.lua

    --
    -- SETTING UP MISSIONS AND BOOLEAN CONDITIONS
    --

    --
    -- Mission 1 - The Fall of Austria --
    --

    local function take_vienna()
    out.ting ("The Fall of Austria")
    scripting.game_interface:trigger_custom_mission("eur_take_vienna",
    "france", "capture_city", 0, "eur_austria",
    "mission_text_text_eur_france_capture_vienna_heading",
    "mission_text_text_eur_france_capture_vienna_text",
    "mission_text_text_eur_france_capture_vienna_reward", 0, "", context,
    false,"money:2000")
    end

    local BOOL_vienna_taken = false -- Has Austria fallen?
    Which variable should I modify? I do not see in which option it appears "to finish before ..."

    First of all thank you very much for the answer.

  6. #6
    Steph's Avatar Maréchal de France
    Patrician Artifex

    Join Date
    Apr 2010
    Location
    Pont de l'Arn, France
    Posts
    9,174

    Default Re: changing missions date conditions

    Command: trigger_custom_mission
    Description: Start a player mission
    Usage: trigger_custom_mission("custom_id", "faction_key", "mission_type", turn_limit, "param", "heading_key", "description_key", "reward_key", reward_money, "reward_faction_key", context_if_avaliable, immunity_to_resistance)

    Turn limit seems to be the "0" here.


    Try changing this and see the effect

Posting Permissions

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