dialogue system changes
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
]
|
||||
},
|
||||
"welcome": [
|
||||
"Oh hello, [color=blue]{player}[/color]... You look great! What do you want from me?",
|
||||
"Hey, [color=blue]{player}[/color]! Hope you have fun today! So what do you want?",
|
||||
"Hi! What's up [color=blue]{player}[/color]?"
|
||||
"Oh hello, {player}... You look great! What do you want from me?",
|
||||
"Hey, {player}! Hope you have fun today! So what do you want?",
|
||||
"Hi! What's up {player}?"
|
||||
],
|
||||
"else": [
|
||||
"Do you need something else?",
|
||||
@@ -23,7 +23,7 @@
|
||||
],
|
||||
"goodbye": [
|
||||
"Was nice talking to you goodbye!",
|
||||
"Have a great day, [color=blue]{player}[/color]!"
|
||||
"Have a great day, {player}!"
|
||||
],
|
||||
"tipp": [
|
||||
[
|
||||
|
@@ -11,7 +11,7 @@ script = ExtResource("1_xtj1q")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="typewriter_timer" type="Timer" parent="."]
|
||||
wait_time = 0.05
|
||||
wait_time = 0.04
|
||||
one_shot = true
|
||||
metadata/charsAtOnce = 60
|
||||
|
||||
|
@@ -17,6 +17,7 @@ public partial class dialog_bubble : CanvasLayer
|
||||
}
|
||||
public void GetDialog(string file, string title, Variant actor, string playerName)
|
||||
{
|
||||
playerName = "[color=blue]" + playerName + "[/color]";
|
||||
parsedDlg = Json.ParseString(FileAccess.Open(file, FileAccess.ModeFlags.Read).GetAsText().Replace("{player}", playerName));
|
||||
GetNode<Label>("box/name_label").Text = title;
|
||||
GD.Print("Now talking to: " + actor);
|
||||
|
Reference in New Issue
Block a user