Scrap Mechanic

Scrap Mechanic

Không đủ lượt đánh giá
Custom Loot
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Kích cỡ file
Đã đăng
Đã cập nhật
249.540 KB
16 Thg04, 2024 @ 5:53am
5 Thg12, 2024 @ 12:02pm
11 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
Custom Loot

Trong 1 bộ sưu tập tạo bởi MasterKratos12
MasterKratos12's Additions
3 vật phẩm
Mô tả
This is a dependancy mod that adds custom loot. It integrates loot of other mods with the game.


Loot Terminal
Adding custom loot manually is quite inconvenient. So, this mod comes included with a custom loot editor accessible in-game. The structure of the GUI is described as follows:

  1. Loot Table
    • Displays the current selected loot table
    • Click on it to change current loot table
    • It represents the name of the loot table (for example, "loot_haybot", "loot_farmbot")
  2. Random Loot
    • Displays the current selected random loot
    • Click on it to change current random loot
    • It represents the table of all loot elements which are spawned randomly
  3. Select Loot
    • Displays the current selected select loot
    • Click on it to change current select loot
    • It represents the table of all loot elements which are spawned randomly, however only one is spawned unlike random loot where more are spawned depending on slots
  4. Overall Chance
    • Displays overall chance of the selected loot table
    • Click on it to edit the value (press enter after typing to confirm change)
    • It represents the chance of triggering the loot table (for example, a overall chance of 2 means the loot will be spawned at a 1 in 2 chance)
  5. Slots
    • Displays slots of the selected loot table
    • Click on it to edit the value (press enter after typing to confirm change)
    • It represents the number of loot spawned which can be picked up
  6. Chance
    • Displays relative chance of the selected random loot or select loot
    • Click on it to edit the value (press enter after typing to confirm change)
    • It represents the relative chance of spawning between the loot elements (for example, if one loot element has 1 relative chance and the other 9, then 90% of the time the second will spawn while 10% of the time first will spawn instead)
  7. Quantity
    • Displays quantity of the selected random loot or select loot
    • Click on it to edit the value (press enter after typing to confirm change)
    • It represents the quantity of loot spawned
  8. Uuid (Item)
    • Displays uuid (item) of the selected random loot or select loot
    • Click on it to select an item (press 'E' or close GUI to confirm change)
    • It represents the loot item spawned
  9. Create New (Loot/Random/Select)
    • Creates a new (Loot table/Random loot/Select loot)
    • Entered value must be non-empty and (Loot table/Random loot/Select loot) name must be unique
  10. Delete (Table/Random/Select)
    • Delete the current selected (Loot table/Random loot/Select loot)
    • (Loot table/Random loot/Select loot) cannot be deleted if it is the only one in the file
  11. Randomization Functions (All the ... buttons)
    • Sets a function to randomize values
    • Click on it to select randomization function
    • Note: For randomStackAmount function, you must input min (least value), mean (average value) and max (maximum value)
  12. Toggle Buttons (On or Off)
    • Toggles random loot or select loot
    • If turned off, the corresponding loot will not be saved in the file
    • Either one must always be toggled
  13. Save File
    • Saves all the data in the file
    • The path to the saved file is 'workshopcontent3879903224128169CustomLootCustomLoot.json' (A format of the custom loot table is given in the mod's folder)

How to create custom loot
Here is a step by step guide to create your own loot.

Step 1: Place the part and interact with it to get started
Step 2: Create a new loot table by pressing the respective button
Step 3: Name must be unique and non-empty. For this guide, I've named it 'loot_haybot'
Step 4: For simplicity, select loot is turned off. Now set the uuid (item)
Step 5: Now change overall chance value, pressing enter after typing to confirm it. Do the same for slots, chance and quantity
Step 6: Save the file
Step 7: Go to the mod's CustomLoot folder --> 'workshop\content\387990\3224128169\CustomLoot'
Step 8: Copy the entire folder and place it in your mod's script folder
Step 9: Load the mod on any custom game. I have loaded Modded Craftbot Recipes in my case
Step 10: Voilà! you have made your very own customized loot. If everything was done correctly, you should see your mod uuid in the dev console next to custom loot

Note: Only mods which are updated in the mod database will have their custom loot loaded in-game

Credits
Big Thanks to Modded Craftbot Recipes, Modder Utilities and their creators for their valuable assistance in making this mod possible.
3 bình luận
unknown81311 15 Thg09, 2024 @ 11:13pm 
fant00™️ gonna DMCA you for having the same style of preview image
MasterKratos12  [tác giả] 24 Thg04, 2024 @ 1:59pm 
In detail: There will be a part in the game which will allow you to access the GUI. Once you're in the GUI, you will be to add loot easily. Once you save the json file, you will have to go to the mod's folder which is steam/workshop/content/387990/3224128169/Loot/CustomLoot.json. copy that file once you're done in game editing the loot and save it and put it in your mod's CustomLoot folder which is [your mod name]/Scripts/CustomLoot
Romania Floppa 23 Thg04, 2024 @ 10:52pm 
to complex can it be posibile to make a menu in the game