Hallo, I want to create an event where at a certain date, 1193, a character is spawned in as a landless kingdom title. She would have a boatload of troops. She would then use those troops to take over land. After about 10 years, all wars with her stop and she gains all the land she had sieged. This would then make the kingdom she had become landed, and all the holdings are instantly de lure. Also. She is a religion head of a new religion. The religion doesn't exist till she does, and when she settles down after ten years she becomes the new religion head. After that, all her vassals become the religion.
1. is this possible?
2. can someone help me with this?
Yes, this is possible.
The creation of the character and their support (title, army, etc.) is just typical scripting. If you want to see something like that, check out the mongol/aztec arrival events for an example. You can also start wars depending on the location of the character or by some other means (see Charlemagne event for auto-declaration of war, CM.1100 with reverse_war) You can set up a hidden event for the pope to activate an event chain (which will likely call an event to notify everyone by setting the event major=yes) for after a certain year (year=yeartobevalid under trigger with another NOT={year=yeartonotbeabletofirepast}) with a MTTH of less than one year (you could make it 1 day, then it will happen really early in the year). Similarly, you can check the time global flags have been active (had_global_flag={ flag=flagname days=numberofdaysactive}). Alternatively, you can set up an event to fire in exactly 10 years (character_event={ id=id.value days=numberofdaysuntillaunch}). At that point, it comes down to scripting the ability to take all the captured provinces. You should check the invasion casus belli under 00_cb_types to annex entire occupied territories, not just the war goal ones. As for assigning de jure-ness for the conquered territory, I am not so sure how to do that. What I can find under the files (at 1:10 am) is that you can set de jure liege via a certain commands. See misc_old_gods_events for event 62910. This demonstrates changing de jure lieges. Another thing that you should check is under realm_decisions for create_aragon. This demonstrates the ability to check for if you have complete control over a title. Religion modding is outside my realm of experience, but it would be similar to the Jewish faith gaining their religious head. Check realm_decisions for restore_high_priesthood for how to do it.
Hopefully I have been able to help in my sleep deprived state!