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

Save customized characters introResist setting

Discussion in 'Help' started by Yuuki, Apr 14, 2015.

  1. Yuuki

    Yuuki Potential Patron

    Apr 13, 2015
    Likes Received:
    Hi, I've been trying to make dialogue using the DA mod and I stumbled on a problem.
    I can't seem to find a way to save the intro_resistance setting when generating the CharCode.

    When I generate the character I get:

    As you can see, the throatResist setting gets saved nicely, but not the introResist.
    Am I doing all this wrong, or is there some other way to save the setting?

    Much obliged for an answer =)

    First post, so I'm not sure if this is the right place to post it
  2. stuntcock

    stuntcock Staff Member Moderator

    Jun 5, 2012
    Likes Received:
    You're not doing anything wrong. The SDT code (InGameMenu.getSaveDataString) appends the throatResistance parameter to the charcode string but the introResistance parameter is excluded. introResistance is similarly absent from the InGameMenu.loadData method.

    It would be trivial to provide save/load behaviour for the introResistance setting via a Loader mod, but that would introduce extra complications for your end-users. If someone runs your dialogue without installing your mod, then they might find the narrative clashes with the gameplay (because the girl is too reluctant, or too eager).

    Alternatively, you could dig into the dialogueActions framework itself. It has the ability to influence game variables by fiddling with namespaces (although the documentation advises you pretty strongly not to do so because of performance and compatibility risks). There are also built-in commands such as [RESET_RESIST], which might fit your needs.

    How vital is this to your project?

    Do you need to set custom introResistance values for different characters (and/or different scenes within the dialogue)? Or are you looking to do something more straightforward (e.g. set introResistance to maximum whenever a new girl appears)?
  3. aztlan

    aztlan Swell Supporter

    Sep 14, 2013
    Likes Received:
    I would be interested in how you would go about each of these using DA (or mods/files it can load such as Animtools). Thanks.