:stella_shop
  Stella ("What are you looking for?", "Buy animals", "Sell animals", "Others", "Just Chat", "Nothing", "Nothing")
  if response == "Buy animals"
    wait 10
    js Managers.Shop.buyBrittanyAnimals();
    return
  end

  if response == "Sell animals"
    wait 10
    js Managers.Scenes.snapForBackground();
    js Managers.Scenes.push(GameScenes.SellAnimals);
    return    
  end

  if response == "Others"
    wait 10
    js Managers.Scenes.snapForBackground();
    js Managers.Scenes.push(GameScenes.OrangeTownFarmShop);
    return
  end

  if response == "Just Chat"
    js Managers.Villagers.forceChatWithVillager('Stella');
    return
  end

:sell_animal
  js Variables.animalSold = Variables.creatureToSell.creatureName

  if !Managers.Creatures.sellCreature(Variables.creatureToSell)
    Notice "<color:name><var:animalSold></color> can't be sold."
    return
  end

  Notice "<color:name><var:animalSold></color> was sold."

:buy_animal_complete
  js Managers.Creatures.createPurchasedCreature();
  Notice "<mid><color:name><lastCreatureName><color:default> was delivered to your farm."

:buy_coop_animal_failed
  Notice "<mid>There's <color:negative>no room</color> for this animal on your farm. You may need a new <color:important>coop</color>."

:buy_barn_animal_failed
  Notice "<mid>There's <color:negative>no room</color> for this animal on your farm. You may need a new <color:important>barn</color>."

:stella_buy_rooster
  Stella ("Do you want to buy this rooster? It's $ 5,000.", "Buy the rooster", "Don't buy the rooster", "Don't buy the rooster")
  label buy_rooster_question
  if response == "Buy the rooster"
    if Managers.Items.gold >= 5000
      if ChickenFestivalContent.prepareRoosterCreature()
        Stella "Okay! Will you give your new rooster a name?"
        js Managers.Creatures.inputNameForAnimal('stella_buy_rooster_complete')
      else
        Stella "Looks like you'll need a new <color:important>coop<color:default> first, or this rooster won't have anywhere to live."
      end
    else
      Stella "You need $ 5,000 to buy a rooster, <name>."
    end

    return
  end

:stella_buy_rooster_complete
  js Managers.Items.loseGold(5000);
  + Managers.Creatures.createPreparedCreature();
  switch boughtFestivalAnimal ON
  Stella "Thank you! I'll have <color:name><lastCreatureName></color> delivered to your farm soon."
