Note that "research" is not functional, but "research_technology" is.
Note that "research" is not functional, but "research_technology" is.
Armee d'Orient NTW | Prussian Mounted Jager NTW | Sapper NTW | US Units ETW | Spanish NTW | Return of the Legions NTW | Ottoman Units NTW | UNIT MODS
Yeah it is awesome, finally some of the wicked modders out there are sharing what they know with the public, YAY
Where do you put the script?
It is depending on the campaign. For coalition campaign it is mp_eur_napoleon folder.
Ok thanks.
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.
Great job! Keep it up!
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:
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:
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?