Jim-NC wrote:Welcome to the forums MarshalJean. :wavey:
I personally don't use the console, but add things via a script. I would place my additional scripts at the end of the French file as your playing France (FRA events.sct) or in a disposable script file. If you place them in the FRA events, then every game you play will use those scripts. If you place them in the disposable script file, then you can control easier which scripts you add/remove when. The disposable script would have to be added as a line in the 1850 GC.sct file or other appropriate file (you didn't say which scenario you are playing).
MarshalJean wrote:Thanks for the quick reply, Jim-NC! Glad to be here!
Honestly, I'm not sure how to do any of what you said. What I tried to do as an experiment was go to VGN/FRA Events folder, which opens up with WordPad. I then scrolled all the way to the bottom and entered this:
SelectFaction = $FRA
SelectRegion = $Ile de France
StartEvent = evt_nam_FRA_NapoleonicFame1855|1|2|evt_txt_FRA_NapoleonicFame1855|Event-img_FRA_ManDecember1851|$Ile de France|NULL
Conditions
MinDate = 1855/01/01
MaxDate = 1855/02/01
Probability = 99
Actions
DescEvent = evt_desc_FRA_NapoleonIIIFameSpreads1855
ChgPopContent = 60
EndEvent
I chose to name the event Napoleonic Fame and I told the program to show Louis-Napoleon's picture from the Man of December event. Since my current playing date in the game is late July, 1855, I thought that by setting the min date at 1855/01/01 and the max date at 1855/02/01 the event would automatically launch after advancing the game from late July. But nothing showed up at all.
Again, this is my first time to try anything like this, so I'm sure I'm doing a whole lot of things wrong. Any help would be appreciated.
Thanks!
MarshalJean
HerrDan wrote:First of all, welcome to the forums MarshalJean
It didn't happened simply because the maxdate has passed, so it will not happen anymore, you must put the maxdate to a date in the future, so it's chances of happening are greater (as the chance is for each turn), in your case 99%, you just need to put the date to 1855/08/15 or to be more generic 1900/01/01, just to use an example, the maxdate isn't very important as long as it's in the future and the chances are good, in your case there isn't any chance of it not firing if it's, for instance 1860/01/01.
MarshalJean wrote:Thanks for the help, HerrDan! It definitely fired! The problem was, I didn't write the syntax in such a way that all of my regions received the Contentment boost...just Ile de France. So now I need to know how to apply it to all of them.
Learning as I go...thanks for your great help!
MJ
HerrDan wrote:You're welcome, if you can, report here if it worked, it's good for the players community to have this kind of feedback.
HeerDan
loki100 wrote:After actions, add
SelectRegion = ?????
The stuff at the top is just to guide the code, but you need to tell it what and where in the 'actions' part of the script, there are a few pitfalls to the PoN syntax (I know, I've been in most of them). One solution is to go over the existing event files till you find one that does something similar to what you want and then adapt.
You don't need the conditions, so delete that (I don't use them for events I simiply want to work once). Also change the name to NapoleonicFame1855a or simlar, its quite likely the current name is now stored as having fired once (as per your instructiions)
MarshalJean wrote:Well, my friends. I'm at a loss. Although the event fires, none of the effects of bringing up contentment actually work. I've tried several variations of complexity in the syntax. Loki, I tried your "area" idea, using the area names in the area database files, and it didn't work. HerrDan, I tried your idea of adding a SelectRegion line for each region, and I tried about six regions at once, and it didn't work. And this last time, I went very simple. Here is what I entered this last time:
SelectFaction = $FRA
SelectRegion = $Sologne
StartEvent = evt_nam_FRA_NapoleonicFame1855|1|2|evt_txt_FRA_Napoleon_the_III_fame_spreads!1855|Event-img_FRA_ManDecember1851|$Ile de France|NULL
Conditions
MinDate = 1855/01/01
MaxDate = 1855/09/01
Probability = 99
Actions
DescEvent = evt_desc_FRA_NapoleonIIIFameSpreads1855
ChgPopContent = 100
EndEvent
But for some reason, the command ChgPopContent is not working at all. I got this command syntax from the AGEOD modding wiki, but it is not working. Any ideas out there on adding a script to improve contentment? (I just can't seem to make these Frenchmen happy, no matter how well I manage the market!)
Thanks in advance!
MJ
HerrDan wrote:Looking at your event, below actions you need to tel what actions to take and where, the SelectRegion line at the start of the event is all but irrelevant, but below actions is where you need to write what must be done.
MarshalJean wrote:Thanks, gents! I just tried it again with the SelectRegion line in the Action paragraph and it worked! Now, unless I figure out how to make it happen in many places at once, I just have to re-run the event a million times!
MJ
HerrDan wrote:Yes, always something like this:
SelectFaction = $FRA
SelectRegion = $anywhereyouwant
loki100 wrote:actually, to be combine being pedantic, pointless and annoying, you don't
all you need at the top is Selectfaction..Tthis will basically determine which game log the event appears in, so use CMN (ie it will appear in all the logs) or your own faction ... only really relevant in MP of course. You can then skip to 'startevent'. I think the region at the top is either a legacy of an older AGE scripting approach or simply for housekeeping, but it has no impact on how the event works.
SelectFaction = $CMN
SelectRegion = $Anglia
StartEvent = Minor_Contentment_Increase_1884|1|1|NULL|NULL|$Anglia|NULL
Conditions
Actions
SelectFaction = $GUA
SelectRegion = $PETEN
ChgPopContent = 15
SelectRegion = $IZABAL
ChgPopContent = 15
SelectFaction = $HON
SelectRegion = $SAN PEDRO SULA
ChgPopContent = 55
SelectRegion = $TRUJILLO
ChgPopContent = 55
SelectRegion = $TEGUCIGALPA
ChgPopContent = 55
SelectFaction = $NIC
SelectRegion = $CORINTO
ChgPopContent = 55
SelectRegion = $MANAGUA
ChgPopContent = 55
SelectFaction = $COS
SelectRegion = $GUANACASTE
ChgPopContent = 55
SelectRegion = $LIMON
ChgPopContent = 55
SelectRegion = $SAN JOSE
ChgPopContent = 55
SelectFaction = $VEN
SelectRegion = $CORO
ChgPopContent = 30
SelectRegion = $CARACAS
ChgPopContent = 55
SelectFaction = $URU
SelectRegion = $RIVERA
ChgPopContent = 55
SelectRegion = $PAYSANDU
ChgPopContent = 55
SelectRegion = $COLONIA
ChgPopContent = 55
SelectRegion = $MONTEVIDEO
ChgPopContent = 55
SelectRegion = $BENTOS
ChgPopContent = 55
SelectFaction = $SWI
SelectRegion = $SVIZZERA
ChgPopContent = 55
SelectRegion = $SCHWEIZ
ChgPopContent = 55
SelectRegion = $SUISSE
ChgPopContent = 55
SelectFaction = $OFS
SelectRegion = $KIMBERLEY
ChgPopContent = 55
SelectRegion = $PHILIPPOLIS
ChgPopContent = 55
SelectRegion = $BLOEMFONTEIN
ChgPopContent = 55
SelectFaction = $TRV
SelectRegion = $KLERKSDORP
ChgPopContent = 55
SelectRegion = $WINBURG
ChgPopContent = 55
SelectRegion = $LYDENBURG
ChgPopContent = 55
SelectRegion = $MOSEGA
ChgPopContent = 55
SelectRegion = $THOBOYANDU
ChgPopContent = 55
EndEvent
MarshalJean wrote:Just an update:
The script that I used that finally worked across France in one fell swoop was this:
SelectFaction = $FRA
StartEvent = evt_nam_FRA_NapoleonicFame1855a|1|2|Napoleon III's fame spreads throughout France!1855|Event-img_FRA_ManDecember1851|$Ile de France|NULL
Actions
DescEvent = evt_desc_FRA_Napoleon_the_III_fame_spreads!1855
SelectRegion = $Sologne
ChgPopContent = 100
SelectRegion = $Bretagne
ChgPopContent = 100
SelectRegion = $Normandie
ChgPopContent = 100
SelectRegion = $Sarthe
ChgPopContent = 100
SelectRegion = $Loire
ChgPopContent = 100
SelectRegion = $Vendee
ChgPopContent = 100
SelectRegion = $Charente
ChgPopContent = 100
SelectRegion = $Aquitaine
ChgPopContent = 100
SelectRegion = $Bearn
ChgPopContent = 100
SelectRegion = $Midi
ChgPopContent = 100
SelectRegion = $Picardie
ChgPopContent = 100
SelectRegion = $Nord
ChgPopContent = 100
SelectRegion = $Artois
ChgPopContent = 100
SelectRegion = $Anjou
ChgPopContent = 100
SelectRegion = $Nivernais
ChgPopContent = 100
SelectRegion = $Limousin
ChgPopContent = 100
SelectRegion = $Auvergne
ChgPopContent = 100
SelectRegion = $Champagne
ChgPopContent = 100
SelectRegion = $Bourgogne
ChgPopContent = 100
SelectRegion = $Franche_Comte
ChgPopContent = 100
SelectRegion = $Ardennes
ChgPopContent = 100
SelectRegion = $Alsace
ChgPopContent = 100
SelectRegion = $Lorraine
ChgPopContent = 100
SelectRegion = $Vosges
ChgPopContent = 100
SelectRegion = $Meuse
ChgPopContent = 100
SelectRegion = $Rhone
ChgPopContent = 100
SelectRegion = $Dauphine
ChgPopContent = 100
SelectRegion = $Savoie
ChgPopContent = 100
SelectRegion = $Basses_Alpes
ChgPopContent = 100
SelectRegion = $Languedoc
ChgPopContent = 100
SelectRegion = $Provence
ChgPopContent = 100
SelectRegion = $Corse
ChgPopContent = 100
EndEvent
As was stated by loki, the SelectRegion command was not needed at the top, but was obviously needed for each change of population contentment in the Action paragraph. Thanks a lot, guys, for all of your help. I've learned a lot through this process.
MarshalJean
HerrDan wrote:You're welcome.
But isn't 100 contentment a bit too much for France in the 1850s? You might end up a bit bored by the lack of challenge
MarshalJean wrote:Indeed, you're probably right, HerrDan. I'm still just learning so much about this game and how it works that I've certainly over-nerfed things. And, as I learn how to use the modification scripts, I'll be able to make things play out more historically. It's about learning right now. Thanks!
Users browsing this forum: No registered users and 39 guests