DreadHerring
Chieftain
- Joined
- Feb 19, 2016
- Messages
- 41
I'm working on a mod that will add Hatshepsut to the game as an alternate leader for Egypt. She was super cool, actually ruled Egypt, and was huge on building projects. Her rule and death oversaw the creation of the Valley of the Kings.
Anyway, I'm looking to create this LA (Leader Ability):
Valley of the Kings -- When Hatshepsut completes a wonder, her empire receives a temporary boost to culture. Completed Wonders generate additional production.
I am looking for the result to be as though I had used a worker to chop something down, but have the yield be culture. Numbers would obviously be subject to change. The second part seems simple enough, but I don't know how to do it yet. Could a wonder generate the aoe effect, as with the Factory?
How do I accomplish this? Will I need LUA, or can I create a new modifier id, modifier, and argument for this effect? I've been looking through the game files, and am using the structure for Montezuma's ability as a starting place, though I don't know if that's even the right thing to do.
I did see in the game files that there are entries to create Triggers.
Could I use this to set the creation of a wonder as the trigger? I really don't know how to structure any of this, all my experience is with XML. Help and ideas are very appreciated!
Anyway, I'm looking to create this LA (Leader Ability):
Valley of the Kings -- When Hatshepsut completes a wonder, her empire receives a temporary boost to culture. Completed Wonders generate additional production.
I am looking for the result to be as though I had used a worker to chop something down, but have the yield be culture. Numbers would obviously be subject to change. The second part seems simple enough, but I don't know how to do it yet. Could a wonder generate the aoe effect, as with the Factory?
How do I accomplish this? Will I need LUA, or can I create a new modifier id, modifier, and argument for this effect? I've been looking through the game files, and am using the structure for Montezuma's ability as a starting place, though I don't know if that's even the right thing to do.
Code:<TraitModifiers> <Row> <TraitType>TRAIT_CIVILIZATION_VALLEY_OF_KINGS</TraitType> <ModifierId>TRAIT_WHATDOIDO</ModifierId> </Row> </TraitModifiers> <Modifiers> <Row> <ModifierId>TRAIT_WHATDOIDO</ModifierId> <ModifierType></ModifierType> </Row> </Modifiers> <ModifierArguments> <Row> <ModifierId></ModifierId> <Name></Name> <Value></Value> </Row> </ModifierArguments>
I did see in the game files that there are entries to create Triggers.
Code:-- Add triggers. CREATE TRIGGER OnKindInsert AFTER INSERT ON Kinds BEGIN UPDATE Kinds SET Hash = Make_Hash(Kind) Where Kind = New.Kind; END; CREATE TRIGGER OnTypeInsert AFTER INSERT ON Types BEGIN UPDATE Types SET Hash = Make_Hash(Type) Where Type = New.Type; END;
Could I use this to set the creation of a wonder as the trigger? I really don't know how to structure any of this, all my experience is with XML. Help and ideas are very appreciated!