I want to add a new morale punish system into M2TW, once a character executed prisoners he will get a terrible morale punishment and bad trait,
this will keep players from pointless prisoner slaughtering without thinking, so i made up a trigger and a trait then added them into export_descr_character_traits.txt(i also added the new descriptions into file export_vnvs.txt for new trait), but when i start a brand new campaign to test this trigger, it seems no working:hmmm:.
trait likes below:
And here is the trigger:Code:Trait MoralePunish Characters family Level Prisoner_murder Description Prisoner_murder_desc EffectsDescription Prisoner_murder_effects_desc Threshold 1 Effect TroopMorale -1 Effect MovementPoints -5 Level Prisoner_killer Description Prisoner_killer_desc EffectsDescription Prisoner_killer_effects_desc Threshold 2 Effect TroopMorale -4 Effect Unrest 2 Effect MovementPoints -10 Level Prisoner_slaughterer Description Prisoner_slaughterer_desc EffectsDescription Prisoner_slaughterer_effects_desc Threshold 3 Effect TroopMorale -8 Effect Unrest 6 Effect MovementPoints -12 Level Unforgivable_sinner Description Unforgivable_sinner_desc EffectsDescription Unforgivable_sinner_effects_desc Threshold 4 Effect TroopMorale -100 Effect Unrest 100 Effect MovementPoints -20
Is there any thing wrong with my script??Code:Trigger morale_punish1 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers < 400 and Trait MoralePunish = 0 Affects MoralePunish 1 Chance 100 Trigger morale_punish2 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 400 and NumCapturedSoldiers < 1000 and Trait MoralePunish = 0 Affects MoralePunish 2 Chance 100 Trigger morale_punish3 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 400 and NumCapturedSoldiers < 1000 and Trait MoralePunish >= 1 and Trait MoralePunish < 4 Affects MoralePunish 1 Chance 100 Trigger morale_punish4 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 1000 and NumCapturedSoldiers < 1500 and Trait MoralePunish = 0 Affects MoralePunish 3 Chance 100 Trigger morale_punish5 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 1000 and NumCapturedSoldiers < 1500 and Trait MoralePunish = 1 Affects MoralePunish 2 Chance 100 Trigger morale_punish6 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 1000 and NumCapturedSoldiers < 1500 and Trait MoralePunish >= 2 and Trait MoralePunish < 4 Affects MoralePunish 1 Chance 100 Trigger morale_punish7 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 1500 and Trait MoralePunish = 0 Affects MoralePunish 4 Chance 100 Trigger morale_punish8 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 1500 and Trait MoralePunish = 1 Affects MoralePunish 3 Chance 100 Trigger morale_punish9 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 1500 and Trait MoralePunish = 2 Affects MoralePunish 2 Chance 100 Trigger morale_punish10 WhenToTest FactionLeaderPrisonersRansomedCaptor Condition RansomType execute and NumCapturedSoldiers >= 1500 and Trait MoralePunish = 3 Affects MoralePunish 1 Chance 100![]()




Reply With Quote










