PDA

View Full Version : Question about modding


noli timere
01-12-2020, 11:33 PM
I have been trying to find how to disable or increase rarity of Special Tunnels, as well as attempting to add a chance for a single Dungeon to spawn inside of town generations, any help on this would be welcome.

Shadow
01-15-2020, 02:38 PM
I believe you want to change TunnelChance in world2.gdb (in the expansion) for the secret tunnels and DungeonChance in BaseTown entry in world.gdb for dungeons in towns.

noli timere
01-17-2020, 04:25 AM
I had already figured out the tunnel bit, as for the town dungeon bit that does nothing, i have had it set to many values while testing and it has spawned no dungeons in town, and i am thinking it may have something to do wiith the generation code, but i have been unable to find any code files involving it.

Shadow
01-17-2020, 12:42 PM
Oh, the 2nd problem for dungeons in town (at least the starting town) is you need dungeons specified in the section. So need to add lines like
Dungeon AreaDungeon1
to World1Section. If doing a proper mod, you'll want to do use addsTo instead of overrides for this part.

noli timere
01-31-2020, 04:48 PM
Could you give a example file by chance? for the Addsto method.

Shadow
02-03-2020, 02:21 PM
Could you give a example file by chance? for the Addsto method.

If you have the expansion you can search for addsTo in clans2.gdb and find some examples. If you just have the base game, it probably isn't used anywhere.