can set factions up with game variables so that certain actions will either increase or decrease the factions variable and set the factions response to what the set faction variable is.
i did make a movement lock plugin and trap events that triggers during movement phase with chat gpt as i mess my code up alot lol i cant post ai generated plugins on the forum but can send it to you through message also its for srpg core 1.34+Q so may need to be altered if using a different version (its by no means perfect -cant stop unit movements on traps via locking movement (it is possible but with messing around with the srpg core plugins phases and has negative effects on game flow) but can end turn on trap activation, also allows trap events to have skills assigned and class level stats assigned as well it has a few performance issues but can be used as a base for understanding how to achieve it).