slayer6409-Emergency_Dice_Updated icon

Emergency Dice Updated

Last ray of hope in a hopeless situation?

Last updated 2 weeks ago
Total downloads 326349
Total rating 20 
Categories Mods Misc Client-side Server-side Equipment Items Monsters
Dependency string slayer6409-Emergency_Dice_Updated-1.7.4
Dependants 160 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Evaisa-HookGenPatcher-0.0.5 icon
Evaisa-HookGenPatcher

Generates MonoMod.RuntimeDetour.HookGen's MMHOOK file during the BepInEx preloader phase.

Preferred version: 0.0.5
Rune580-LethalCompany_InputUtils-0.7.7 icon
Rune580-LethalCompany_InputUtils

API/Library for creating Unity InputActions with in-game re-binding support. Provides an alternative UI that allows for supporting mods to have in-game re-bindable keybinds.

Preferred version: 0.7.7
Evaisa-LethalLib-0.15.1 icon
Evaisa-LethalLib

Personal modding tools for Lethal Company

Preferred version: 0.15.1

README

Emergency Dice

This mod adds new items (equipment and scrap)

Emergency Die

Updated version of: https://thunderstore.io/c/lethal-company/p/Theronguard/Emergency_Dice/ Their Github Repo: https://github.com/Theronguard/Emergency-Dice

Check out that mod if you don't want my changes!

This is an item you can buy from the store. It is a one time use only die, which teleports you to the ship with all your items. But, not always.

  • Rolling 6 will return you to the ship with all the crewmates standing near you (they need to be very close).
  • Rolling 4 or 5 will return you to the ship.
  • Rolling 3 will cause a mixed effect.
  • Rolling 2 will cause something bad to happen.
  • You don't want to roll a 1.

API

You can now add your own dice effects in your own mods there is an example mod on how to do that here: https://github.com/slayer6409/Dice-Addon

The Gambler

A new scrap item with rolling outcomes similar to the Emergency die, but with a larger pool of postivie effects and a bigger chance for a bad outcome.

  • Rolling 6 will cause a Great effect.
  • Rolling 5 will cause a Good effect.
  • Rolling 4 will cause either a Good or a Mixed effect.
  • Rolling 3 will cause a Bad effect.
  • Rolling 2 will cause either a Bad or an Awful effect.
  • Rolling 1 will cause an Awful effect.

You can either sell it, or use it.

Chronos

Similar to The Gambler. Has a higher chance of getting a great effect, but the outcomes change when the time passes. As the night comes, the chances to roll a bad/awful effect increase.

It's probably better to use it earlier in the day, but this can make your whole day troublesome.

  • Rolling 6 will cause a Great effect.
  • Rolling 5 will cause a Good or a Great effect.
  • Rolling 4 will cause either a Bad, Good or a Great effect.
  • Rolling 3 will cause a Bad effect.
  • Rolling 2 will cause either a Bad or an Awful effect.
  • Rolling 1 will cause an Awful effect.

You can either sell it, or use it.

The Sacrificer

Guarantees a return to the ship, and a bad/awful effect.

  • Rolling 6 will cause a Bad effect.
  • Rolling 5 will cause a Bad effect.
  • Rolling 4 will cause a Bad effect.
  • Rolling 3 will cause a Bad or an Awful effect.
  • Rolling 2 will cause an Awful effect.
  • Rolling 1 will cause two Awful effects.

The Saint

This one will never roll a bad or an awful effect. It's the rarest die in this mod, so don't expect to see it a lot.

  • Rolling 6 will show you a menu from which you can select any Effect.
  • Rolling 5 will cause a Great effect.
  • Rolling 4 will cause a Good effect.
  • Rolling 3 will cause a Good effect.
  • Rolling 2 will cause a Good effect.
  • Rolling 1 will waste the die.

Rusty

Spawns scrap. Only scrap. Higher rolls mean more scrap. Has negative outcomes.

  • Rolling 6 will spawn 7-8 scrap. Or special scrap effects
  • Rolling 5 will spawn 5-6 scrap
  • Rolling 4 will spawn 3-4 scrap.
  • Rolling 3 will spawn 1-2 scrap.
  • Rolling 2 will cause a Bad effect.
  • Rolling 1 will cause an Awful effect

Features a ton of Dice Roll Events

Too Many to list out here, check the config to get a list of them!

Config

Be sure to check out the plugin's config file. It is called EmergencyDice.cfg and it should be generated when you run the game with the mod for the first time.

You can modify which effects you want or not, or change some other settings.

The [Allowed Effects] tab in the config syncs with all the clients, meaning that only server needs to disable/enable effects.

Spawn rates are also serverside only, so no need to worry about having everyone syncing up their values with the host.

Emergency die shop alias

Some mods (like Lethal Things mod) might use conflicting item names in the shop. To solve this I added few aliases for the emergency die in the shop.

Try these aliases in the shop:

  • emergencydie
  • dice
  • die
  • edie

Chat commands

I included some chat commands in the mod, mainly for myself to ease debugging. If you want to use them you have to set

"Allow chat commands = true"

in the config.

To spawn dice use:

  • ~edice dice num

where num is an id of the die. ID's start from 1.

If you want to force an effect, use

  • ~edice effect effectName or
  • ~edice menu

Custom Events

I have made Custom Events as a config option so if you wanted enemies inside or outside to spawn or if you want a bunch of a specific items to spawn you can now do that.

Just set the amount of custom events in the config, launch the game and close it to generate the configs. Then just input the name of the enemy or item depending on what one you do.

To get the item name or enemy name, turn on DebugLogging and for items pick it up, and for enemies launch to a planet, and it will list out every enemy name.

Special thanks

Thanks to the Original creator, Theronguard, who gave me permission to work on and upload this mod!

Thanks to:

QWERTYRodrigo, who made some models for the mod (surfaced die and another other future thing)!

Xu Xiaolan for so much help with the code!

Glitch, Lizzie, Lunxara and so many more amazing people that the list is too long to put, for testing and bug finding!

Thanks to everyone who participates on github - for the suggestions, and bug reporting!

Thank you all for rolling the dice!

All players need this mod