I have updated pfm to understand the dilemma files as described in this thread, and I have created basic mods such as adding an ancillary as described in this thread. But, I have attempted to create a dilemma mod and was not successful. Can anybody spot what I may have missed?
The key tables appear to be:
dilemmas: defines the dilemma. I have replaced the original table with a shorter table that contains only my single dilemma. This "should" mean that no other dilemmas can ever be chosen besides my own, which makes testing easier.
cdir_events_dilemma_payloads: gives the effect bundle which results from either the first or second choice. I have created a new table for my dilemma, which just uses two standard effect bundles.
cdir_events_dilemma_option_junctions: gives the conditions under which a dilemma may appear, and performs some commands such as generating a target region if needed. There are many possible commands, and I do not understand all of them. However, I have created a new table with several entries. "VAR_CHANCE" is set to 100, which I believe gives a 100% chance to select this dilemma. The other two, CND_CAMPAIGN and GEN_TARGET_NONE, should be "do nothing" defaults.
I have created a movie type mod with these files, which is attached to this post. Here is a screenshot of the PFM display.
To make sure the mod loads, I also included file text/startpos_jap_shogun.loc, and changed several strings. When I select "new campaign" and choose Chosokabe, I see my local string appear in the descriptive text for the clan. So I know the mod is being loaded. However, I click the "next turn" button ten times in a row, and no dilemma ever appears.
I believe that the mod is being loaded, but having no effect. Can anybody suggest a better way to test? Can anybody suggest what may cause this mod to not work?