Infinite research and entity health

Place to get help with not working mods / modding interface.
Post Reply
vedrit
Filter Inserter
Filter Inserter
Posts: 292
Joined: Sun Aug 03, 2014 2:25 am
Contact:

Infinite research and entity health

Post by vedrit »

Hi all, in my mod - Alien Walls - players can complete research to increase the health of the mods walls. As it is, I only have a few levels of research and a script that auto-generates entities for the related research levels. But I've gotten a few requests to implement infinite research, and I have no issue against it, except that I don't know how I could practically implement it. I can't have an infinite number of entities, obviously.
I've thought about separating the base wall health and the regenerative part, similar to how the Turret Shield does things, but I don't really understand how that mod does it.
So, once again I am asking for your support :P

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Infinite research and entity health

Post by DaveMcW »

Pick a reasonable number of upgrades, say 30. Then use exponential cost scaling so it is almost impossible to reach the last upgrade.

The exact details for what happens when someone does reach 30 are up to you. You can either use 30 non-infinite techs, or have an infinite tech that does nothing.

vedrit
Filter Inserter
Filter Inserter
Posts: 292
Joined: Sun Aug 03, 2014 2:25 am
Contact:

Re: Infinite research and entity health

Post by vedrit »

I could, but... that seems to me to be a bit of a cop-out.

Post Reply

Return to “Modding help”