changed a value and some formatting
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"randomWelcomeText":[
|
"randomWelcomeText":[
|
||||||
"Oh hello, §player§... You look great! What do you want from me?",
|
"Oh hello, {player}... You look great! What do you want from me?",
|
||||||
"Hey, §player§! Hope you have fun today!",
|
"Hey, {player}! Hope you have fun today!",
|
||||||
"Hi! What's up §player§?"
|
"Hi! What's up {player}?"
|
||||||
],
|
],
|
||||||
"debugAnswer": "Cool master you set me up successfully for this simulation!",
|
"debugAnswer": "This is a debug answer!",
|
||||||
"randomGoodbyeText":[
|
"randomGoodbyeText":[
|
||||||
"Was nice talking to you goodbye!",
|
"Was nice talking to you goodbye!",
|
||||||
"Have a great day, §player§!"
|
"Have a great day, {player}!"
|
||||||
]
|
]
|
||||||
}
|
}
|
@@ -12,8 +12,7 @@ public partial class dialog_trigger_area : Area2D
|
|||||||
|
|
||||||
var jsonFile = JSON.ParseString(text);
|
var jsonFile = JSON.ParseString(text);
|
||||||
Dictionary allDialog = (Dictionary)jsonFile;
|
Dictionary allDialog = (Dictionary)jsonFile;
|
||||||
|
GD.Print(allDialog["randomWelcomeText"]);
|
||||||
GD.Print(allDialog["debugAnswer"]);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user