Thank you for the help, I want the decision exist from the start but once we click it the decision gone. How to do it?
Then assuming you deactivate the title in the title history -- again, you
probably don't want a noreligion holy order to be active, seeing as anything noreligion can result in issues -- adding a check for the title being active in the potential -- similar to what vanilla has for assorted holy orders that can be created by decision -- and activating the title as the first step when the decision is taken -- check how vanilla does it -- should hide the decision permanently once it has been taken.
Also it still didn't show up in holy order tab after I add the religion scope, is it because game mechanic?
Odd; "d_custom_holy_order = { religion = ROOT }" (no quotation marks)
should work per the wiki, though in theory the command could be broken or holy orders might work weirdly if they start out as noreligion holy orders.
Try the following (if something works, don't continue down the list):
- Leave "d_custom_holy_order = { religion = ROOT }" in the decision and put "religion = catholic" in the landed_titles definition for your holy order. Try the decision with a non-Catholic character; if the holy order shows up in the holy order tab after you've taken the decision, it works.
- Change "d_custom_holy_order = { religion = ROOT }" to e.g. "d_custom_holy_order = { religion = orthodox }" without the "religion = catholic" in the landed_titles definition for the holy order and test it with a character whose religion matches the religion you set in the decision; if this works, it can be made to work regardless of the decision taker's religion, but it's not worth doing the extra work to set that up ahead of confirming that the general approach works works.
- Change "d_custom_holy_order = { religion = ROOT }" to e.g. "d_custom_holy_order = { religion = orthodox }"
and put "religion = catholic" in the landed_titles definition for the holy order and test it with a character whose religion matches the religion you set in the decision; again, if this works, it's possible to extend it to make it work for other religions.
If none of the above works, it's possible there are hardcoded limitations to holy order religions; vanilla never have them change religion outside two special cases -- heresy takeovers resulting in the holy orders switching to the new mainstream plus the Jomsvikings converting when the Norse reform -- and doesn't change title religions in script outside those case, so in theory the "religion = <whatever>" command might not work as expected for titles.