Page 2 of 2 FirstFirst 12
Results 21 to 30 of 30

Thread: How to create custom missions

  1. #21

    Default Re: How to create custom missions

    Note that "research" is not functional, but "research_technology" is.

  2. #22
    Dee Jay's Avatar I'm gone....
    Join Date
    May 2010
    Location
    Australia
    Posts
    892

    Default Re: How to create custom missions

    Yeah it is awesome, finally some of the wicked modders out there are sharing what they know with the public, YAY

  3. #23

    Default Re: How to create custom missions

    Where do you put the script?

  4. #24

    Default Re: How to create custom missions

    It is depending on the campaign. For coalition campaign it is mp_eur_napoleon folder.




  5. #25

    Default Re: How to create custom missions

    Ok thanks.

  6. #26

    Default Re: How to create custom missions

    There is one part I cannot quite pick up from this tutorial. How do I *force* a mission to be started? For example, suppose I want the mission to occur at turn 10, no matter what else is going on. Also, is there related information about dilemmas? I am interested in adding missions and dilemmas for TW: Shogun 2, but I arrived here because of the script-o-rama link from the S2 forum.

    (EDIT: figured this out after some time. To start a mission on a turn, use OnFactionTurnStart, and check the turn number. In campaigns/jap_shogun/scripting.lua, each clan has a mission which starts on turn 2. Regarding dilemmas, there is no apparent way to mod them using lua, but I have written a tutorial on how to create them using the database files.)
    Last edited by davidlallen; August 17, 2011 at 09:21 AM.

  7. #27

    Icon12 Re: How to create custom missions

    Great job! Keep it up!

  8. #28

    Default Re: How to create custom missions

    If there is any modder left around, I appreciate your help.

    For example, can I add missions for Ottomans as it was non playable at the beginning?

    What I did basically, I added these lines under ''-- POSITIONS THE STARTING CAMERA APPROPRIATELY IN MP CAMPAIGNS DEPENDING ON THE CURRENT FACTION''

    Spoiler Alert, click show to read: 
    PHP Code:
    if conditions.FactionName("ottomans"context) and conditions.FactionIsHuman("ottomans"contextthen            scripting.game_interface:trigger_custom_mission("ottomans_take_little_tatary"
                                                        
    "ottomans""capture_city"0"eur_little_tatary"
                                                        
    ""
                                                        
    "",
                                                        
    ""2500"ottomans"context,
                                                        
    false"")
            
    end 


    Mission was issued at the beginning of the game, I took the Little Tatary and my faction is destroyed and I lose the game somehow. What should be the reason?

    Other question is; Is there someway to add missions randomly so that they appears?

    or should I also use these lines to define the turn:

    Spoiler Alert, click show to read: 
    PHP Code:
        if conditions.TurnNumber(context) == 1 then
            out
    .ting ("Turn 1"
    Last edited by AmiR TimuR; December 17, 2017 at 01:22 PM.

  9. #29

    Default Re: How to create custom missions

    I solved everything and all works fine.

    However ''make_trade_agreement'' somehow doesn't work. Mission appears but although you make a trade agreement with a faction, mission is not completed. Don't know why.

  10. #30

    Default Re: How to create custom missions

    This is a huge necro, but I've come from the S2 Script-o-rama, and I'm wondering if it's possible for me to make the reward a change of name?

Page 2 of 2 FirstFirst 12

Posting Permissions

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