Events in Final Frontier

renegadechicken

Warlord
Joined
Aug 12, 2007
Messages
227
Location
Civ II Verne Scenario
As I "announced" (if it could be called that...I think three people know about it! :) ) a few months ago, I'm trying to bring some events to the Final Frontier mod that shipped with BtS. However, I'm fairly new to events, and I have a question specific to modding Final Frontier.

I was wondering if anyone could tell me how to update plot yields? More specifically, I want to be able to add, for example, +1 :food: or +1 :gold: to a certain planet type in a system through an event. First, I need to check if the system has such a planet (I'm thinking the orange/gas giant one) and then be able to update it's yield according to the choices the player makes for the event. Is this possible? If so, please explain how (remember, I'm new to this!). Thanks in advance! :)

Edit: I just remembered another question: is there any way to trigger an event upon founding a city? Or, if that's not possible, to have events triggered on a city that's only size 1 (and not any larger)? Thanks again!
 
Hey, I can answer your questions.
To update plot fields you need to look up the appropriate XML files (it is pretty self explainable when you see them in the Assets folder). I think the systems are all random models, and so do not actually intervene with playing mechanics, so in that regard you might have to do some re-organizing and/or re-modeling in order to get it the way you want. With events which are triggered on settlement, I believe that may be more of a Python thing rather than XML, so I can't help you there.
 
Hi people, talking about events in FF, well, I havent tried making events with XML, but the last days I have been learning Python and modding such files for final frontier.

In the CvFinalFrontierEvents.py there is a function that gets triggered in the event of founding a city/system: onCityBuilt

And about changing Yields to the planets, I believe you also have to do it in python, I haven't look into that, but I'm pretty sure that a planet's yield is defined and can be modified in python.
 
Thank you both for your answers! Sadly, I figured that Python was the way I needed to do it, but I don't know how; that's what I was asking. :) However, good find Premier Valle on the "onCityBuilt" def! If I can figure out Python, I'll be able to implement some of my more complex events now. :)
 
Well, good luck with whatever you do work on! If you need help, I may be able to assist on XML. Unfortunately, I know no Python.
 
Back
Top Bottom