DoppioConPanda
Chieftain
I've tried not to post her for a while because my previous posts were solved by things as simple as reading back through my code. This, on the other hand, is a concept I'm wholly unfamiliar with and my searches have been fruitless.
So far, this is the code I have, and it does function as intended so far (haven't decided on yield yet) but because there is no resource being used, ART_DEF_IMPROVEMENT_FISHING_BOATS results in an empty, albeit improved, tile.
No error, no problem per se, just, no visuals. I just want it to use the Fish (as in the bonus resource) tile improvement animation. The best idea I have so far is to make a Lua script that places fish on the tile while the improvement exists and removes it when the tile is pillaged. But uh, I don't really know lua all that well. Is there a smarter way to do this?
So far, this is the code I have, and it does function as intended so far (haven't decided on yield yet) but because there is no resource being used, ART_DEF_IMPROVEMENT_FISHING_BOATS results in an empty, albeit improved, tile.
Spoiler :
Code:
INSERT INTO Improvements (Type, Description, Civilopedia, ArtDefineTag, Water, NoTwoAdjacent, PillageGold, DestroyedWhenPillaged, PortraitIndex, IconAtlas)
VALUES ('IMPROVEMENT_DEEP_SEA_FISHERS',
'TXT_KEY_IMPROVEMENT_FISHING_BOATS',
'TXT_KEY_CIV5_IMPROVEMENTS_FISHINGBOATS_TEXT',
'ART_DEF_IMPROVEMENT_FISHING_BOATS',
1,
1,
10,
1,
23,
'TERRAIN_ATLAS');
INSERT INTO Builds (Type, PrereqTech, ImprovementType, Description, Help, Kill, Water, EntityEvent, HotKey, OrderPriority, HotKeyPriority, IconIndex, IconAtlas)
VALUES ('BUILD_DEEP_SEA_FISHERS',
'TECH_PLASTIC',
'IMPROVEMENT_DEEP_SEA_FISHERS',
'TXT_KEY_BUILD_FISHING_BOATS',
'TXT_KEY_BUILD_CONSUMED_HELP',
1,
1,
'ENTITY_EVENT_BUILD',
'KB_F',
98,
1,
35,
'UNIT_ACTION_ATLAS');
INSERT INTO Improvement_ValidTerrains (ImprovementType, TerrainType)
VALUES ('IMPROVEMENT_DEEP_SEA_FISHERS', 'TERRAIN_OCEAN');
No error, no problem per se, just, no visuals. I just want it to use the Fish (as in the bonus resource) tile improvement animation. The best idea I have so far is to make a Lua script that places fish on the tile while the improvement exists and removes it when the tile is pillaged. But uh, I don't really know lua all that well. Is there a smarter way to do this?
Last edited: