WitchyStella
Chieftain
- Joined
- May 19, 2020
- Messages
- 7
Hey folks! I've tried to create this mod in the past and failed, and figured I'd try again today (knowing more about modding than I did then)
Unfortunately, I still can't seem to get it to work. What I'm trying to do is:
I'm wondering if I'm forgetting something in the beginning of the code, since it seems to just start out of nowhere (I'm still used to xml-modding, I'm just starting with sql), but I haven't seen anything in the sql tutorials I've looked at.
Thanks in advance!
Unfortunately, I still can't seem to get it to work. What I'm trying to do is:
- disable building lumber mills adjacent to each other
- grant lumber mills +1 production for each adjacent forest / rainforest
Code:
UPDATE Improvements
SET SameAdjacentValid = 0
WHERE ImprovementType = 'IMPROVEMENT_LUMBER_MILL';
--
INSERT INTO Improvement_Adjacencies
(ImprovementType, YieldChangeId)
VALUES ('IMPROVEMENT_LUMBER_MILL', 'WS_Lumber_Mill_ProductionForest'),
VALUES ('IMPROVEMENT_LUMBER_MILL', 'WS_Lumber_Mill_ProductionJungle');
--
INSERT INTO Adjacency_YieldChanges
(ID, Description, YieldType, YieldChange, TilesRequired, AdjacentFeature)
VALUES ('WS_Lumber_Mill_ProductionForest', 'Placeholder', 'YIELD_PRODUCTION', 1 1 'FEATURE_FOREST'),
VALUES ('WS_Lumber_Mill_ProductionForest', 'Placeholder', 'YIELD_PRODUCTION', 1 1 'FEATURE_JUNGLE');
I'm wondering if I'm forgetting something in the beginning of the code, since it seems to just start out of nowhere (I'm still used to xml-modding, I'm just starting with sql), but I haven't seen anything in the sql tutorials I've looked at.
Thanks in advance!