Malurth-CustomSpawnItems icon

CustomSpawnItems

Allows you to start each game with whatever items you want, specified in the config file. Can optionally also enable cheat hotkeys to spawn items at will in-game.

By Malurth
Last updated 3 years ago
Total downloads 17497
Total rating 5 
Categories Mods
Dependency string Malurth-CustomSpawnItems-1.0.1
Dependants 2 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-3.0.0 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 3.0.0
tristanmcpherson-R2API-2.3.7 icon
tristanmcpherson-R2API

A modding API for Risk of Rain 2

Preferred version: 2.3.7

README

Custom Spawn Items

By Malurth

Lets you spawn with whatever item configuration you desire, fully configurable in the, uh, config file. Also, if you want I included some configurable hotkeys that will let you spawn items at will in-game, though you have to set "EnableCheats" to true in the config file. It is disabled by default.

How use?

By default this mod does nothing, you have to run the game once with the mod installed for it to generate a config file in BepInEx/config.

The items you spawn with are governed by the "ItemList" variable in the config file. I set it up so you just input the Item ID, followed by how many you want, separated by a comma. You can keep inputting pairs of itemID + amount as much as you want. A list of the item IDs can be found here: https://riskofrain2.fandom.com/wiki/Item_ID_List

So an example would look like:

ItemList = 57,10,8,5

This will spawn you with 10 Energy Drinks and 5 of Paul's Goat Hoof. Hooves. The mod removes everything that isn't a number or a comma from this list so if you want you could put like

ItemList = 57(drinks),10, 8(hooves),5

if you want to leave some notes for yourself. Just try to remember not to leave a trailing comma for now :p

Similarly, the "EquipIndex" variable lets you choose an equipment to spawn with. You can find a list of equipIDs here: https://pastebin.com/c6DWBUuh

Both of these settings can be effectively disabled by leaving them blank, or putting a negative number for the equipID.

Also, I included some cheat hotkeys you can configure/enable. When pressed, they'll spawn a random item of tier 1, 2, and 3, one hotkey for each. Oh, and the hotkeys use a text description of the key rather than a code like the item IDs. If you're unsure use https://docs.unity3d.com/ScriptReference/KeyCode.html as a reference, the names are all there if you scroll down a little.

Multiplayer?

I think it'll still work if you're the host lol idk

pretty sure if it throws any error messages at you it's gonna repeat it for each player tho hahahaha

Changelog

1.0.0: Released 1.0.1: Updated this readme to include equipID list, thanks to the kindness of a stranger providing me with one (thx FROST)