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
Murasaki 5 3 Aug, 2020 @ 9:42am
Is there a way to make a scrypt to kill all infected?
I saw a custom map, which was playing by imKibitz: https://www.youtube.com/watch?v=O0JNW7WgJp4&list=PLMmqC65vzdRntmhFUVF7f4bXXIsvyBArh&index=56&t=0s 40:55

I wonder how it was make? I'm planning to make a great swarm, that will destroy any colony and place a scrypt to kill every zombie. Can someone help how make a scrypt, to kill everything?
< >
Showing 1-11 of 11 comments
JustGoFly 6 3 Aug, 2020 @ 10:15am 
Just to save others the time - it happens around 40:50 into the video.

This was discussed in another thread. I'll see if I can find out how he did that. It is some trick he found, not part of the language.

Also - you can NOT kill all infected on a map.

Only thing I can think he did is that he set the Win condition to true, which would have killed everything on the map. Then had nothing set in the win event to show completion. Then he setup a trigger on the final passage to show a win condition. I'd have to test this to see if it let's you continue to play after winning.
Last edited by JustGoFly; 3 Aug, 2020 @ 10:25am
Murasaki 5 3 Aug, 2020 @ 10:39am 
Well It is always better ask. Thanks JustGoFly for your help. I appreciate this.
JustGoFly 6 3 Aug, 2020 @ 3:13pm 
Well It's NOT setting the game win condition. The map author seems to have a trick that I don't know about. also there is a DEFINE entity, that is undocumented, although it references GameState, which is completely undocumented, and it says only works in campaign mode. As far as I know there are no modes that we can set or that are documented. So this is a mystery.
I would say it's more like a bug OR POBmaestro did a tricky script where giants have an ID and he gave them impossible/incoherent orders that would kill them. Not sure tho
POBmaestro 61 4 Aug, 2020 @ 4:57am 
The only special "trick" I employed with this map is the fact that the player and thus the infected cannot actually reach the Command Center due to the iron fencing (apart from units glitching through). When infected cannot reach the Command Center they gradually die; I believe this is by way of design by the game devs to kill infected that spawn in unreachable areas of the map preventing the game from being won (though annoyingly it doesn't always work that effectively).

I didn't intend to have the infected die like this, though it is a nice unintended "feature". On this map the infected seem to slowly die off from around day 53 which is the last of the repeating waves. So it would seem so long as there are scripted waves the infected don't lose hope and die...sadly however there is no way to script a kill all infected command. This map has quite a unique set-up where the player can capture buildings, upgrade them and restore power to the Command Center but not actually control it, which may it hard to reproduce this "feature".

On one map I used scripts to spawn infected on landmines which causes the landmine to explode which can create chain reactions using the red explosive barrels. This can be used to kill groups of infected, however as KarEssMoua found out when testing this map, the player can double click on the landmine and sell them all for a big iron and gold boost! So this technique has to be used carefully, and I only really used this in set-pieces where I could hide landmines behind/underneath things.

Sorry this isn't exactly what you were after but I hope this helps. Really the editor is quite basic and it is up to our creativity to come up with novel solutions :)
Murasaki 5 4 Aug, 2020 @ 5:26am 
Thank you all for advice. Now I know situation. I was very helpfull. Best wishes for all of you.
JustGoFly 6 4 Aug, 2020 @ 5:52pm 
@POBmaestro, I appreciate the information. I had a feeling this was the case, and spent some time trying to reproduce killing infected on the map, without success. I was unsure if there was some undocumented variable that could be accessed from within the game, so your clearing it up is certainly helpful. I enjoyed watching the video of Kibitz playing your map and the unique design.
Warlock 12 23 Nov, 2020 @ 11:47am 
Try setting all infected health regeneration to a negative number.
Gomez 3 Dec, 2020 @ 1:34am 
Hello

Guys, check the new functions in the ZXCode that can help to solve the question of the topic

https://steamhost.cn/steamcommunity_com/workshop/discussions/18446744073709551615/2972902451420566175/?appid=644930

The last updated allow to do this.

Regards
POBmaestro 61 3 Dec, 2020 @ 3:24pm 
@Gomez thanks to you and the devs for making and testing this new feature! It's now officially possible to kill all the infected! I made a video to celebrate:

https://youtu.be/HFSXnMM1-lg
Murasaki 5 4 Dec, 2020 @ 11:38am 
Originally posted by Gomez:
Hello

Guys, check the new functions in the ZXCode that can help to solve the question of the topic

https://steamhost.cn/steamcommunity_com/workshop/discussions/18446744073709551615/2972902451420566175/?appid=644930

The last updated allow to do this.

Regards

Thank You. This is even more than I want. Now I can do more. Nor only kill infected, but damage defenders. One dream come true. :D
< >
Showing 1-11 of 11 comments
Per page: 1530 50