Torchlight II

Torchlight II

您的《火炬之光 II》修改站
这里允许您找到几乎无限多的 Torchlight II 自定义模组。使用 GUTS 编辑器几乎可以改变游戏的任何东西,然后将您的创造与社区分享。点击这里了解更多。
-bLink 2017 年 10 月 6 日 上午 8:06
Merchant Modding
Hi, I was wondering if someone can answer these questions:

1) How do you add a custom item to a NPC? or how can you have a modded items on the very start of the game drop on the ground?

2) How do you add a merchant to the game and place it on an existing map?

I hope someone can help me. I know this might be hard to answer and might take long, but pointers would be helpful. I would like to discover things on my own but I don't have that much time on my hands. Thank you in advance.
< >
正在显示第 1 - 3 条,共 3 条留言
steffire3 9 2017 年 10 月 6 日 下午 4:47 
I highly recommend Torch Modders for this infomation.

http://torchmodders.com/forums/index.php
-bLink 2017 年 10 月 6 日 下午 10:34 
引用自 steffire3
I highly recommend Torch Modders for this infomation.

http://torchmodders.com/forums/index.php

thanks, good sir.
TheHaplessWanderer 7 2024 年 6 月 9 日 下午 12:55 
The site is no longer available. Thankfully, I can answer the first part of OP's question since I just found it out myself thanks to this post: https://www.torchlightfansite.com/torchlight-2-forums/torchlight-2-modding/6934-item-creation-help-post24762.html#post24762

After creating an item, you need to go into Spawn Classes and look for MERCHANT_GENERAL_INVENTORY or the specific inventory you want, and then add it as a choice on the right side.

To spawn an item in the world, you first need to load the layout file for the location, and then you need to add a Unit Spawner to the layout that spawns your given item. Finally, delete everything else in the layout and save the result as an identical path to the base game in your mod folder (MEDIA/LAYOUTS/...), but in the final folder in your mod's layout path where the original layout was, create a "MERGE" folder and then save your layout there (any custom name is fine). (If you are creating a custom map, then there is no need to delete everything else.)

Finally, to add a custom merchant, create the Monster clone of an existing merchant for them, then create a custom Spawn Class using one of the existing merchant classes as an example and add your items to it, then tie it to your merchant in Monster in the "Inventories" section, and then finally add it to the world the same way you add the Unit Spawner above.
最后由 TheHaplessWanderer 编辑于; 2024 年 6 月 9 日 下午 5:09
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50