Dev:SDK/ChangesV8

From Slavemaker Wiki
Jump to: navigation, search
<<first <prev SDK/ChangesV8 next> last>>


SlaveMaker 3 SDK Change Log from v3.1.10c

Changes[edit]

Below are changes from game development. There are also changes to the SDK but these are cases where I have added extra documentation. The folllowing are where new functions are added to the game or are changes in usage

In general for the following only a brief description is given, please consult the appropriate document for more details

Note some documents are been split for clarity, notably the variable documents.

See the new XML series documents for the new XML event system.

See Slave Girl - Plannings - Sex Actions - Participants.rtf for information on the participants for sex acts

Variables - General[edit]

NonHumansOn
PregnancyOn
Participants
PersonIndex
PersonName
PersonGender

Variables - Slave Maker[edit]

SMSpecialEvent
The special event that affected your Slave Maker's past
SMHomeTown
where was your Slave Maker born
SMAdvantages
a list of bitflags that note what advantages your slave maker has
SMInitialSkills
the skills you start playing the game with, in addition to Slave Trainer

1. No real point in testing or changing these

SMInitialItems
what initial items does your slave maker have, either start of game, or

start of each slave

SMPiercingsType
same as slave version
SMVanityCaseOK
own a vanity case
SMNippleRingsOK
own nipple rings
SMCharisma
0-100
SMRefinement
0-100
SMNymphomania
0-100
SMTiredness
0-100
TotalSMJob
total times worked at a job
TotalSMNun
total times your slave maker has met a nun
PotionsUsed
Array that counts the number of times a potion has been drunk, these

elements are

CustomFlag4
CustomFlag5
CustomFlag6
CustomFlag7
CustomFlag8
CustomFlag9

Backgrounds[edit]

New background functions

function ShowCircus(gframe:Number, flip:Boolean)
function ShowShip(gframe:Number, flip:Boolean)

New Functions[edit]

IsItemAvailable
test if an item is owned by slave or slavemaker
function IsItemAvailable(item:Number) : Number
SetItemOwned
set and item owned by slave or slavemaker (or lose the item)
function SetItemOwned(item:Number, own:Boolean)
IsItemWorn
test if an item is currently being used by the slave/slave maker
function IsItemWorn(item:Number) : Boolean
PlaySound
plays a sound, either an external mp3 or an embedded sound
function PlaySound(snd:String, repeats:Number, cnt:Number,

volume:Number, delay:Number)

AttachBitmap
function AttachBitmap(movie:String) : MovieClip
Creates a movieclip and loads a bitmap from the library into it.
AttachAndShowBitmap
function AttachAndShowBitmap(movie:String, main:Number, align:Number,

gframe:Number) : MovieClip

Creates a movieclip and loads a bitap from an exported bitmap in your

project.

AutoAttachAndShowBitmap
function AutoAttachAndShowBitmap(movie:String, main:Number,

align:Number, gframe:Number) : MovieClip

Creates a movieclip and loads a bitap from an exported bitmap in your

project. Deleted when HideImages is called

IsParticipant
Rerturns true is a particular index value is a participant
function IsParticipant(idx:Number) : Boolean
CountParticipantGenders
counts the genders of all participants and sets the PersonIndex,

PersonName etc variables

function CountParticipantGenders()
GetParticipantDetails

Sets dependent variables for a given index value

function GetParticipantDetails(idx:Number)
PointsIndexed

Increase or decrease a slavegirl/slave makers stats

function PointsIndexed(Charisma:Number, Sensibility:Number,

Refinement:Number, Intelligence:Number, Morality:Number, Constitution:Number, Cooking:Number, Cleaning:Number, Conversation:Number, BlowJob:Number, Fuck:Number, Temperament:Number, Nymphomania:Number, Obedience:Number, Libido:Number, Reputation:Number, Fatigue:Number, Joy:Number, Love:Number, Special:Number)

PointsAssistant

Increase or decrease your assistants stats

function PointsAssistant(Charisma:Number, Sensibility:Number,

Refinement:Number, Intelligence:Number, Morality:Number, Constitution:Number, Cooking:Number, Cleaning:Number, Conversation:Number, BlowJob:Number, Fuck:Number, Temperament:Number, Nymphomania:Number, Obedience:Number, Libido:Number, Reputation:Number, Fatigue:Number, Joy:Number, Love:Number, Special:Number)

DoXMLAct
function DoXMLAct(act:String) : Boolean
PickAndDoXMLEvent
function PickAndDoXMLEvent(node:String, subnode:String) : Boolean
XMLEvent
function XMLEvent(node:String, subnode:String, sett:Boolean) : Boolean
XMLEventLastNode
function XMLEventLastNode(node:String, subnode:String, sett:Boolean) :

Boolean

IsSlaveOwnedByIndex
function IsSlaveOwnedByIndex(idx:Number)
Is the named slave owned, ie a minor or bought back slave, by the index

of SlavesArray, or PersonIndex value as used by Participants array.

GetSlaveDetails
function GetSlaveDetails(idx:Number) : Slave
returns the Slave class instance for the slave for the index value

Changed Functions[edit]

All Bitflag functions have an alternate method to use

eg

function CheckBitFlag1(flag:Number) : Boolean

OR

BitFlag1.CheckBitFlag(flag:Number) : Boolean

If speed/efficiency matter use the new form BitFlag1.CheckBitFlag etc

New Text Macros[edit]

  • #master - Master or Mistress, depending on your Slave

Makers gender

  • #slavemakername - your Slave Makers name
  • #superhisher - his/her/them based on gender of the

person currently supervising your slave

  • #superheshe - he/she/they based on gender of the person

currently supervising your slave

  • #supername - the name of the person currently

supervising your slave, always the persons explicit name

  • #super - similar to #supername but

show 'you' for your slave maker

  • #assistantpronoun - the pronoun your asistant uses,

default I

  • #assistant - your assistants name

Additional ALL xml variables, for instance

  • #constitution
  • #smcharisma


<<first <prev SDK/ChangesV8 next> last>>