Brotato

Brotato

89 ratings
[Utility] Combinations (v1.0.1.3)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
33.085 KB
Apr 14, 2024 @ 11:43am
May 12, 2024 @ 12:19pm
4 Change Notes ( view )

Subscribe to download
[Utility] Combinations (v1.0.1.3)

Description
Only compatible with version 1.0.1.3


Hello!

This is a utility mod, so it does nothing on its own. It contains the code to make a combo pack, which is an alternative way to obtain new items and/or weapons.
Please read all the details. I've also included some instructions if you want to create your own pack.


Details
Upon pickup of the combo, the icon of the combo will show up on the top right corner, alongside crates
The combo's will be processed at the end of the wave, before the processing of crates
All combo's are unique
Combo's will not be attracted to you at the end of the wave
If you don't want the combo, it's possible to not take it. Declined combo's will be blocked for the next 3 waves


Details combo Items
A combo item could spawn if you meet the requirements by owning the 2 to 4 specific items, with the option to keep one of the items
Upon obtaining the combo item, you lose the required items (unless stated otherwise)
Each combo item has their own base spawn chance
The chance for a combo item to drop is triggered when:
  • An enemy dies - 10% of base chance
  • Every 5 seconds - 100% of base chance
  • On level-up - 400% of base chance
Only 1 combo item can be spawned at any given time
There's a cooldown of 2 seconds after picking up a combo, before the next combo can spawn


Details combo Weapons
A combo weapon spawns at the start of the wave if you meet the requirements by owning the 2 specific weapons (of any tier)
Only 1 combo weapon can be spawned per wave
Getting a combo weapon allows you to find that weapon in the shop (only for the current run)
The combo weapon will be guaranteed to show up once in the next shop


Instructions Pack creators
For combo items:
Unlocked by default should be off (I hope this is obvious)
Tier needs to be Danger 4
The first effect should always be the "combination_item_effect.gd", found in: content/effects/
The Key of the first effect should be "item_combination" and Text_Key should be "EFFECT_ITEM_COMBINATION" when the combo requires 2 items, "EFFECT_ITEM_COMBINATION_3" for 3 items and "EFFECT_ITEM_COMBINATION_4" if the combo requires 4 items.
Base spawn chance can be set between 1-100, but I recommend not having it higher than 25 (which would already be a guaranteed spawn on level-up)

For combo weapons:
Unlocked by default should be off
Tier needs to be Danger 5
The first effect should always be the "combination_weapon_effect.gd", found in: content/effects/
The Key of the first effect should be "weapon_combination" and Text_Key should be "EFFECT_WEAPON_COMBINATION"



This has not been tested with many mods, so I appreciate any and all feedback.

You can find my own combo pack here: Combo Pack Lex
Feel free to use that as an example to create your own pack.

Please don't hesitate to leave a comment if you have any questions.

Cheers,
Lex
11 Comments
dracotempestas Jan 21 @ 2:35am 
I love this mod, please update for the DLC!!
Lex Looter  [author] Sep 6, 2024 @ 12:29am 
Hello Anoury,
Does it only crash with some weapon spawning, or also items? Does this happen with all combo weapons? Do you mind sharing the log after the crash happened and possible also your modlist?
Anoury Aug 27, 2024 @ 11:58pm 
I like the mod but sadly it crashes due to some weapon spawning
Lex Looter  [author] Aug 1, 2024 @ 7:26am 
Hello JustYoung,
Simply subscribe to it and it'll automatically be installed.

Hello 堇尘,
Thank you for explaining it to azhuo! Regarding the bug, can you please send me the log after the crash? Then I might be able to fix it.
Yoko Jul 11, 2024 @ 12:27pm 
这是一个前置mod,本身没有什么用,但是可以给mod制作者用于制作新物品的渠道,比如Comback就是一个例子,但是很遗憾的是那个mod的严重bug,会导致Extatonion里面所有克隆物品无效,也会导致VLM的召唤类无效(注;这里的无效指的是可以获得物品,但是一旦触发物品特殊的效果,你的游戏就会崩溃)
azhuo Jul 10, 2024 @ 6:03am 
有没有大佬解释一下
JustYoung Jun 3, 2024 @ 2:42am 
how do i download it?
Lex Looter  [author] May 16, 2024 @ 2:21am 
:atotaunt: :steamhappy:
eltoro0815 May 14, 2024 @ 6:06am 
:)
con bò sữa thất tình May 12, 2024 @ 8:14pm 
nicee