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
Dialog
SET 0: "Dialog ~"
SEE 0: Dialog [*TEXT*]
<Action Type="Script_Dialog" Text="What would you like to do?" />
Creating Choice Boxes
SET 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 Boxes
SET 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 Stuff
SET 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" />
Gold
SET 21: "AddRandomValueToGold ~ ~"
SET 102: "GiveGoldToGirl ~ ~"
Stats and Skills
SET 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.
Traits
SET 33: "IfHasTrait ~"
SET 71: "AddTrait ~"
SET 72: "RemoveTrait ~"
SET 73: "AddTraitTemp ~ ~"
SET 81: "AdjustTraitTemp ~ ~"
Items
SET 95: "IfGirlHasItem ~"
SET 96: "AddItemtoGirl ~ ~ ~"
SET 97: "GivePlayerItem ~ ~"
SET 98: "IfPlayerHasItem ~"
SET 99: "GiveGirlInvItem ~ ~"
Status
SET 106: "IfGirlStatus ~ is ~"
SET 107: "SetGirlStatus ~ to ~"
Pregnancy
SET 109: "CreatePregnancy type ~ chance ~ force ~"
Other stuff
SET 17: "AddCustomerToDungeon ~ ~ ~"
SET 18: "AddRandomGirlToDungeon ~ ~ ~ ~ ~ ~ ~"
SET 22: "AddManyRandomGirlsToDungeon ~ ~ ~ ~ ~ ~ ~"
SET 70: "AddFamilyToDungeon ~ ~ ~ ~ ~ ~"
SET 78: "Get Random Girl ~ ~"
Script Flags
SET 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.
Script commands without variables
System commands
### | .scriptx | .script |
1 | Script_Init | INIT |
2 | Script_EndInit | ENDINIT |
3 | Script_EndScript | ENDSCRIPT |
4 | Script_Restart | Restart |
30 | Script_GameOver | GameOver |
Modifier Commands
### | .scriptx | .script |
23 | Script_AddTargetGirl | Add Target Girl |
25 | Script_PlayerRapeTargetGirl | PlayerRapeTargetGirl |
26 | Script_GivePlayerRandomSpecialItem | GivePlayerRandomSpecialItem |
35 | Script_ScoldTarget | Scold Target Girl |
108 | Script_EndPregnancy | EndPregnancy |
If commands
### | .scriptx | .script |
40 | Script_IfNotDisobey | If Not Disobey |
100 | Script_IfGirlIsSlave | IfGirlIsSlave |
101 | Script_IfGirlIsFree | IfGirlIsFree |
10 | Script_Else | Else |
110 | Script_ElseNew | ElseNew |
11 | Script_EndIf | EndIf |
105 | Script_EndIfNew | EndIfNew |
Show Image
Use these to show the image type in the name.
Many of these also have a small stat/skill adjustment related to its image type.
Most of the sex images will check virginity and pregnancy.
### | .scriptx | .script |
34 | Script_TortureTarget | Torture Target Girl |
36 | Script_NormalSexTarget | Have Normal Sex |
37 | Script_BeastSexTarget | Have Beast Sex |
38 | Script_AnalSexTarget | Have Anal Sex |
39 | Script_BDSMSexTarget | Have Bondage Sex |
41 | Script_GroupSexTarget | Have Group Sex |
42 | Script_LesbianSexTarget | Have Lesbian Sex |
43 | Script_OralSexTarget | Have Oral Sex |
44 | Script_StripTarget | Have Strip |
45 | Script_CleanTarget | Have Clean |
46 | Script_NudeTarget | Have Nude |
47 | Script_MastTarget | Have Mast |
48 | Script_CombatTarget | Have Combat |
49 | Script_TittyTarget | Have Titty |
50 | Script_DeathTarget | Have Death |
51 | Script_ProfileTarget | Have Profile |
52 | Script_HandJobTarget | Have Hand Job |
53 | Script_EcchiTarget | Have Ecchi |
54 | Script_BunnyTarget | Have Bunny |
55 | Script_CardTarget | Have Card |
56 | Script_MilkTarget | Have Milk |
57 | Script_WaitTarget | Have Wait |
58 | Script_SingTarget | Have Sing |
59 | Script_TorturePicTarget | Have Torture Pic |
60 | Script_FootTarget | Have Foot |
61 | Script_BedTarget | Have Bed |
62 | Script_FarmTarget | Have Farm |
63 | Script_HerdTarget | Have Herd |
64 | Script_CookTarget | Have Cook |
65 | Script_CraftTarget | Have Craft |
66 | Script_SwimTarget | Have Swim |
67 | Script_BathTarget | Have Bath |
68 | Script_NurseTarget | Have Nurse |
69 | Script_FormalTarget | Have Formal |
74 | Script_ShopTarget | Have Shop |
75 | Script_MagicTarget | Have Magic |
76 | Script_SignTarget | Have Sign |
77 | Script_PresentedTarget | Have Presented |
79 | Script_DomTarget | Have Dominatrix |
83 | Script_DeepTarget | Have Deep |
84 | Script_EatOutTarget | Have EatOut |
85 | Script_StrapOnTarget | Have StrapOn |
86 | Script_Les69ingTarget | Have Les69ing |
87 | Script_DildoTarget | Have Dildo |
88 | Script_SubTarget | Have Sub |
89 | Script_LickTarget | Have Lick |
90 | Script_SuckBallsTarget | Have SuckBalls |
91 | Script_CowGirlTarget | Have CowGirl |
92 | Script_RevCowGirlTarget | Have RevCowGirl |
93 | Script_SexDoggyTarget | Have SexDoggy |
94 | Script_NormalSexWithRandomTarget | Have NormalSexWithRandom |
111 | Script_BrandTarget | Have Branding |
112 | Script_RapeTarget | Have Rape |
113 | Script_RapeBeastTarget | Have Beast Rape |
114 | Script_BirthHumanTarget | Have Human Birth |
115 | Script_BirthHumanMultipleTarget | Have Human Birth Multiple |
116 | Script_BirthBeastTarget | Have Monster Birth |
117 | Script_ImpregSexTarget | Have Impregnate Sex |
118 | Script_ImpregGroupTarget | Have Impregnate Group |
119 | Script_ImpregBDSMTarget | Have Impregnate Bondage |
120 | Script_ImpregBeastTarget | Have Impregnate Beast |
121 | Script_VirginSexTarget | Have Virgin Sex |
122 | Script_VirginGroupTarget | Have Virgin Group |
123 | Script_VirginBDSMTarget | Have Virgin Bondage |
124 | Script_VirginBeastTarget | Have Virgin Beast |
125 | Script_EscortTarget | Have Escort |
126 | Script_SportTarget | Have Sport |
127 | Script_StudyTarget | Have Study |
128 | Script_TeacherTarget | Have Teacher |
Old post
learn alother language? it will use same language as the sripts use now as is
The scripts currently use binary as their language.
While exactly 1 script (Intro.lua) uses the Language called LUA, I don't know it well enough to use it.
I know XML well.
.girlsx, .rgirlsx, .itemsx, .traitsx, config.xml and every interface xml all use XML, .scriptsx will as well.
If you want to write the code to load, save and edit lua, go ahead.
I will use XML.