102 lines
3.8 KiB
GDScript
102 lines
3.8 KiB
GDScript
extends Button
|
||
|
||
@onready var character = get_node("/root/GameplayScene/Character")
|
||
@export var vibe: String
|
||
var text_array: Array[String]
|
||
var page = 0
|
||
|
||
func _ready() -> void:
|
||
if self.name == "Positive":
|
||
set_text_array_positive()
|
||
elif self.name == "Neutral":
|
||
set_text_array_neutral()
|
||
elif self.name == "Negative":
|
||
set_text_array_negative()
|
||
|
||
character._next_page_neu()
|
||
set_text_to_page()
|
||
|
||
func set_text_to_page() -> void:
|
||
self.text = text_array[page]
|
||
|
||
func next_page() -> void:
|
||
if page < text_array.size() - 1:
|
||
page += 1
|
||
set_text_to_page()
|
||
character._next_page_neu()
|
||
|
||
func set_text_array_positive() -> void:
|
||
text_array.push_back("Hey Autumn.\n
|
||
I love your name, it’s perfect for this season.\n
|
||
So, what do you do in your daily life?")
|
||
|
||
text_array.push_back("That’s wonderful!\n
|
||
My family always had pets, so naturally I love animals!\n
|
||
What do you like to do for fun?")
|
||
|
||
text_array.push_back("Interesting, you already struck me as the outdoors type who loves nature, I appreciate that.\n
|
||
If you had to name one thing that you love the most about your favorite hobby, what would it be?")
|
||
|
||
text_array.push_back("That’s fascinating,\n
|
||
I can’t say I have met anyone before who is into taxidermy,\n
|
||
but I think it’s very admirable.")
|
||
|
||
text_array.push_back("Aww, aside from when it gets a bit scary at night, that sounds very sweet.\n
|
||
Anyway, aside from taxidermy, what about being outdoors do you like?")
|
||
|
||
text_array.push_back("I know what you mean, it always feels so magical when you’re in harmony with your surroundings.")
|
||
|
||
text_array.push_back("I’m all about reading too! Getting lost in a good book is such a good way to unwind.")
|
||
|
||
text_array.push_back("The feeling is mutual, Autumn!\n
|
||
I love how passionate you are about what you do.\n
|
||
I’d love to chat more soon.")
|
||
|
||
func set_text_array_neutral() -> void:
|
||
text_array.push_back("Hey Autumn.\n
|
||
Nice to meet you.\n
|
||
So, what do you do in your daily life?")
|
||
|
||
text_array.push_back("Wow, you sound… ambitious.\n
|
||
I don’t have any pets, but I guess you could say I do like animals.\n
|
||
What do you like to do for fun?")
|
||
|
||
text_array.push_back("Get out of my head, me too!\n
|
||
If you had to name one thing that you love the most about your favorite hobby, what would it be?")
|
||
|
||
text_array.push_back("That sounds cool, do you have a favorite piece?")
|
||
|
||
text_array.push_back("You seem very passionate, I respect that.\n
|
||
Anyway, aside from taxidermy, what about being outdoors do you like?")
|
||
|
||
text_array.push_back("Well, I know a few trails myself.\n
|
||
Maybe you’d like to go on a hike together sometimes?")
|
||
|
||
text_array.push_back("I don’t think I would last more than an hour without access to the internet")
|
||
|
||
text_array.push_back("It was nice to meet you too. I hope you have a good time with your next dates.")
|
||
|
||
func set_text_array_negative() -> void:
|
||
text_array.push_back("Hey “Autumn?”\n
|
||
Is that your real name or just some nickname for the season?\n
|
||
So, what do you do in your daily life?")
|
||
|
||
text_array.push_back("That sounds hectic.\n
|
||
I don’t really like animals, especially sick ones.\n
|
||
What do you like to do for fun?")
|
||
|
||
text_array.push_back("Wow, run of the mill with you it seems.\n
|
||
If you had to name one thing that you love the most about your favorite hobby, what would it be?")
|
||
|
||
text_array.push_back("Taxidermy? That’s kind of weird.\n
|
||
By the way, is it me or did you also hear the alarm go off just now?")
|
||
|
||
text_array.push_back("So in the honor of an old man, you’re stuck with a scary lion?\n
|
||
How unfortunate.")
|
||
|
||
text_array.push_back("If I had to walk a long distance with nothing in sight but trees I would be bored out of my mind!")
|
||
|
||
text_array.push_back("A book? I don’t know, I get bored pretty quickly.")
|
||
|
||
text_array.push_back("Yeah, thanks for the chat. Good luck with the taxidermy, I guess.")
|