Okay im having trouble trying to get the siege cannon to first be researched before you can build it but the game desks when i tried this, if anyone knows how plz explain.
Okay im having trouble trying to get the siege cannon to first be researched before you can build it but the game desks when i tried this, if anyone knows how plz explain.
You would make the research like a "tech", i.e. with no target. Or rather, it has a target, but no UpgradeName, the target is simply so the UI knows what icon to show it under.
Example (Based on the hiigs' destroyer tech):
Then, in the research prerequisites of the siege cannon subsystem, you add that research.Code:{ Name = "SiegeTech", RequiredResearch = "", RequiredSubSystems = "Research | AdvancedResearch & CapShipProduction", Cost = 1500, Time = 90, DisplayedName = "Siege Cannon Technology", DisplayPriority = 3, Description = "Enables construction of siege cannons", TargetName = "Hgn_SiegeCannon", Icon = Icon_Tech, ShortDisplayedName = "Siege Cannons", },
Example (Based on the Vaygr Hyperspace module):
Code:{ Type = SubSystem, ThingToBuild = "Hgn_SiegeCannon", RequiredResearch = "SiegeTech", RequiredShipSubSystems = "", DisplayPriority = 20, DisplayedName = "Siege Cannon", Description = "Insert description here" },
Destroying things is easy.
Creating things is hard.
Creating things in order to watch them explode is just plain fun.
Explosion Damage Script, Scripting Tutorial
There are currently 1 users browsing this thread. (0 members and 1 guests)