• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Cniht

Sergeant
56 Badges
Jun 15, 2004
89
26
  • BATTLETECH
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Pre-order
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Stellaris: Necroids
  • Europa Universalis III: Chronicles
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Divine Wind
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • March of the Eagles
  • Semper Fi
  • Sengoku
  • War of the Roses
I'm trying to change up some things for the courier events. Namely the events where the punks try to think they are better then whatever person that is currently in the position. So I want to put In a CSC check against the value of whatever stat is checked for whatever position. If they don't match or are greater then the current advisor, then I don't hear anything.

I'm not sure if i need to use more then one condition check or not. Here is what i am 'thinking' it is.

Code:
condition = { type =  martial value = { type = martial_csc 
condition = { type = martial value } } 
}

This I think is really iffy, I don't think you 'can' just check the martial skill of another character outright. Unless you're putting it against a hard value. But don't know till I ask. :)
 
I think problem in that reasoning is that there is no condition to compare stat values of people. Only way I would see would be this 'not-so-handy' way:

Code:
condition = { type = or
	condition = { type = and
		condition = { type = marshal_csc
			condition = { type = not value = { type = martial value = 15 } }
		}
		condition = { type = martial value = 15 }
	}
	condition = { type = and
		condition = { type = marshal_csc
			condition = { type = not value = { type = martial value = 14 } }
		}
		condition = { type = martial value = 14 }
	}
	condition = { type = and
		condition = { type = marshal_csc
			condition = { type = not value = { type = martial value = 13 } }
		}
		condition = { type = martial value = 13 }
	}
}

And then continuing with same way downwards to 1.

EDIT: And of course the conditions can go above 15 if necessary.