Upgradable gun turrets w/coins possible?
Posted: Sat Dec 14, 2019 7:25 pm
Hello,
Is the following possible or feasible? If not, can you suggest a similar idea that would be? I am new to modding Factorio but not new to programming. It has several modding limits, specifically with editing the UI, so I don't want to waste time if what I want to do is not possible. I want to create more interesting defenses like in StarCraft II's "Mineralz".
I want to add an upgrade button to the original ammo-turret UI or create a copy of gun-turret with the added button to its click-UI.
The upgrade button contains preset increases of all stats such as damage and armour. Each turret can be individually upgraded ten times and only one turret can be upgraded to level 10. Each upgrade perhaps changes the ammo-turrets display name/tooltip name to have cool names like "Phase Turret", "Perfect Turret", etc. (I would also do this to the laser turret and walls)
I also want to add two buildings. A "generator" and a "healer". Instead of powering laser turrets with electricity, they would be powered through a "gen" which can be upgraded to be more efficient. It converts electricity to a medium that laser turrets can use. Perhaps the gen could use the laser turrets beam to shoot laser turrets making it look like its powering them. In Starcraft buildings have a "magic" stat that was used to do this. When a turret ran out of magic it stops shooting or does no damage.
The healer, also upgradable, heals nearby buildings.
Thanks for your advice in advance. I am looking at the code of other mods that do UI, such as cyberchest.
Is the following possible or feasible? If not, can you suggest a similar idea that would be? I am new to modding Factorio but not new to programming. It has several modding limits, specifically with editing the UI, so I don't want to waste time if what I want to do is not possible. I want to create more interesting defenses like in StarCraft II's "Mineralz".
I want to add an upgrade button to the original ammo-turret UI or create a copy of gun-turret with the added button to its click-UI.
The upgrade button contains preset increases of all stats such as damage and armour. Each turret can be individually upgraded ten times and only one turret can be upgraded to level 10. Each upgrade perhaps changes the ammo-turrets display name/tooltip name to have cool names like "Phase Turret", "Perfect Turret", etc. (I would also do this to the laser turret and walls)
I also want to add two buildings. A "generator" and a "healer". Instead of powering laser turrets with electricity, they would be powered through a "gen" which can be upgraded to be more efficient. It converts electricity to a medium that laser turrets can use. Perhaps the gen could use the laser turrets beam to shoot laser turrets making it look like its powering them. In Starcraft buildings have a "magic" stat that was used to do this. When a turret ran out of magic it stops shooting or does no damage.
The healer, also upgradable, heals nearby buildings.
Thanks for your advice in advance. I am looking at the code of other mods that do UI, such as cyberchest.