Dev:SDK/Core - Variables - Game

From Slavemaker Wiki
Jump to: navigation, search
<<first <prev SDK/Core - Variables - Game next> last>>


SlaveMaker 3 SDK Core/root Variables

General[edit]

All these are present in the _root stage variables, use as _root.SlaveName etc

Mostly I will leave off the _root from now on.

Almost all are of type Number but a few are Boolean or String and should be obvious by context.

Notes:[edit]

a) Most variables are saved in save games, but some are not and are noted as such.

Variables in this colour are READ ONLY are purely to read and not saved and should not be changed. These are set by the game engine based on various criteria.

There are limited cases where you may wish to change one of these

eg

You wish to see her fucking a man but she is in lesbian training

_root.Lesbian = false;
SlaveGirl.Lesbian = false;
ShowSexActFuck();
UpdateSlave();   // resets _root.Lesbian, or you can remember the value
and reset it

eg She is naked but you wish to show her clothed

_root.Naked = false;
SlaveGirl.Naked = false;
ShowChoreDiscuss();
UpdateSlave();

Note above changes the _root version and also the SlaveGirl local version of these variables.

b) Uninitialised variables have a value of undefined, also if you call a function but specify too few parameters, those parameters you leave off are all set to undefined

c) type Number is a floating point number so rounding can be an issue, I had a case (all lines separted by other code)

var = 1;
var = var + 0.1;
var = var + 0.1;
var = var + 0.1;
var = var + 0.1;
if (var == 1.4) {
}

the if was not true due to rounding.

This is especially relelvant for stats as they are fractional. Do not test

if (_root.VarIntelligence == 0) {
}

use instead

if (_root.VarIntelligenceRounded == 0) {
}

or

if (_root.VarIntelligence <  1) {
}

d) Note some variables are logically Boolean but are stored as Number, with values of 0 or 1. This is partially legacy

eg

DickgirlOn has values 0, 1, logically false, true

In some cases this can allow for a value of 2 to disable

General Variables[edit]

These variables affect general game play, but are not specific to the girl, slavemaker or assistant. Always use _root' (eg _root.Day)

Difficulty
-1 = easy
0 = normal
1 = difficult
2 = hard
CombatDifficulty
-1 = no combats
0 = standard
1 = hard
2 = you lose
GameVersion
the version of the game 16 etc (only valid for version 16 or later)
SlaveDebugging
true - change behaviour of cheat button for debugging purposes
false - default behaviour (default)
Day
true - daytime action
false - night time action
GameDate
date, starts from 1 and increase 1 per day, continues increasing over girls
GameTime
time of day, 24hr clock, 1.5 = 1:30 am, 22 = 10pm
MoonPhaseDate
day of moon cycle
New moon = 15, but tentacles more active 14, 15, 16
Full 0,1
29 days in a month
PonygirlAware
awareness of ponygirls
-1 = no ponygirls in game
0 = not aware
1 = aware
DickgirlOn
1 = dickgirls in game
0 = they are not
TentaclesOn
1 = tentacles in game
0 = they are not
BDSMOn
1 = bdsm in game
0 = no BDSM (Bondage action not present)
RapeOn
true = rape events in the game
false = no rape events
IncestOn
true = incest events in the game
false = no incest events
BadEndsOn
true = game ending bad events can happen
false = game ending bad events do not happen
SoundsOn
true = sounds effects are played
false = no sounds effects
TentacleFrequency
percentage rate of tentacle events (0-100) on a daily basis
DickgirlFrequency
how often dickgirls are encountered (only valid if DickgirlOn == 1)
0 = 20% of the time you encounter the dickgirl version of an event (if

it exists)

1 = 80% of the time you encounter the dickgirl version of an event (if

it exists)

2 = 100% of the time you encounter the dickgirl version of an event (if

it exists)

TutorialOn
true = show tutorials
false = do not shop
FurriesOn
true = furries are in the game
false = no furries in the game
SandboxOn
true = 'sandbox' mode, unrestricted training and retraining of girls
false = standard campaign, girls are trained once (default)
Clock24On
true = use a 24 hour clock
false = use 12 hr clock (am/pm) - default
StatIcons
true = show icons for stat increases
false = show values
TentacleHaunt
next location a tentacle event will appear (today)
1 - Forest
11/11.1 - Forest but will be destroyed by a demon
21/21.1 - Forest but will be destroyed by a demon and then the demon

will rape her

4 - Slums
14/14.1 - Slums, destroyed
24/24.1 - Slums, destroyed and demon rape
6 - Port
16/16.1 - Port, destroyed
26/26.1 - Port, destroyed and demon rape
8 - Ruined temple
18/18.1 - Ruined Temple, destroyed
28/28.1 - Ruined Temple, destroyed and demon rape
9 - Beach
19/19.1 - Beach, destroyed
29/29.1 - Beach, destroyed and demon rape
NonHumansOn
true = sex with non-humans like centaurs can happen
false = sex with non-humans like centaurs do not happen
PregnancyOn
true = events involving pregnancy can happen
false = events involving pregnancy do not happen
Elapsed
number of days since training started, READ ONLY

During Training the following are set to indicate if an action has been done before in that day

FirstTimeToday
for the current action set tot true if the action has not been done before
FirstTimeTodayBrothel
true = first time to do a brothel action today - READ ONLY
false = has done a brothel action before today
FirstTimeTodayAcolyte
FirstTimeTodaySleazyBar
FirstTimeTodayDiscuss
FirstTimeTodayTheology
FirstTimeTodayRestaurant
FirstTimeTodayBar
FirstTimeTodaySciences
FirstTimeTodayDance
FirstTimeTodayRefinement
FirstTimeTodayWalk
FirstTimeTodayXXX
FirstTimeTodayCooking
FirstTimeTodayCleaning
FirstTimeTodayExpose
FirstTimeTodayMakeup
FirstTimeTodayCustomJob1
FirstTimeTodayCustomJob2
FirstTimeTodayCustomJob3
FirstTimeTodayLibrary
FirstTimeTodayOnsen
FirstTimeTodayCustomChore1
FirstTimeTodayCustomChore2
FirstTimeTodayCustomChore3
FirstTimeTodayCustomSchool1
FirstTimeTodayCustomSchool2
FirstTimeTodayCustomSchool3


<<first <prev SDK/Core - Variables - Game next> last>>