ok, so I poked my head into the editor...and while it basically made sense (and more so when I checked you script sgb) i'm not quite sure how to make it work for a different condition (like if the girl has pc love equal to/over ___ this event happens) any advice?
For PCLove, you're looking for IfStat down in the Actions list. The PCLove stat is stored among the girl stats.
and will this work on random girls too
It should, but I don't think anyone has tested it recently.
where do we get the trigger.xml file?
You can copy and modify the one sgb provided for Alena in the first post, or use the one which comes with Cammy in the core game.
Actually, let me provide a brief rundown of what can be set for triggers in the girl's triggers.xml file, gleaned from looking in the code.
Trigger "Type":
"Random" // May trigger each week
"Shopping" // May trigger when shopping
"Skill" // May trigger when a skill is greater or equal to a value; requires additional "Skill" value (see below) and "Threshold" value set
"Stat" // same as skill; ; requires additional "Stat" value (see below) and "Threshold" value set
"Status" // has a particular status, ie slave, pregnant etc; requires additional "Status" value and "Has" value ("true" or "false") set
"Money" // same as skill or stat levels; requires additional "Who" value ("Player" or "Girl") and "Comparison" value ("MoreThan" or "LessThan") and "Threshold" value set
"Meet" // Triggers when meeting girl; requires additional "Where" value ("Town", "Dungeon", "Catacombs", "Brothel", "SlaveMarket") set
"Talk" // triggered when talking to girl in dungeon on details screen
"WeeksPast" // certain number of weeks pass while girl is in employment; requires additional "Threshold" value set
"GlobalFlag" // triggered when a global flag is set; requires additional "Flag" value ("NoPay", "GirlDies", "CustomerDies", "GamblingCheat", "RivalLose") set
"ScriptRun" // triggered when a specifed script has been run
"Kidnapped" // triggers when a girl is kidnapped
"PlayerMoney" // triggers when players money hits a value
Skills:
"Anal"
"Magic"
"BDSM"
"NormalSex"
"Beastiality"
"Group"
"Lesbian"
"Service"
"Strip"
"Combat"
Stats:
"Charisma"
"Happiness"
"Libido"
"Constitution"
"Intelligence"
"Confidence"
"Mana"
"Agility"
"Fame"
"Level"
"AskPrice"
"House" // House percentage
"Exp"
"Age"
"Obedience"
"Spirit"
"Beauty"
"Tiredness"
"Health"
"PCFear"
"PCLove"
"PCHate"
You can optionally set a "Chance" value for any trigger, such as "50%" to have it trigger only half the times it is checked (as I understand it; defaults to 100%)
Also, there is the optional "OnceOnly" value for any trigger, which can be set to "true" to have a trigger only fire once ever (defaults to false)
So, for example, a trigger for the girl's triggers.xml file:
<Trigger Type = "Stat"
Stat = "PCLove"
Threshold = "30"
Chance = "5%"
OnceOnly = "true"
File = "Loverly.script"
/>
The above trigger would be checked when her PCLove stat hit 30, with a 5% chance of it firing each time it is checked (once a week normally, I think), and only firing a single time ever.
<Trigger Type = "Money"
Who = "Girl"
Comparison = "MoreThan"
Threshold = "5000"
File = "IQuitYouAsshole.script"
/>
This trigger would fire once she got more than 5000 gold built up.