In my 2TPY/all town/PSF mod for latest RC/RR for SS6 I've created four Government buildings.
Of those, one is Parliament and another The Law Courts.
We all know the grief that having Kings with offend the nobility give and how, annoying having rebel generals are in ones own faction. So perhaps we can have a legal way of getting rid of them.
I would like to create some form of interactive event which gives the human player the choice of whether to put king who has Offensive2 trait or general with trait Disobedient2 on trial at the Law Courts.
Now I'm still at learning stage for coding this so if anyone has ways of implementing this do post.
If the project is finished we can stick in tutorials or make it a mini-mod for general usage.
These would be for the human player only. (er as interactive events they'd have to be.)
--
I understand there is a way of selecting a character based on a trait:
CharacterSelected Disobedient2
and the FactionLeader is well, the faction leader.
I presume if we monitor the FactionLeader every turn with a
IsPlayerLocal = 1
Is FactionLeader Disobedient2 (or whatever it should be)
we can generate an event "King_on_Trial"
(need to do text and picture etc)
do an event_counter kingontrial = 1
and increment it so next turn
event_counter
kingontrial = 2
we have the result:
random 20
King executed for treason
kill_character FactionLeader
(new FL would be chosen and all the gubbins with ancilliaries sorted out.)
or King found not guilty and the trait Offensive2 is reset to Offensive0
Perhaps enclosed in some form of monitor that checks when FactionLeader first gets the trait and waits a random number of turns before deciding to have a trial.
-------------------------------------------------------
As for Generals perhaps something similar triggered by king first getting Offensive2.
once triggered any general with Disobedient2 gets put on trial
(don't know if the command CharacterSelected Disobedient2
collects everyone with it, or just the first?)
Rather than faff around the interactive part would be a simple Y/N -
do you want to put this general on trial for treason?
there's a chance 50 that said general gets the kill_character treatment.
If found not guilty, he gets the Disobedient2 reset to Obedient1
if found guilty he gets the chop.
(or maybe exile to some remote island?)
Need to rest counter when king no longer has trait?
----------------------------------------------------------
That's about as far as I've got so far.
I've no idea if it's do-able.
I don't expect other people to do everything, but a nudge or two in the right direction would be appreciated. (if only to say - no can do.)





Reply With Quote













































