Script commands that have variables
SET: How it is listed in the Script editor txt file
SEE: How it is shown in the script editor
<Action> example of how it is used in the .scriptx file
Notes: Notes
DialogSET 0: "Dialog ~"
SEE 0: Dialog [*TEXT*]
<Action Type="Script_Dialog" Text="What would you like to do?" />
Creating Choice BoxesSET 5: "CHOICEBOX ~ ~"
SET 6: "TEXT ~"
SEE 5: CHOICEBOX [*0*] [*0*]
SEE 6: TEXT [*TEXT*]
<Action Type="Script_ChoiceBox" ID="2" Num="4" />
<Action Type="Script_m_Next" Text="Have Sex" />
<Action Type="Script_m_Next" Text="Ask her to have sex with another girl" />
<Action Type="Script_m_Next" Text="Ask her to have sex with a beast" />
<Action Type="Script_m_Next" Text="Ask her to be in a bondage session" />
Notes: Num is the number of choices in the box and there needs to be that many Script_m_Next
Using Choice BoxesSET 12: "ActivateChoice ~"
SET 13: "If Choice from ChoiceBox ~ is ~"
SEE 12: ActivateChoice [*0*]
SEE 13: If Choice from ChoiceBox [*0*] is [*0*]
<Action Type="Script_ActivateChoice" ID="2" />
Notes: This triggers the choicebox with that ID to run
<Action Type="Script_IfChoice" ID="2" Val="0" />
<Action Type="Script_EndIf" />
Notes: If Choice from ChoiceBox ID is Val. (The first item has a VAL of 0, second is 1, third is 2, and so on)
Script variables (Var)SET 7: "SetVar ~ ~"
SET 8: "SetVarRandom ~ ~ ~"
SET 9: "IfVar ~ ~ ~"
SEE 7: SetVar [*0*] [*0*]
SEE 8: SetVarRandom [*0*] [*0*] [*0*]
SEE 9: IfVar [*0*] [*EqualTo*] [*0*]
<Action Type="Script_SetVar" Var="0" Val="100" />
<Action Type="Script_SetVarRandom" Var="4" Min="0" Max="3" />
<Action Type="Script_IfVar" Var="0" Compare="e" Amount="100" Info="Compare Options: e , l , le , g , ge , ne" />
Player StuffSET 14: "SetPlayerSuspicion ~"
SET 15: "SetPlayerDisposition ~"
SEE 14: SetPlayerSuspicion [*0*]
SEE 15: SetPlayerDisposition [*0*]
<Action Type="Script_SetPlayerSuspicion" Val="-20" />
<Action Type="Script_SetPlayerDisposition" Val="-20" />
GoldSET 21: "AddRandomValueToGold ~ ~"
SET 102: "GiveGoldToGirl ~ ~"
Stats and SkillsSET 24: "AdjustTargetGirlStat ~ ~"
SET 27: "IfPassSkillCheck ~"
SET 28: "IfPassStatCheck ~"
SET 31: "IfGirlStat ~ ~ ~"
SET 32: "IfSkill ~ ~ ~"
SET 82: "AdjustTargetGirlSkill ~ ~"
SET 103: "AdjustTargetGirlStatR ~ ~ ~ ~"
SET 104: "AdjustTargetGirlSkillR ~ ~ ~ ~"
Note: #24 AdjustTargetGirlStat was in the original script editor and it was used for both stats and skills.
.06.03.06 corrects this by splitting skills out and making them use AdjustTargetGirlSkill instead.
TraitsSET 33: "IfHasTrait ~"
SET 71: "AddTrait ~"
SET 72: "RemoveTrait ~"
SET 73: "AddTraitTemp ~ ~"
SET 81: "AdjustTraitTemp ~ ~"
ItemsSET 95: "IfGirlHasItem ~"
SET 96: "AddItemtoGirl ~ ~ ~"
SET 97: "GivePlayerItem ~ ~"
SET 98: "IfPlayerHasItem ~"
SET 99: "GiveGirlInvItem ~ ~"
StatusSET 106: "IfGirlStatus ~ is ~"
SET 107: "SetGirlStatus ~ to ~"
PregnancySET 109: "CreatePregnancy type ~ chance ~ force ~"
Other stuffSET 17: "AddCustomerToDungeon ~ ~ ~"
SET 18: "AddRandomGirlToDungeon ~ ~ ~ ~ ~ ~ ~"
SET 22: "AddManyRandomGirlsToDungeon ~ ~ ~ ~ ~ ~ ~"
SET 70: "AddFamilyToDungeon ~ ~ ~ ~ ~ ~"
SET 78: "Get Random Girl ~ ~"
Script FlagsSET 19: "Set Global ~ ~"
SET 16: "ClearGlobalFlag ~"
SET 20: "SetGirlFlag ~ ~"
SET 29: "IfGirlFlag ~ ~ ~"
SET 80: "AdjustGirlFlag ~ ~"
Note: These don't seem to be used but they are here for completion
since the game uses lua, you may try luainterface or its c++, which will allow you to read the scripts as text files, which will give some speed
But then I would have to learn another language.
I already know XML pretty well and most other things in the game use it, so I will keep using XML.