Hi guys. I'll make this short and simple.
My player needs to collect 4 Scrap Metals. Before he can proceed to the next map, there will be a validation. The text goes something like this.
"I have [ ] Scrap Metals."
if ScrapMetalsQuantity == 4,
"I have enough Scrap Metals!"
else
"I need " + (4 - ScrapMetalsQuantity) + "more."
How can I implement that in my text window? I don't know if the solution is very simple and I just couldn't get it. I think I'm missing the logic. I don't see a way to perform operations while displaying a text and I don't see a way to assign values to Variables using other variables with operations.
I am familiar with programming logic so plugins and javascript syntax advice is welcome. Any help is appreciated. Thanks!
My player needs to collect 4 Scrap Metals. Before he can proceed to the next map, there will be a validation. The text goes something like this.
"I have [ ] Scrap Metals."
if ScrapMetalsQuantity == 4,
"I have enough Scrap Metals!"
else
"I need " + (4 - ScrapMetalsQuantity) + "more."
How can I implement that in my text window? I don't know if the solution is very simple and I just couldn't get it. I think I'm missing the logic. I don't see a way to perform operations while displaying a text and I don't see a way to assign values to Variables using other variables with operations.
I am familiar with programming logic so plugins and javascript syntax advice is welcome. Any help is appreciated. Thanks!