i was thinking about making a scripting system for my game, but i don't know how could i make dbp read the file like
PrintString()
{
TextLine$="This is simple line of text."
AddConsole(TextLine$)
}
and execute it in real time, this is sample script file all it should do is to print text line in console of the game?
How could i get this to work?
i had an idea of dbp reading line by line and storing function in array or something and then execute it on call time from another script like PrintString() but i don't know how to do this.