Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hi everyone, this guide is there for explaining hidden mechanics of the game, such as the luck, traits or things developpers dont explains well !
- I'll try to provide as i can code from the game, so, in that way you will probably understand more well, and also check my own work and report me my mistakes :). For those who have acces to the scripts, i'll provide you
- the names of scripts used, you can so make a deeper check of my work.
- Lets start.
- I. Luck and luck trinket
- There's a lot of rumors concerning this mechanics, and if by now, lot of peoples know that its only works for the carrier of the trinket, i have to say it one more time :
- >>The luck trinket (without taking in consideration the quality) only works for the carrier of the trinket, so, if a member of your team runs it, let him open chest first.
- Why that ? Because of the way of how buffes works in Vermintide :
- Interactions.lua :
- [code]local buff_extension = ScriptUnit.extension(interactor_unit, "buff_system")
- chance = buff_extension.apply_buffs_to_value(buff_extension, chance, StatBuffIndex.INCREASE_LUCK)[/code]
- As you can see, the buff is applied to the "interactor_unit", so in a more clear explanation, to the guy WITH the trinket.
- Now, how that's works ? What is the base chance to spawn a dice in a chest ?
- Interactions.lua :
- [code]local chance = dice_keeper.chest_loot_dice_chance(dice_keeper)[/code]
- Here, the script calls another script : dice_keeper.lua and the "chest_loot_dice_chance" function
- dice_keeper.lua :
- [code]DiceKeeper.chest_loot_dice_chance = function (self)
- return self._chest_loot_dice_chance or 0.05
- end[/code]
- The game works with percentage, 0.05 is here equals to 5%. A chest have then 5% to spawn a dice. With the trinket your increase then this percentage of spawn to :
- - Promo purple : 5.05%
- - Green : 6.25%
- - Blue : 7.5%
- - Purple Halloween : 9.55%
- - Orange : 10%
- Note : I listed the promo luck trinket, but i never saw anyone using it, and i honestly dont know from wich promo this trinket comes from.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement