/*

    Fan Made Fallout Dialogue Tool
         dialogue script file

 -- hand editing this file is not recommended

 Created with version 0.27.0-stable

*/

NPCName "Madeline"
Location "Carnival - Lone Star"
Description "Find the ball under the cups game."
Unknown_Desc "You see an older woman in her mid-fifties. "
Known_Desc "You see Madeline."
Detailed_Desc "This lady looks, and smells, like she's had her fair share of smokes."
/* Dialogue starting conditions */

start_conditions
default_condition 0
{
cond target_node ""
{
    SSL "local_var(LVAR_Herebefore) == 0" var_param "" eval -1 value_to_check "" ini_index 6 link 0
}
};

/* Float message nodes */

Floatnode "Entice"
notes "These are floater nodes used to entice the PC to play the game."
{
"Find the balls under the cup!",
"Step right up, test your luck",
"That's right, only 5 caps a try!",
"You could buy an iguana-on-a-stick for that much!",
"Come 'ere, I haven't had a customer all day",
"I need a cigarette.",
"*cough, cough*"
}

/* Regular nodes */

Node ""
notes ""
is_wtg = false
{
NPCText ""
      options {
              }
}
Node "Start_01"
notes "Never talked to PC before."
is_wtg = false
{
NPCText "Find the ball under the cup, only 5 caps a try! Will your eyes be able to follow my famous flying fingers? Come on, give it a shot!"
      options {
          int=9 Reaction=REACTION_NEUTRAL playertext "Wait a second, i've heard of this before. You're just going to slip it up your sleeve, aren't you?" linkto "Madeline_Mad"  notes ""
          int=4 Reaction=REACTION_NEUTRAL playertext "Sure, i'll give it a shot." linkto "Luck_roll"  notes "Must have a perception higher than 7, otherwise automatic lose."
          int=4 Reaction=REACTION_NEUTRAL playertext "Nah, this game isn't really my style. Goodbye." linkto "done"  notes ""
          int=-3 Reaction=REACTION_NEUTRAL playertext "Yes, me try." linkto "Luck_roll"  notes ""
          int=-3 Reaction=REACTION_NEUTRAL playertext "No thanks. Me leave now. Goodbye." linkto "done"  notes ""
              }
}
Node "Winner"
notes ""
is_wtg = true
{
NPCText "[Suddenly, you notice a tiny red blur moving up the woman's arm. As you begin to point this out, she quickly stops you and tells you that you've won.]"
      options {
          int=4 Reaction=REACTION_NEUTRAL playertext "[More]" linkto "Winner2"  notes ""
          int=-3 Reaction=REACTION_NEUTRAL playertext "[More]" linkto "Winner2"  notes ""
              }
}
Node "Madeline_Mad"
notes ""
is_wtg = false
{
NPCText "Of course not! [She leans in close] Now look here, bud, that may be the case but I don't need you spreading that kind of shit. I'm trying to run a business here, and I don't need people like you screwing it up."
      options {
          int=4 Reaction=REACTION_NEUTRAL playertext "'Business' is a good word. 'Con' would be better." linkto "Madeline_Mad2"  notes ""
          int=4 Reaction=REACTION_NEUTRAL playertext "All right, all right, no need to get mad. I'll be on my way. Goodbye." linkto "done"  notes ""
              }
}
Node "Luck_roll"
notes ""
is_wtg = false
/* Skill checks for node Luck_roll */

      define_skill_check Skill_Check_000_Luck {
      skill_num = 17;
      difficulty_modifier = 0;
      onsuccess => Winner;
      onfailure => Loses;
      }

{
NPCText "[Madeline takes a ball from her pocket and sets it under one of the cups. She then begins to move the cups in a figure eight pattern faster and faster. The cups and her fingers become a blur.]"
      options {
          int=4 Reaction=REACTION_NEUTRAL playertext "[More]" linkto "Loses" conditions { CHECK_STAT perception <= 6 link_next AND, CHECK_STAT luck <= 4 link_next AND } notes "Player loses"
          int=4 linkflags skill_check Reaction=REACTION_NEUTRAL playertext "[More]" linkto "Skill_Check_000_Luck" conditions { CHECK_STAT perception >= 7 link_next AND, CHECK_STAT luck >= 5 link_next AND } notes ""
              }
}
Node "Start_02"
notes "Talked to PC before."
is_wtg = false
{
NPCText "Would you like to try to find the balls under the cup for only 5 caps?"
      options {
          int=4 Reaction=REACTION_NEUTRAL playertext "Sure, i'll give it a try." linkto "Luck_roll"  notes ""
          int=4 Reaction=REACTION_NEUTRAL playertext "I think i'll pass on that option. Goodbye." linkto "done"  notes ""
              }
}
Node "Loses"
notes ""
is_wtg = true
{
NPCText "[You randomly select a cup and the woman slowly picks it up. Alas, there is nothing inside.]"
      options {
          int=4 Reaction=REACTION_NEUTRAL playertext "[Done]" linkto "done"  notes ""
          int=-3 Reaction=REACTION_NEUTRAL playertext "[Done]" linkto "done"  notes ""
              }
}
Node "Madeline_Mad2"
notes ""
is_wtg = false
{
NPCText "I'm just doing my job. If people see it any other way, then that's their problem not mine."
      options {
          int=4 Reaction=REACTION_NEUTRAL playertext "Whatever. Goodbye." linkto "done"  notes ""
              }
}
Node "Winner2"
notes ""
is_wtg = true
{
NPCText "Congratulations! Here's your 10 chips."
      options {
          int=4 Reaction=REACTION_NEUTRAL playertext "[Done]" linkto "done"  notes ""
          int=-3 Reaction=REACTION_NEUTRAL playertext "[Done]" linkto ""  notes ""
              }
}
