Dev:SDK/Slave Girl - Start of Training

From Slavemaker Wiki
Jump to: navigation, search
<<first <prev SDK/Slave Girl - Start of Training next> last>>


SlaveMaker 3 SDK Slavegirl Start of Training

Start of Training for your Slave[edit]

There are a series of functions called when you start training your slave. The core game does a series of calls

Core Game Calls

StartGame()
Initialise()

Then the Slaves Introduction screen is shown that can have multiple pages, for each it calls

ShowIntroPage()
HideIntroPage()

Then

StartMessage()

Lastly the main screen is shown


Core Game Variables[edit]

_root.IntroPages = count of introduction pages, default 1, can be set in StartGame()

_root.IntroPage = the currently shown page for the introduction, passed into ShowIntroPage(). READ ONLY, but you could changed it, carefully


Core Game Functions[edit]

SetIntroText

Call this to set the text that appears on the introduction screen. Generally call this in ShowIntroPage()

function SetIntroText(intro:String)

intro - the text, html fomatted, use \r for newlines. The text is left aligned.

Also the following special characters will be decoded by the game

# = ServantName eg Shampoo
^ = ServantHimHer eg her for a female assistant, him for a male assistant
~ = ServantHeShe eg she for a female assistant, he for a male assistant


SetIntroColour
function SetIntroColour(red:Number, green:Number, blue:Number, alphao:Number, redmul:Number, greenmul:Number, bluemul:Number, alphamul:Number)

Sets the colour of the background of the introduction screen. Resets to white each page. Generally call this in ShowIntroPage()

red, green, blue - the RGB colour values (0-255)
alphao - alpha value, 0 - completely transparent, 100 = opaque
redmul, greemul, bluemul, alphamul - a value that is multiplied by the appropriate colour channel, default 1


________________________________________________________________

Slave Override Functions[edit]

These functions can be defined in the Slave Girl swf file and are called by the main engine when you start training the slave


You must implement the following functions
StartGame()

called at the start of a new game. You initialise her stats and difficulties here. You set things here for start of game only, This function is not called when a saved game is loaded.

eg

function StartGame()
{
        _root.SetGirlsVitals("Akane", "the angry girl", 85, 55, 87, 19, "AB", 163, 50);

        _root.TrainingTime = 50;
       
        _root.VarCharisma = 15;
        _root.VarSensibility = 10;
        _root.VarRefinement = 5;
        _root.VarIntelligence = 5;
        _root.VarMorality = 15;
        _root.VarConstitution = 25;
        _root.VarCooking = 15;
        _root.VarCleaning = 15;
        _root.VarConversation = 10;
        _root.FatigueBonus = 10;
        _root.VarBlowJob = 0;
        _root.VarFuck = 0;
        _root.VarTemperament = 25;
        _root.VarNymphomania = 0;
        _root.VarObedience = 0;
        _root.VarLibido = 0;
        _root.VarReputation = 0;
        _root.VarFatigue = 0;
        _root.VarJoy = 0;
        _root.VarLovePoints = 0;
        _root.VarSpecial = 40;
       
        _root.slSinging = 1;
        _root.slSwimming = 1;
        _root.slCombat = 60;
       
        _root.DifficultyXXX = 45;
        _root.DifficultyXXXContest = 35;
        _root.DifficultyExhib = 5;
        _root.DifficultySleazyBar = 30;
        _root.DifficultyBrothel = 80;
        _root.DifficultyTouch = 8;
        _root.DifficultyLick = 10;
        _root.DifficultyFuck = 13;
        _root.DifficultyBlowjob = 20;
        _root.DifficultyTitsFuck = 20;
        _root.DifficultyAnal = 0;
        _root.DifficultyMasturbate = 0;
        _root.DifficultyDildo = 25;
        _root.DifficultyPlug = 60;
        _root.DifficultyLesbian = 60;
        _root.DifficultyBondage = 65;
        _root.DifficultyNaked = 50;
        _root.DifficultyMaster = 75;
        _root.DifficultyGangBang = 80;
        _root.DifficultyLendHer = 80;
        _root.DifficultyPonygirl = 99;
        _root.DifficultySpank = 30;
        _root.DifficultyThreesome = 20;
        _root.MaxFuck = 60;
        _root.MaxBlowJob = 50;
        _root.CustomFlag2 = 0;
       
        _root.SetSexuality(76);
}
Initialise()

called after StartGame() or when a game is loaded - Used to initialise buttons, and other variaibles needed for both cases. For instance providing dress names etc. Also used for any changes to non-saved variables. For instance if you wish to rename your slavegirl

eg

function Initialise() {
        _root.SetDressDetails(1, "Long Dress");
        _root.SetDressDetails(2, "Short Dress");
        _root.SetDressDetails(3, "Country Dress", "Refinement + 10\rSensibility + 5\rEnjoys walks more.");
        _root.SetDressDetails(4, "Kimono");
        _root.SetDressDetails(5, "Gym Clothes", "Refinement + 10\rCharisma + 10\rConstitution + 15");
        _root.SetDressDetails(6, "Mini Skirt", "Charisma + 35, Obedience + 10\rLibido + 15, Nymphomania + 15\rSensibility + 15, Joy + 15\rShe is carefree and energetic.");
        _root.SetDressCourtly(4);
        _root.SetDressEasy(5);
        _root.SetDressEasy(6);
       
        _root.NobleLoveType = 8;
        _root.Milkable = true;
        _root.LesbianInterest = 2;
}
</source">

NOTE: SetGirlsVital has moved from Initialise() to StartGame() to allow changes to be remembered

<u>You do not have to override any of the following, default actions will happen if you do not</u>


;StartMessage
:''function StartMessage() : Boolean''
Show text at the start of the game, generally something from your assistant, but can be anything.<br />
return true to disable the standard message

eg from Ranma
<source lang="
actionscript" enclose="div">
function StartMessage() : Boolean
{
        _root.ServantSpeak("
The training of #slave will last for " + _root.TrainingTime + " days, and then she will unfortunately be delivered to her owner.");
        return true;
}
ShowIntroPage
function ShowIntroPage(page:Number) : MovieClip

Called to show the introduction page, pages 1+
return the MovieClip for the introduction page. If you wish to use the standard page and ShowMovie, then return undefined

eg using a formatted MovieClip with all text and images pre-positioned

function ShowIntroPage(page:Number) : MovieClip
{
        if (_root.ServantName != "Shampoo") page = page * 2;
        Introduction.gotoAndStop(page);
        Introduction._visible = true;
        return Introduction;
}

using the functions

function ShowIntroPage(page:Number) : MovieClip
{
        _root.ShowMovie(Introduction, 4, 2);
        _root.SetIntroColour(200, 100, 0);
        _root.SetIntroText("Ifurita\r\rThis girl claims to be lost, wandering through many dimensions.\r\r# says that ^ has heard of other people who have come from other worlds and beileves Ifurita. You decided to not argue the point.\r\rYou start her training...");
        return undefined;
}
HideIntroPages
function HideIntroPages()

Hide any images shown in ShowIntroPage

eg

function HideIntroPages() {
        Introduction._visible = false;
        Untrainable._visible = false;
}
ShowUntrainable
function ShowUntrainable() : MovieClip

If your slave cannot be trained by your Slave Maker this is called after all the other introduction pages
return the MovieClip for the page. If you wish to use the standard page and ShowMovie, then return undefined

eg

function ShowUntrainable() :MovieClip {
        Untrainable._visible = true;
        return Untrainable;
}

using the functions

function ShowUntrainable() : MovieClip
{
        _root.ShowMovie(Untrainable, 4, 0);
        _root.SetIntroText("Ifurita is completely unresponsive. She clearly refuses to relate with a person with demonic ties. You decide to return her to the Slave Market.");
        return undefined;
}


<<first <prev SDK/Slave Girl - Start of Training next> last>>