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

Trying to combine something for dialogue.

Discussion in 'Help' started by Bobert216, Aug 18, 2015.

  1. Bobert216

    Bobert216 Vivacious Visitor

    Joined:
    Apr 23, 2015
    Messages:
    59
    Likes Received:
    3
    So I am writing some unique dialogue where I want the girl to scream a few times and then after that amount is met she stops. Now I already know how to do this but I am not sure how to combine it with the ability (Dialogue 01) that only certain dialogue will be used in certain positions.

    For example I want it so that if the woman is still able to scream and HIM is about to precum with her vaginally (using Animtool) she will scream something like: "NO! I DON'T WANT TO GET PREGNANT!"

    Now there is a way of doing this (as seen in Dialogue 02) but my problem is I am not sure how to combine the two dialogues.

    Dialogue 01:

    Dialogue 02:

    Any help with this will be appreciated. ;D
     
  2. Pim_gd

    Pim_gd Swell Supporter

    Joined:
    Jan 25, 2013
    Messages:
    718
    Likes Received:
    46
    Code:
    pre_cum:"NO! I DON'T WANT TO GET PREGNANT!" {"check":{"atv_position":2, "scream":"<3"}}
    
    Another method would be to use DialogueActions's variable arithmetic module to write a compound if statement with a single result (that is, an if statement that returns true if multiple things are true).

    Code:
    pre_cum:"[precumscream*( scream < 3 ) && ( atv_position == 2 )*]" {"style":"Him"}
    precumscream0:"[pre_cum]" {"style":"Him"}
    precumscream1:"[precumscream1*da.canSpeakLineTrigger*]" {"style":"Him"}
    precumscream10:"conditions met, but she can't speak due to ingame reasons" {"style":"Him"}
    precumscream11:"NO! I DON'T WANT TO GET PREGNANT!"
    
    It's more lines and an extra mod dependency, so I understand if that's not really what you're looking for - I wouldn't recommend this method in this specific case either - but if you need more complex requirements, then you'll quickly require the use of DialogueActions's variable arithmetic.
     
  3. Bobert216

    Bobert216 Vivacious Visitor

    Joined:
    Apr 23, 2015
    Messages:
    59
    Likes Received:
    3
    This might actually help. Thank you. :D
     
  4. aztlan

    aztlan Swell Supporter

    Joined:
    Sep 14, 2013
    Messages:
    507
    Likes Received:
    15
    Hmm...

    I hadn't seen this before.

    da.canSpeakLineTrigger

    Is that from a recent DA or has it been in there for a while?

    This seems really handy for when I have a string of dialogues where I want Her to say some lines but could use this trigger to work around them if She can't talk.

    I wonder what other clever things are in DA that I've missed...

    [EDIT] Ah - I see it was added way back in 3.04...