You are viewing a potentially older version of this package. View all versions.
slayer6409-Emergency_Dice_Updated-1.7.3 icon

Emergency Dice Updated

Last ray of hope in a hopeless situation?

Date uploaded 2 weeks ago
Version 1.7.3
Download link slayer6409-Emergency_Dice_Updated-1.7.3.zip
Downloads 6795
Dependency string slayer6409-Emergency_Dice_Updated-1.7.3

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

CHANGELOG

  • 1.7.3

    • Changed revive to just be the new better method
    • Added Dependency for LethalCompany InputUtils to set the Debug Menu Keybind easier
    • Fixed some events
    • Fixed some issues with things
    • New Config option for if Dice Explode
    • Made the crab on the Surfaced Die actually on top now
    • You can now add multiple objects to events, such as "Spring,Flowerman" for an enemy event that spawns both of them
      • It works for enemies, traps, and items!
    • Changed README
    • New Friendly event
    • Fixed Emergency Die and Sacrificer sometimes erroring on certain maps
  • 1.7.2

    • Reverted back to 1.7.0
  • 1.7.1

    • I Apparently broke things
    • So this is irrelevant
  • 1.7.0

    • Added a better way to move traps
    • Added more events
  • 1.6.6

    • Fixed Meteors
    • Added more to blame glitch (from glitch)
    • Fixed The Emergency Dice not generating its config
    • Testing out a new Revive Method (can be enabled in the config settings)
  • 1.6.5

    • Fixed Same scrap different dice
  • 1.6.4

    • Possible fix for unchained
    • Other Fixes with spawning in objects
    • New Events
  • 1.6.3

    • Fixed some issues
    • Added a Alarm curse new sfx option
  • 1.6.2

    • Added a bunch of new effects (mostly surfaced for the new die)
    • Fixed Select Effect menu favorites to actually be sorted now
  • 1.6.1

    • Networker is now public to allow for easier dice effect making
    • IEBerthas >:D
  • 1.6.0

    • Added a surfaced die! Thank you so much Rodrigo for the model!
      • The surfaced die, only has surfaced events unless you don't have surfaced installed which it just goes to random
    • Added a new Surfaced Event
  • 1.5.24

    • Changed some debug menu stuff
    • Blame Glitch is worse thanks to glitch
  • 1.5.23

    • Disabled Where did my friends go in an attempt to fix stuff
    • Fixed Ghost codes and Hoarding bugs doing wierd things with the dice
    • Added an API so mod developers can add their own dice effects to their own mods!
    • Possibly Fixed some other issues
  • 1.5.22

    • Screaming in the void hoping it will fix things
  • 1.5.21

    • Fixed some things
    • IDK what else I did tbh
  • 1.5.20

    • Possibly Fixed a ton of issues
      • Glitch I swear if you break things...
        • I will have to fix them I guess...
  • 1.5.19

    • Maybe hopefully possibly fixed gambler?!?
    • Bomb Collars Event(s)???
    • Code Rebirth Event(s)???
    • >:D
  • 1.5.18

    • Added 2 Diversity Effects for the new Diversity Update
      • Chaos if you want you can choose the names/tooltips for the effects (just message me on discord)
    • Debug Menu Changes
  • 1.5.17

    • Accidentally left the DebugMode on when Patching
  • 1.5.16

    • Possible fix for Surprise Egg and Egg Boots
    • Actually fixed Jaws Sound this time
    • Scary
    • >:D
  • 1.5.15

    • Possible fix for burger flippers
    • Flinger Should now work correctly for all players
    • Tulip Trapeze spawns on a random player now
    • Debug menu now has Spawn Shop Items
    • Added Beyblade mode for Flinger
    • Chronos(roll 3) and Sacrificer (roll 6) can now spawned mixed effects
    • Apparently Little Company checks don't work for some reason, so there is a config to turn off all sized based things with one click
  • 1.5.14

    • Added Little Company checks to disable size based things for compatibility
    • Added Where did my friends go
    • Fixed scrolling with the selection menu
    • Fixed Mine and a Hard Place to be not on the host only
    • I might remove gambler and re-make it from scratch (with a potentially new name) if this doesn't work
    • Fixed audio of Can I pet that Dog and Jaws
  • 1.5.13

    • Added Spicy Nuggies Event (suggested by Lizzie)
    • Added the ability to favorite things in the effect/debug menu by Right-Clicking them
    • Debug menu can now spawn items, monsters, and traps! Items and Traps spawn on you, and monsters spawn inside if you are inside, outside if you are outside.
      • It is off by default since it might act weird at first until I know it works fine (It is 5am when I made this lol) (This was mainly so I can test things easier lol)
      • Also Apparently spawning enemies outside (that aren't meant there) might not have AI correctly without Starlancer AIFix or something similar (same with inside dog)
    • Fixed Burger Flippers and Flinger (Probably)
    • Fixed some things (I don't remember lol)
    • Dev Stuff pt 2
  • 1.5.12

    • Fix for spawning items
  • 1.5.11

    • Added a favorite system to the select/debug menu
    • Possible fix for things
  • 1.5.10

    • Possible fix for gambler again again again again
    • Added Event Stuffing for Days
    • Added Event Size Switcher
    • Added Event Burger Flippers
    • Added Event Flinger
    • Added Event Between a Mine and a Hard Place
    • Made Drunk only effect the roller like it was supposed to
    • Fixed Sound effects
    • Fixed Size Difference not fixing for other people
    • Dev stuff
  • 1.5.9

    • Possible fix for egg boots not working on clients
    • Possible fix for gambler again
      • Still no idea why this is happening
  • 1.5.8

    • Possible Fix for Revive Removing UI and maybe a fix for flying dice
    • Added Event Blame Glitch (Off by Default xD)
    • Added a new Debug menu option in the config
    • Added Experimental Custom Trap Event Support
      • It's Experimental since they sometimes spawn in weird places (Working on fixing it)
  • 1.5.7

    • Tulip Trapeze (Thanks al3m33da for the Idea)
  • 1.5.6

    • Added Egg Boots Effect (Thanks to MelanieMelicious for the Idea)
    • Added in Custom Items Events and Custom Enemies Events Support (View the Readme for how to do them)
  • 1.5.5

    • Removed Speedy Boomba since it was causing issues (It will be back later)
    • Fixed Surprise Egg/Surprise Flash for Clients
  • 1.5.4

    • New Events: Speedy Boomba(Lethal Things), Crates (CodeRebirth), Tornado (CodeRebirth), Egg Fountain, Flashbang Fountain, Can I pet that Dawg
  • 1.5.3

    • Possibly fixed floating dice
    • New Events 21 Gun Salute, The Shining, Merry Christmas (Thanks A Glitched NPC for the Ideas)
    • New Events Eggs, SmolTakey (Requires Takey Plush mod), and Same Scrap Different Dice
    • Added a config option to change the Emergency Die Price
    • Added a config option to add the Emergency Die as a scrap item
    • Added a config option for hypershake to have a timer
  • 1.5.2

    • Removed the FixRenderer since it shouldn't be needed anymore
    • Disabled Terminal Lockout until I can fix it
  • 1.5.1

    • Fixed the Changelog and Readme
    • Fixed item weight not being updated properly with Heavy and Light Burden
  • 1.5.0

    • Added 6 New Dice Rolls with Surfaced (Whoops name error)
    • Added a New Dice Roll with LCTarotCards
    • Fixed some other bugs (probably)
  • 1.4.10

    • I hope pt 3
  • 1.4.9

    • I hope pt 2
    • Fixed healing removing health if you were over 100
  • 1.4.8

    • Fixed Null Reference error with EntranceTeleportPatch (I hope)
  • 1.4.7

    • Possible fix for dice not rendering when going through the facility doors
    • Added a new config option for displaying the results of dice rolls in chat
    • Possible fix for Item Duplicator errors
  • 1.4.6

    • Possible Fix for not spawning scrap from rusty again (hopefully it works this time lol)
  • 1.4.5

    • Possible Fix for not spawning scrap
    • Fixed Display Results not showing up if ALL was selected
    • Added new random tooltips for dice effects
  • 1.4.4

    • Possible Fix for Shotgun not spawning (in a kind of weird way)
  • 1.4.3

    • Made the SFX of Emergency Meeting not so loud
    • Fixed the sprite for Emergency Meeting
  • 1.4.2

    • Added Emergency Meeting SFX and Sprite
  • 1.4.1

    • Changed how the visor is toggled to account for other mods
  • 1.4.0

    • Changed how the config variables were handled
    • Added a compatability for LethalConfig
    • Possible Fix for shotgun not appearing for everyone
    • Possible better config syncing (It worked fine in lan mode on 2 pcs, so hopefully there isn't any trouble)
  • 1.3.7

    • Added new events: Invisible Enemies, Emergency Meeting, Terminal Lockout
    • Possible fix for purge not killing enemies
    • Added a config option for Become Small that allows different ways to revert
  • 1.3.6

    • Fixed size not reverting on leave
  • 1.3.5

    • Added new events: Meteors and Become Small
  • 1.3.4

    • Added a new event Barbers
    • Fixed a line of code that accidentally got deleted (whoops)
  • 1.3.3

    • Fixed a blank config issue with lethal performance
  • 1.3.2

    • Fixed Heavy and Light burden to not bug your weight/movement
    • Added config options to make NeckSpin and NeckBreak less Awful
  • 1.3.1

    • Fixed NeckSpin to actually work not based on framerate (I forgot to multiply by Time.DeltaTime xD)
  • 1.3.0

    • Added a bunch of new Rolls and Rolls with other mods, LCOffice and LethalMon
    • Possible fix for hud disappearing when revived pt.2
    • Fixed Item Dupe event not working right
    • Fixed/Replaced a lot of code that disappeared for some reason
    • Optimized a bit of code (especially with spawning in Teleporter traps cuz I am still learning lol)
  • 1.2.11

    • Possibly fixed Shotgun not spawning for people
    • Added a new effect Headspin
    • Possible fix for hud disappearing when revived
  • 1.2.10

    • Changed Readme to add the original creator's plugin GitHub
  • 1.2.9

    • Added an Invisible Teleporter Trap Event
  • 1.2.8

    • Fixes a few things
    • Added a config option to change how rolls are shown to you
  • 1.2.7

    • Added 8 new Dice Rolls
    • Added integration with Lethal Things for Teleporter Traps
  • 1.2.5

    • Turns out I am a bit dumb and didn't know how netcode worked in regard to modding.
    • Added back the random dice spin time
  • 1.2.4

    • Removed the config option for random dice spin time in hopes that it was that that broke the dice networking
  • 1.2.3

    • Possible fix for dice not working for clients
    • Switched the GUID back so Brutal Company Minus Events can work again
  • 1.2.2

    • Added a new event "Random Items from Shop" as a great variant that gives 2-4 items
    • Moved Random Item from shop to Good instead of great
    • Alarm Text :D
  • 1.2.1

    • Some bugfixes
    • Added new Event "Random Item from Shop"
      • Might make it multiple events where great variant gives 2-4 items and good variant gives 1
  • 1.2.0

    • I have temporarily ported this to v55 with a few changes
    • Neck Break can go further
    • Config options for changing the force of Hypershake
    • Config option for random dice spin time
    • Config option for use of Gambler and Chronos outside
    • Maybe something else, I honestly don't remember, it is 8am and I need sleep
  • 1.1.8

  • 1.1.7

    • God help me. Made new effect in 1.1.5 and forgot to add it to the die pool, so it was essentially useless.
  • 1.1.6

    • Forgot to turn off the debug mode again
  • 1.1.5

    • New negative effects
    • New positive effect (spawns a shotgun)
    • bugfixes?
  • 1.1.4

    • New effect
    • Restored an
  • 1.1.3

    • New negative effects
    • Bug fixes
  • 1.1.2

    • New effects
    • Bug fixes
  • 1.1.0

    • Added new effects
    • Added new functionality to the Emergency Die (rolling 6 now teleports you and your crewmates)
    • Bug Fixes
  • 1.0.0

    • Released