They Are Billions

They Are Billions

Custom Levels for They Are Billions
Add custom levels to They Are Billions by subscribing to these workshop items!
Learn More
This topic has been locked
soanfriewack 23 May, 2022 @ 10:46am
How does the Log function work?
I tried to track the game progress by adding a few Log entries to better understand what happened when.
For example:
Log ("Colonists:" {Colonists}")
Log ("Rangers:" {Count(Ranger)}")
But for some reason I never get the number in the Log file.

All I get in the Log file is:
01D 00H Colonists:
01D 00H Rangers:

What am I doing wrong?
Last edited by soanfriewack; 23 May, 2022 @ 10:47am
< >
Showing 1-5 of 5 comments
budisourdog 4 25 May, 2022 @ 4:16am 
I haven't used this function yet but I ask what is it you are trying to do? If you are trying to make an adaptable difficulty that scales to the player use the count function it is a much better tracker. As for your script with the log function try putting it in a loop it seems to be calling out colonists and rangers at the start of the game. Not sure why there isn't a number it should have like 10 colonists from the command center and your 4 starting rangers.
soanfriewack 27 May, 2022 @ 10:37am 
Originally posted by budisourdog:
I haven't used this function yet but I ask what is it you are trying to do?


When I or others playtest my Map, I want to afterwards understand what was going on.
So I use the Log funktion to Log important values and progress throught the game so that I can understand how fast players are pushing back Zombies, how fast their economy/army grows, which units they decide to use, ...

So that I can better understand how to pace and balance my map.
Last edited by soanfriewack; 27 May, 2022 @ 10:40am
soanfriewack 27 May, 2022 @ 10:41am 
Originally posted by budisourdog:
Not sure why there isn't a number it should have like 10 colonists from the command center and your 4 starting rangers.

This is exactly my problem. The Log function is pretty useless when it does not Log numbers.
JustGoFly 6 30 May, 2022 @ 12:58pm 
Log works fine. Your using quotes wrong, try:
Log ("Colonists: {Colonists}")
Last edited by JustGoFly; 31 May, 2022 @ 12:51pm
soanfriewack 31 May, 2022 @ 9:23am 
Ah right, thanks!
< >
Showing 1-5 of 5 comments
Per page: 1530 50