Help needed - hint enough.

Hello professional modders of the universe,

I have studied the modding for about a day(practically 4-5 hours, actually) and wanted to implement some ideas I have, but need some helping hand or just a hint on...

Well, for example, one idea is that whenever a crystal extractor is destroyed, the base production would decrease by 5% - for example, clean one is 0.4/sec, once destroyed and rebuilt is 0.38/sec, two times destroyed is 0.36/sec and so on.

I guess I would need to create a new 'ability' for every destruction event, which would be implemented upon *resourcecrystal*.entity(something like that) file, which in turn would give it's 'bonuses' to the *planetmodulecrystalextractor*(something like that).entity? Or any other way?

And is there any way to have a player without a capital?

Thanks in advance.

14,090 views 8 replies
Reply #1 Top

Well, for example, one idea is that whenever a crystal extractor is destroyed, the base production would decrease by 5% - for example, clean one is 0.4/sec, once destroyed and rebuilt is 0.38/sec, two times destroyed is 0.36/sec and so on.

You need to make a new ability to the crystal extractor. This ability will apply a buff to the crystal extractor, and this buff will apply a buff to the planet it orbits on death. The buff on the planet will have a periodic action that attempts to apply a buff to resource extractors every few seconds. This buff will decrease resource production by 5%. Just make sure to give all these buffs but the first one a high stacking limit like say 99 and set allowFirstSpawnerToStack to false.

The only problem with this is that A. This debuff will apply to all resource extractors, not just future extractors or the one destroyed, and not just crystal extractors. It would also apply to metal extractors. However, if you can get this working I can tell you how to get around that restriction.

That said, one problem with this ability is that it can only be done with that periodic action on the planet, and all else being equal you want to avoid using a lot of them since in large numbers they will lag the game. Still if this is important to you it will work.

You might find this helpful for figuring out the syntax for all of this.

Reply #2 Top

And is there any way to have a player without a capital?

There is a Vasari loyalist technology that does just this...it's a tier 5 technology in the empire tech tree called mobile rulership...as long as the player has a titan, capital ship, or starbase, they are considered to have a capital as far as the Capital Victory game mode is concerned...

This may or may not be exactly what you are looking forward, but it is the closest and cleanest mechanism...

Reply #3 Top

Quoting Seleuceia, reply 2


And is there any way to have a player without a capital?

There is a Vasari loyalist technology that does just this...it's a tier 5 technology in the empire tech tree called mobile rulership...as long as the player has a titan, capital ship, or starbase, they are considered to have a capital as far as the Capital Victory game mode is concerned...

This may or may not be exactly what you are looking forward, but it is the closest and cleanest mechanism...

Technically you can make a custom map where the player has planets but not a capital. All the planets have minimum allegiance as a result but it is possible. I'm not sure what happens on those kind of maps if you use capital victory however...

Reply #4 Top

Quoting GoaFan77, reply 3
'm not sure what happens on those kind of maps if you use capital victory however...

I made a map like this awhile ago (Everyone started with a fleet and a dead asteroid and would fight with the fleets they had until a victor was decided) and found out that everyone lost on startup in both Capital and Flagship victory modes.

My guess (and this is simply a guess) is that without a capital you have already met the requirements for losing. Similarly, without a capital your flagship doesn't know where to spawn, leaving you without a flagship and, again, losing due to the game type requirements.

Reply #5 Top

Quoting Seleuceia, reply 2


And is there any way to have a player without a capital?

There is a Vasari loyalist technology that does just this...it's a tier 5 technology in the empire tech tree called mobile rulership...as long as the player has a titan, capital ship, or starbase, they are considered to have a capital as far as the Capital Victory game mode is concerned...

This may or may not be exactly what you are looking forward, but it is the closest and cleanest mechanism...

Is this somehow verified? Or its just assumption. 

Reply #6 Top

Quoting Timmaigh, reply 5


Quoting Seleuceia, reply 2

And is there any way to have a player without a capital?

There is a Vasari loyalist technology that does just this...it's a tier 5 technology in the empire tech tree called mobile rulership...as long as the player has a titan, capital ship, or starbase, they are considered to have a capital as far as the Capital Victory game mode is concerned...

This may or may not be exactly what you are looking forward, but it is the closest and cleanest mechanism...

Is this somehow verified? Or its just assumption. 

It's in the description of the tech. And I know they've survived without just a titan.

+1 Loading…
Reply #7 Top

Well I know from experience that stripping your HW and losing your titan don't bring you defeat (when capital victory on) cause a player I was in game with did just that....I'm pretty sure they lost their cap too earlier on, but they did have an SB...

So in the strictest sense, it would seem SBs work for sure, but the modifier implies its any titan, cap, or SB...

Reply #8 Top

Quoting GoaFan77, reply 6


Quoting Timmaigh, reply 5

Quoting Seleuceia, reply 2

And is there any way to have a player without a capital?

There is a Vasari loyalist technology that does just this...it's a tier 5 technology in the empire tech tree called mobile rulership...as long as the player has a titan, capital ship, or starbase, they are considered to have a capital as far as the Capital Victory game mode is concerned...

This may or may not be exactly what you are looking forward, but it is the closest and cleanest mechanism...

Is this somehow verified? Or its just assumption. 

It's in the description of the tech. And I know they've survived without just a titan.

 

I thought the description implies that this tech concerns the titan only, not SBs or capships. Since it says "your rulers relocate to your titan etc..." or something along those lines.

But i recall another thread on this topic recently, but it kinda went unresolved, so i was curious, whether there is some conclusion about this.

EDIT: OK, i gave it a try, stripped homeworld, scuttled titan, all my capships and all starbases and only then i suffered capital defeat. While it sort of makes sense and its an advantage to VL player, it makes the Vorastra little less special.