Community Forum

Buying land through a placable

Forum Overview >> Editor

CategoryEditor
Created09.01.2022 19:03


Frank Bjerre-hellerup (knarffen64) 09.01.2022 19:03
I the basegame, you can buy a piece of land, through the placable.
So when you buy the biogasplant, you get the land that it's placed on, so you can use the bunkers, who need you to be able to tip on the grund.
But where do I set that up?

In the XML for the biogas or in what other XML.

anybody figured that out yet?`

And also

what is the difference between the clear area and the levelarea of a bunker?

Jānis Strautiņš (strauts6) 09.01.2022 19:23
In biogas xml
<boughtWithFarmland>true</boughtWithFarmland>

Frank Bjerre-hellerup (knarffen64) 09.01.2022 20:21
But do I have to specify wich farmland ID is bought with the biogas or does it autodetect it?

Jānis Strautiņš (strauts6) 09.01.2022 21:14
This is how its in default maps
<farmland id="11" priceScale="0" npcName="NPC_US_07" showOnFarmlandsScreen="false" /> <!-- BGA, farmland bought via placeable -->
So i guess it auto detects. why not just test and see what happens?

William Rowe (Bonger76) 10.01.2022 02:20
You just need to do what Jānis Strautiņš stated in your placeable .xml

<base>
<filename>modMap/placeables/yourPlaceable/yourPlaceable.i3d</filename>
<boughtWithFarmland>true</boughtWithFarmland>
</base>
you have to make shure that the placeable is set on the farmland you whant it on and it can't be "0 0 0" for location in the placeable.xml, I ran in to this problem makeing a placeable in the map had it set at "0 0 0" , the "x y z" has to be on the farmland,and then when you buy the land the triggers will work.The " <boughtWithFarmland>true</boughtWithFarmland>" has to be with the placeable.xml if you whant to be able to sell the placeable after you buy the land.


Note: Log in to post. Create a new account here.