Yes it's possible. I recommand this reading first:
http://rtw.heavengames.com/cgi-bin/forums/display.cgi?action=ct&f=9,6718,,1
Then to get you on track, you would need a invade decision that look like this in descr_campaign_ai:
Code:
<decision_entry>
<min_entry target_religion="catholic"/>
<max_entry target_religion="catholic" stance="Allied"/>
<faction_attitude invade="invade_none"/>
</decision_entry>
Then you would need to adjust any invade decisions that contredict this new entry, in the concerned labels only of course. (In fact the optimal way is to create entirely new labels) Don't listen to legends saying that M2TW ai modding is limited, however it take time and solid understanding, hence the reading above. A lot more than what you want can be achieved for that matter.
Ah, and I suggest you use bare_geomod for your modding, or a other mod folder you like, don't try to mod the main vanilla data files.
http://www.twcenter.net/forums/showt...ld-Bare-Geomod