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
What is the code that gives points for killing zombies?
I often get lost in Chinese maps. I don't know what code to use. Can you help me?
< >
Showing 1-1 of 1 comments
Mortal 9 31 Jul, 2023 @ 2:43am 
Example: ApplyRules("TentHouse ScorePoints = 5") > This will make every Tent you have worth 5 points at the end of the game.
If you are on a 400% map score, it will give you 5X4=20 points instead.

To make a score based on infected kills, do something like this:
Start with Making a Veraible "ZombieScore" = 0
Then, in the "Game Won?" event make 2 Execute Codes like this:
1) ZombieScore=(CountDeads(Infected)*5)
2) ApplyRules("CommandCenter ScorePoints = {ZombieScore}")
(The codes have to be in this order)

*5 = is the number of points you want to give for each zombie killed.
You can change it to whatever you like. (If you don't want to add any points, use 0 instead.)

If you want to make each Zombie-kill with a different score > use this:
1) ZombieScore=(CountDeads(Infected)+CountDeads(ZombieWorkerA)*5+CountDeads(ZombieWorkerB)*5+CountDeads(ZombieMediumA)*5+CountDeads(ZombieMediumB)*5+CountDeads(ZombieDressedA)*5+CountDeads(ZombieStrongA)*5+CountDeads(ZombieHarpy)*5+CountDeads(ZombieVenom)*5+CountDeads(ZombieMutant)*5+CountDeads(ZombieGiant)*5+CountDeads(DoomVillage)*5)
2) ApplyRules("CommandCenter ScorePoints = {ZombieScore}")
You can't make all weak zombies in count, so you have to use "CountDeads(Infected)" for all zombies, and then add all the other types (like I did). But they will already start with X2 points.

This is how: Click Here [i.ibb.co]
Last edited by Mortal; 31 Jul, 2023 @ 5:46am
< >
Showing 1-1 of 1 comments
Per page: 1530 50