epaminondas
Colonel
Posts: 362
Joined: Thu Feb 08, 2007 9:35 pm

Stumped

Sat Mar 22, 2014 10:00 am

I've been trying for longer than I care to admit to expand Austria's buildable number of forts. I started by adding this to the Plugin_1850GC file,

SelectFaction = $AUS
SelectRegion = $Oesterreich
StartEvent = Austria announces new defence initiative (1875)|1|1|NULL|NULL|NULL|NULL

Actions
SelectFaction = $AUS
DescEvent = Austria announces new defence initiative
ChangeStrucPool = $AUS_Fort;20

EndEvent


It had no effect. After inummerable tweaks to every line continued to reap no rewards I spat the dummy and decided to add them individually by event and tried this with,

SelectFaction = $AUS
SelectRegion = $Cetinje
StartEvent = Fort built in Cetinje|1|1|NULL|NULL|$Cetinje|NULL

Actions

SelectFaction = $AUS
SelectRegion = $Cetinje

CreateStruc
SetType = #Fort1
SetName = Fort Cetinje
Apply

EndEvent


Still no joy. Obviously I'm doing something wrong but I have no idea what.
Any and all advice will be appreciated.

User avatar
loki100
AGEod Guard of Honor
Posts: 2401
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Sat Mar 22, 2014 11:35 am

I *think* your answer is simple.

Don't use the plugin file as the location - all that does is to tell the game engine which event files to read.

What I've done is to add a new event file - called 'use and remove', add the link to use_and_remove.Sct in the plugin file. I then put all the scripts I simply want to run once into that file, let them happen and then delete. This avoids creating a problem for a future game (in that it might fire when I didn't want it to) and means you don't add to the processing time.

If you don't want to create a new event file, then simply add your text to the bottom of one of the Austrian event files in the game.
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

epaminondas
Colonel
Posts: 362
Joined: Thu Feb 08, 2007 9:35 pm

Sat Mar 22, 2014 12:56 pm

No joy I'm afraid. Added the extra forts text as above to the end of AUS Events - played a turn - fort build tile still red. Man this is a tough gig.

User avatar
loki100
AGEod Guard of Honor
Posts: 2401
Joined: Sun Aug 14, 2011 4:15 pm
Location: Caithness
Contact: Website Twitter

Sat Mar 22, 2014 3:56 pm

epaminondas wrote:No joy I'm afraid. Added the extra forts text as above to the end of AUS Events - played a turn - fort build tile still red. Man this is a tough gig.


damn

ok, here's another guess, my instinct is that 'ChangeStrucPool = $AUS_Fort;20' doesn't add 20 basic forts, it sets the limit at 20. Maybe try 200 and see if that works? If it does then redo to a more sensible number.

Some of this is not very intuitive (as I found out the hard way), so its a case of sometimes opting for a very extreme position to be sure it works, and then opting for a more sensible outcome.

Should add, I personally think the relatively low pool for fort1 is WAD, otherwise, especially in the colonies you can spam them and the autogarrison then removes all the (frustrating) sport of a good colonial war ... :)
AJE The Hero, The Traitor and The Barbarian
PoN Manufacturing Italy; A clear bright sun
RoP The Mightiest Empires Fall
WIA Burning down the Houses; Wars in America; The Tea Wars

epaminondas
Colonel
Posts: 362
Joined: Thu Feb 08, 2007 9:35 pm

Sun Mar 23, 2014 12:03 am

I buy into your reasoning on the need to limit fort building for colonising nations - but Austria is denied the opportunity to start in that race. That really leaves territorial conquest as the only significant avenue to prestige gain and as it gains territory it also gains forts (and other structures) that eat up it's build allowance. Dumping some of the newly acquired forts frees up some room but as most of them now sit in frontier provinces it seems wise to hang on to them.

Thanks for the new thought, that hadn't occurred to me at all. I'll give it a whirl.

User avatar
Jim-NC
Posts: 2981
Joined: Wed Feb 25, 2009 4:21 pm
Location: Near Region 209, North Carolina

Sun Mar 23, 2014 2:35 pm

I believe that in you used # instead of $, and it's not a fort1, it's a fort. I refer you to the CSA events.sct in the events folder. If you search for the word fort, you can find the following (only a part of the script needed):

Code: Select all

SelectFaction = $CSA

  CreateStruc
  SetType = $Fort
  SetLevel = 1
  SetName = Fort Donelson
  Apply
Remember - The beatings will continue until morale improves.
[SIGPIC][/SIGPIC]

epaminondas
Colonel
Posts: 362
Joined: Thu Feb 08, 2007 9:35 pm

Sun Mar 23, 2014 3:10 pm

Okay!!! Thankyou very much indeed. Off to try it now. You've done wonders for mental health Jim.

Return to “Pride of Nations”

Who is online

Users browsing this forum: No registered users and 12 guests