Intro:
Hello, I'm currently working on a project that is working heavily with variables. It's a great thing and it taught me a lot so far, however I ran into a problem that is beyond my knowledge.
Problem in details:
I have a variable:
void OnStart()
{
SetGlobalVarInt("VarNumber", 0);
}
It's Global since I think we need to carry it into extra_english.lang and it's Int since other functions later on are mathematically working with this variable.
Here's the problem... I want to display the variable number as a message, hopefully with some other text. My try was doing the following:
void ShowcaseFunction()
{
SetMessage("Messages", "NumberStatus" + GetLocalVarInt("VarNumber"), 0);
}
But that doesn't work since what it essentially does is looking for "NumberStatus0" and that doesn't exist.
I need a way of displaying the variable in the message itself.
TL;DR problem:
You have a variable that is a number. How can you display the number on player's screen?
Did you try looking for a solution somewhere else?
Yes, I'm usually not asking for help with scripts, but this got me. I'm looking for 2 days now and Google nor FrictionalGamesWiki didn't provide me with proper answer.
Thanks in advance for any response.