Logo Platform
logo amplifiers simplified

Adding Bonuses to Ships Created at a Specific Star System

Reply
Copied to clipboard!
7 years ago
Aug 23, 2018, 1:02:34 PM

I am wondering if it is possible to have a star system improvement add permanent bonuses, such as damage, to ships created at the star system where said improvement was built.

0Send private message
7 years ago
Aug 23, 2018, 11:22:49 PM

Well, a lot of the military system improvements do that type of stuff already by giving ships built in that system bonus experience, which increases their damage and health (for example, StarSystemImprovementShip1). Racial modifiers edit ship stats as well, across the entire empire, obviouly, by using a different path. As long as you use some variant of "./ColonizedStarSystemStateColony,ClassColonizedStarSystem/ClassGarrison", that should do what you want.

0Send private message
7 years ago
Aug 24, 2018, 8:16:30 PM

Unfortunately doing it that way only adds to whatever stat to the ship while it is in the hanger, once it is put into a fleet it loses the bonus. Probably requires a different approach then, assuming it is possible in the first place.

Updated 7 years ago.
0Send private message
7 years ago
Aug 25, 2018, 12:49:37 AM

Hm, if I toss together how racial modifiers modify ships (keyword "/ClassShip", example 

path="ClassEmpire/ClassColonizedStarSystem/ClassGarrison/ClassShip"), and how system improvements modify ships (see above), my next attempt would be something in along the lines of


<Modifier TargetProperty="Damage" Operation="Percent" Value="0.25"  Path="./ColonizedStarSystemStateColony,ClassColonizedStarSystem/ClassGarrison/ClassShip"/>


Can't check it at the moment but would that work?

Updated 7 years ago.
0Send private message
7 years ago
Aug 26, 2018, 8:30:45 AM

No, still causes the ships to only gain the bonus damage while it is in the hanger and not when added to a fleet.


I am thinking I might have forward the property to ClassColonizedStarsystem to get things to work the way I want them to, not sure on that though.

Updated 7 years ago.
0Send private message
7 years ago
Aug 26, 2018, 12:16:04 PM

The issue here is not the path, but that the modifier applied by those XP on construction improvements is unique: ExperienceAtShipCreation. The bad news is that as far as I can tell from a search, this is handled by code and not in the xmls; MonAmiral could confirm.

Updated 7 years ago.
0Send private message
7 years ago
Aug 26, 2018, 2:10:38 PM

That is what I was thinking to be the case but wanted to gather more information on the matter. Unfortunate, but perhaps sometime in the future the capability to do what I would like to do will be added.

0Send private message
0Send private message
7 years ago
Aug 27, 2018, 4:17:42 PM
MonAmiral wrote:

Hey folks,


This would have to be implemented in code and isn't possible with a mod. Sorry!

Okay, thanks for the confirmation on that. Was not sure if there was anything that had been implemented other than granting experience at ship creation to hook into.






Updated 7 years ago.
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message