Zagaroth
Chieftain
- Joined
- Nov 27, 2009
- Messages
- 60
I am creating a music focused civilization with a somewhat whimsical/fantastical element to it, and I want the leader trait to include granting a promotion to all units upon creation of a great work of music. I think I know all the things I need to call upon, but I'm having a bit of trouble getting all the parts assembled correctly.
So, I know my modifier will have a collection type of Player_Units, and will have an effect type of "EFFECT_ADJUST_UNIT_GRANT_EXPERIENCE", and that the argument should have a value of '-1' to grant exactly 1 level (per the Terracotta Army wonder).
I think I want RunOnce to be set to 0 (because I want it to happen every time a great work of music is created), and Permanent to be set to 1 (since the bonus never goes away).
Now, I'm looking to trigger this off of Event.GreatWorkCreated with a value of GREATWORKOBJECT_MUSIC, and I think I do that off of Owner/SubjectRequirementSetId, but my brain has decided to fry over parsing how to get that all working, it looks like I need to work down 2 or 3 more steps to get it laid out correctly, I'm just not sure how to lay this all out.
All suggestions welcome! For all I know there is a much easier way to do this that I am just missing.
So, I know my modifier will have a collection type of Player_Units, and will have an effect type of "EFFECT_ADJUST_UNIT_GRANT_EXPERIENCE", and that the argument should have a value of '-1' to grant exactly 1 level (per the Terracotta Army wonder).
I think I want RunOnce to be set to 0 (because I want it to happen every time a great work of music is created), and Permanent to be set to 1 (since the bonus never goes away).
Now, I'm looking to trigger this off of Event.GreatWorkCreated with a value of GREATWORKOBJECT_MUSIC, and I think I do that off of Owner/SubjectRequirementSetId, but my brain has decided to fry over parsing how to get that all working, it looks like I need to work down 2 or 3 more steps to get it laid out correctly, I'm just not sure how to lay this all out.
All suggestions welcome! For all I know there is a much easier way to do this that I am just missing.