From ad106ea5aa62c2dd0d7b34e3db8ae373378aee12 Mon Sep 17 00:00:00 2001 From: Vamist Date: Wed, 9 Dec 2020 22:33:32 +0000 Subject: [PATCH] Config file now loads into character dictionary --- CoreScripts/Character/BlobCharacter.as | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CoreScripts/Character/BlobCharacter.as b/CoreScripts/Character/BlobCharacter.as index 76dcee2..666f36e 100644 --- a/CoreScripts/Character/BlobCharacter.as +++ b/CoreScripts/Character/BlobCharacter.as @@ -182,9 +182,11 @@ class BlobCharacter : Character // Temp work around until cfg has a get all keys func (would be named keys, but its an illegal name >:( ) string[] configKeys = cf.read_string("keys").split(';'); + // Todo -> error if not found for (int a = 0; a < configKeys.length; a++) { - print(configKeys[a] + ' a'); + string text = cf.read_string(configKeys[a]); + AddResponse(configKeys[a], text); } } -- knotmirror 0.0.1