jcb989 wrote:Cavehobbit posted a link to this thread, which I had not read in quite some time. Enric you definitely do a fine job with modifications and also the description of them with documentation, its very nice.
I was wondering of course if you could help me. I need a function with button icon for another Engineer function: Blow Up Bridge.
I think I may try myself but it would probably take me 50 hours to fumble through terra-form and pontoon mash-ups, lol.
Maybe it is something you could knock out fairly quickly if you had a moment.
I was thinking the number of charges and the time (turns) it takes to blow the bridge (how many turns to "lay charges", similar to laying down the pontoon) could be clearly located in the .BSF file such that those could be adjusted to taste for a scenario. I'd actually like to not exclude other structures with the function, if possible. Such that engineers can blow up any physical object in an adjacent hex, such as a house or a fortification.
I've no tried this but I think that modifying my PONTOONS.BSF script could it be done without much changes.
My approach will be, first duplicate the PONTOONS.BSF, change the name, and make changes until you get the functionality.
In the PONTOONS.BSF is defined how many turns (actions) will take to finalize the action: place or remove the object (the pontoon). You can adjust this.
The scripts also creates and invisible object that keep the number of actions made on the objet to be placed or removed. This could be improved putting the data on the object to be removed but you can leave as it is to avoid complications.
The scrip also checks that the tile where you want to make the action, where the engineer will place the pontoon, is WATER. In that case, the new scrip should check that there is a pontoon, or a bridge, or the object you want to blow up in the tile.
To remove and object see the HEDGEROW.BSF there the removed objet is the Hedgerow.
Making scrips for BA always take a lot of time, debugging is near inexistent, and to check variable values, at any point, is very complicated.
I do not discard to create such script action but not in the immediate future, sorry.
HIH