Game Editing And Additions > User Mods

Sample script to add to girl files.

(1/3) > >>

sgb:
Nobody's braved the script editor packed with the game, but I've found it's not all that painful to use.  It order to start to encourage others to add a little more personalization to the girls, I've made a simplified example script for the Alena character that comes with the game.  There's no epic dialogue here, instead to purpose here so that players can actually tell who they're meeting on walks before they agree to take them or not.  The player is given a description, a rough estimate of her starting looks, a rough estimate of how high her starting rebelliousness will be, and an estimate of her combat skills before they decide to take her or not.  For the lazy, you can make a copy of this and simply edit a couple sentences for any of your characters, or add more dialogue for the adventurous.

RZ:
Just a few questions about how scripts works:
1. After make a scripts in the script editor, we have to make the condition in XML file right?
2. Where do you put the scripts?
3. Do i have to start a new game after installing new scipts?

Well, I think it will be handy if someone make a beginner tutorials to use the script editor and stickied it here to make peoples who is unfamiliar with scripting learn it easier and in turn contribute more to the game..

sgb:
1 and 2: You have to put the meetgirl.script and triggers.xml in each girl folder you want it to work for.  Triggers.xml should not be modified, but obviously you will want to personalize each meetgirl script.

3: No, it checks for the Triggers.xml when needed during the game.

fires_flair:
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?
and will this work on random girls too, and to ask a question that is probably silly, where do we get the trigger.xml file?

Dagoth:

--- Quote from: fires_flair on May 15, 2010, 10:44:38 PM ---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?

--- End quote ---
For PCLove, you're looking for IfStat down in the Actions list. The PCLove stat is stored among the girl stats.


--- Quote from: fires_flair on May 15, 2010, 10:44:38 PM ---and will this work on random girls too

--- End quote ---
It should, but I don't think anyone has tested it recently.


--- Quote from: fires_flair on May 15, 2010, 10:44:38 PM ---where do we get the trigger.xml file?

--- End quote ---
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.

Navigation

[0] Message Index

[#] Next page

Go to full version