1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using Codes?

Discussion in 'Help' started by sdrycoins, Apr 25, 2013.

  1. sdrycoins

    sdrycoins Potential Patron

    Joined:
    Feb 3, 2013
    Messages:
    6
    Likes Received:
    0
    Hey, i'm outirght bad when it comes to editing/modding things. I was wondering how one uses the codes that people
    often post.
    I.e:

    setInterval(cTest,30);
    var dIn:Number = 0;
    function cTest()
    {
    if (dIn == 0 && her.mouthFull){
    dIn = 1;
    }
    if (dIn == 1 && her.mouthFull == false)
    {
    //6 is least amount of cum drool, it can be increased.
    her.cumInMouth = Math.max(6,her.cumInMouth);
    her.startDroolingCum();
    dIn = 0;
    }
    }
    (by ModGuy)

    Id like to use that specific code but dont know which file to edit. I've checked the Guide folder, it talks about something similar but
    I'm not sure if its actually the same thing and I dont really understand it. Any help is appreciated
     
  2. mike

    mike Avid Affiliate

    Joined:
    Feb 4, 2012
    Messages:
    353
    Likes Received:
    3
    This is some ActionScript code, to use with adobe flash professional. I'd recommend starting with easier things if you want to mod SDT.

    I'm also pretty sure ModGuy already uploaded a mod for the girl to drool. Look for it in the loader import section.
     
  3. sby

    sby Club Regular Content Creator

    Joined:
    Sep 11, 2012
    Messages:
    1,333
    Likes Received:
    74
    i think i mentioned it in another thread somewhere recently. .

    the codes posted are mostly for other modders to learn from on how to do things. they are usually not for the end users to use.

    end users use the compiled mods that modders upload in their respective threads. (.swf, .mod files)


    also, most of the time such code is a snippet of the whole code, and only includes the 'juicy' parts that actually do the magic. what is not included is the setup code. so just throwing it into flash and compiling will most likely not work xD.
    var main:Object;
    var callFunc:MovieClip;
    var dIn:Number;

    if (this.parent.parent != null)
    {
    this.main = this.parent.parent;
    this.main.registerUnloadFunction(this.unloadCTest);
    this.callFunc = new MovieClip();
    addChild(this.callFunc);
    this.callFunc.addEventListener(Event.ENTER_FRAME, this.cTest);
    this.main.unloadMod();
    }
    this.dIn = 0;

    function cTest(param1)
    {
    if (this.dIn == 0 && this.main.her.mouthFull)
    {
    this.dIn = 1;
    }
    if (this.dIn == 1 && this.main.her.mouthFull == false)
    {
    this.main.her.cumInMouth = Math.max(6, this.main.her.cumInMouth);
    this.main.her.startDroolingCum();
    this.dIn = 0;
    }
    return;
    }

    function unloadCTest()
    {
    this.callFunc.removeEventListener(Event.ENTER_FRAME, this.cTest);
    return;
    }


    //the code you posted might also be some hax code

    edit - oh yeah, i believe this mod is called sloppymod
     
  4. sdrycoins

    sdrycoins Potential Patron

    Joined:
    Feb 3, 2013
    Messages:
    6
    Likes Received:
    0
    I see...This has cleared everything up for as I thought it was basic process in which you add the code to some text file in the game folder. Thank you for the help, gonna check out the sloppymod now hehe.