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
Why won't these ApplyRules work?
After reading the level editing guide again, I tried to add the following rules to my custom map:


ApplyRules("RangerAttack DamageType = Fire; RangerAttack BurnFactor = 70%");
// Doesn't work. Rangers don't ignite targets when arrows hit them. They just do normal arrow damage instead of fire damage.

ApplyRules("Warehouse ResourcesStorage +100");
// Doesn't work. No idea why. I've played custom maps by other people that increase resource storage by a huge amount, I can't seem to do it for my custom map.

ApplyRules("Ranger Armor +200%; RangerAttackVeteran Armor +400%");
// Normal rangers get 15% armor but veteran rangers do not get 25% armor. They get 15% armor same as normal rangers get. No idea why.

ApplyRules("Ranger WatchRange +2; RangerAttackVeteran WatchRange +4");
// Normal rangers get 2 extra view distance, but veteran rangers also get only 2 extra view distance, not 4 extra as I defined in my rule. No idea why.


None of my above rules throw an error in the game, they just don't work. If anyone sees a typo or knows a way to make these work I'd like to know.

Thanks in advance if anyone replies to this.
Last edited by Winter Dragon; 8 Feb, 2023 @ 1:57pm
< >
Showing 1-4 of 4 comments
Hi

1) For having units dealing fire damage, if I recall well, you only need to use one fire variable. And I think to use burnfactor you don't need % as it is counted in milisec. So no percentage.

2) You need to use % AND put a space between the + and your number.

3) Put a space between the + and your number, and do not use RangerAttackVeteran.

4) WatchRange is a bugged variable that hadn't been fixed. It wont work in any case.

Hope it has been helpful!
Winter Dragon 8 Feb, 2023 @ 6:51pm 
re 1: Not sure what you mean by 'use one fire variable'. I did change BurnFactor to "+ 70" but no change in the game. Rangers still shoot normal arrows and don't set targets on fire.

re 2: For Warehouse I changed "ResourcesStorage +100" to "ResourcesStorage + 100%". That didn't change anything in game when I next tested my map. The Warehouse still gives vanilla storage amounts.

re 3 and 4, it appears that whatever armor and watchrange I give the normal ranger, the veteran ranger inherits the same. So giving the veteran ranger separate armor and watchrange values does absolutely nothing.
Put a capital on H of Warehouse. Like this: WareHouse

Try to change the armor with simple numbers and not percentage then. I know that changing in a bit a pain in the ass
Winter Dragon 9 Feb, 2023 @ 2:58am 
WareHouse worked. Thanks!
< >
Showing 1-4 of 4 comments
Per page: 1530 50