-
December 16, 2009, 05:01 AM
#1
Foederatus
Adding Tech via scripting lua?
Just want to know if this is possible. I would like to grant all non player factions all technoligies on startup. I know this can be done via ESF edit. However, I want the solution to be dynamic and change based on whatever faction I choose.
Is it possible and does anyone have an example of the code?
-
September 19, 2010, 09:42 PM
#2
Re: Adding Tech via scripting lua?
The thread is as dead as Empire Total War modding, but from everything I gathered so far it's not possible from lua. The only interfaces exposed seem to be UI/advice and trait/ancillaries system, plus a handful of ad-hoc extra features.
It's easy to give AI massive research bonuses - db/campaign_difficulty_handicap_effects_table does that already even on normal - you just need to change (X, False, research_rate_mod, Y) where X is difficulty level (-1 to 2), and Y is percentage increase in research speed - boost it to 1000 to get almost one invention per turn.
That's not quite what you want, but it's simple and will do most of it. Of course AI probably won't have buildings required for most techs, especially minor nations, a lot more modding would be needed to get that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules