Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. Hi everyone, this guide is there for explaining hidden mechanics of the game, such as the luck, traits or things developpers dont explains well !
  2.  
  3.  
  4. 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
  5. the names of scripts used, you can so make a deeper check of my work.
  6.  
  7. Lets start.
  8.  
  9. I. Luck and luck trinket
  10.  
  11. 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 :
  12.  
  13. >>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.
  14.  
  15. Why that ? Because of the way of how buffes works in Vermintide :
  16.  
  17. Interactions.lua :
  18. [code]local buff_extension = ScriptUnit.extension(interactor_unit, "buff_system")
  19. chance = buff_extension.apply_buffs_to_value(buff_extension, chance, StatBuffIndex.INCREASE_LUCK)[/code]
  20.  
  21. As you can see, the buff is applied to the "interactor_unit", so in a more clear explanation, to the guy WITH the trinket.
  22.  
  23. Now, how that's works ? What is the base chance to spawn a dice in a chest ?
  24.  
  25. Interactions.lua :
  26. [code]local chance = dice_keeper.chest_loot_dice_chance(dice_keeper)[/code]
  27.  
  28. Here, the script calls another script : dice_keeper.lua and the "chest_loot_dice_chance" function
  29.  
  30. dice_keeper.lua :
  31. [code]DiceKeeper.chest_loot_dice_chance = function (self)
  32. return self._chest_loot_dice_chance or 0.05
  33. end[/code]
  34.  
  35. 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 :
  36. - Promo purple : 5.05%
  37. - Green : 6.25%
  38. - Blue : 7.5%
  39. - Purple Halloween : 9.55%
  40. - Orange : 10%
  41.  
  42. 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