Josh64

StoreKey()

Aug 4th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.25 KB | None | 0 0
  1. local function StoreKey()
  2. if (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) then -- Store Key
  3. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  4. elseif keyfive < 40 then
  5. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  6. elseif keyfive < 60 then
  7. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  8. DadsKey = true
  9. elseif keyfive < 80 then
  10. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  11. else
  12. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  13. end
  14. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  15. and player:HasCollectible(17) then -- Skeleton Key
  16. if keyfive < 25 then
  17. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  18. elseif keyfive < 50 then
  19. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  20. DadsKey = true
  21. elseif keyfive < 75 then
  22. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  23. else
  24. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  25. end
  26. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  27. and player:HasCollectible(17) -- Skeleton Key
  28. and player:HasCollectible(175) then -- Moms Key
  29. if keyfive < 33 then
  30. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  31. DadsKey = true
  32. elseif keyfive < 66 then
  33. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  34. else
  35. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  36. end
  37. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  38. and player:HasCollectible(17) -- Skeleton Key
  39. and player:HasCollectible(175) -- Moms Key
  40. and DadsKey == true then -- Dads Key
  41. if keyfive < 50 then
  42. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  43. else
  44. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  45. end
  46. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  47. and player:HasCollectible(17) -- Skeleton Key
  48. and player:HasCollectible(175) -- Moms Key
  49. and DadsKey == true -- Dads Key
  50. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  51. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  52.  
  53. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  54. and player:HasCollectible(17) -- Skeleton Key
  55. and player:HasCollectible(175) -- Moms Key
  56. and player:HasCollectible(343) then -- Latch Key
  57. if keyfive < 50 then
  58. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  59. DadsKey = true
  60. else
  61. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  62. end
  63. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  64. and player:HasCollectible(17) -- Skeleton Key
  65. and player:HasCollectible(175) -- Moms Key
  66. and player:HasCollectible(343) -- Latch Key
  67. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- paper Clip
  68. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  69. DadsKey = true
  70.  
  71. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  72. and player:HasCollectible(17) -- Skeleton Key
  73. and player:HasCollectible(175) -- Moms Key
  74. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- paper Clip
  75. if keyfive < 50 then
  76. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  77. DadsKey = true
  78. else
  79. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  80. end
  81. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  82. and player:HasCollectible(17) -- Skeleton Key
  83. and DadsKey == true then -- Dads Key
  84. if keyfive < 33 then
  85. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  86. elseif keyfive < 66 then
  87. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  88. else
  89. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  90. end
  91. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  92. and player:HasCollectible(17) -- Skeleton Key
  93. and DadsKey == true -- Dads Key
  94. and player:HasCollectible(343) then -- Latch Key
  95. if keyfive < 50 then
  96. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  97. else
  98. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  99. end
  100. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  101. and player:HasCollectible(17) -- Skeleton Key
  102. and DadsKey == true -- Dads Key
  103. and player:HasCollectible(343) -- Latch Key
  104. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  105. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  106.  
  107. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  108. and player:HasCollectible(17) -- Skeleton Key
  109. and DadsKey == true -- Dads Key
  110. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  111. if keyfive < 50 then
  112. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  113. else
  114. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  115. end
  116. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  117. and player:HasCollectible(17) -- Skeleton Key
  118. and player:HasCollectible(343) then -- Latch Key
  119. if keyfive < 33 then
  120. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  121. elseif keyfive < 66 then
  122. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  123. DadsKey = true
  124. else
  125. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  126. end
  127. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  128. and player:HasCollectible(17) -- Skeleton Key
  129. and player:HasCollectible(343) -- Latch Key
  130. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  131. if keyfive < 50 then
  132. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  133. else
  134. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  135. DadsKey = true
  136. end
  137. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  138. and player:HasCollectible(17) -- Skeleton Key
  139. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Ppaer Clip
  140. if keyfive < 33 then
  141. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  142. elseif keyfive < 66 then
  143. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  144. DadsKey = true
  145. else
  146. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  147. end
  148. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  149. and player:HasCollectible(175) then -- Moms Key
  150. if keyfive < 25 then
  151. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  152. elseif keyfive < 50 then
  153. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  154. DadsKey = true
  155. elseif keyfive < 75 then
  156. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  157. else
  158. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  159. end
  160. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  161. and player:HasCollectible(175) -- Moms Key
  162. and DadsKey == true then -- Dads Key
  163. if keyfive < 33 then
  164. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  165. elseif keyfive < 66 then
  166. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  167. else
  168. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  169. end
  170. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  171. and player:HasCollectible(175) -- Moms Key
  172. and DadsKey == true -- Dads Key
  173. and player:HasCollectible(343) then -- Latch Key
  174. if keyfive < 50 then
  175. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  176. else
  177. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  178. end
  179. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  180. and player:HasCollectible(175) -- Moms Key
  181. and DadsKey == true -- Dads Key
  182. and player:HasCollectible(343) -- Latch Key
  183. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  184. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  185.  
  186. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  187. and player:HasCollectible(175) -- Moms Key
  188. and DadsKey == true -- Dads Key
  189. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  190. if keyfive < 50 then
  191. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  192. else
  193. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  194. end
  195. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  196. and player:HasCollectible(175) -- Moms Key
  197. and player:HasCollectible(343) then -- Latch Key
  198. if keyfive < 33 then
  199. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  200. elseif keyfive < 66 then
  201. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  202. DadsKey = true
  203. else
  204. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  205. end
  206. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  207. and player:HasCollectible(175) -- Moms Key
  208. and player:HasCollectible(343) -- Latch Key
  209. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  210. if keyfive < 50 then
  211. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  212. else
  213. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  214. DadsKey = true
  215. end
  216. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  217. and player:HasCollectible(175) -- Moms Key
  218. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  219. if keyfive < 33 then
  220. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  221. elseif keyfive < 66 then
  222. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  223. DadsKey = true
  224. else
  225. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  226. end
  227. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  228. and DadsKey == true -- Dads Key
  229. and player:HasCollectible(343) then -- Latch Key
  230. if keyfive < 33 then
  231. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  232. elseif keyfive < 66 then
  233. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  234. else
  235. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  236. end
  237. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  238. and DadsKey == true -- Dads Key
  239. and player:HasCollectible(343) -- Latch Key
  240. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  241. if keyfive < 50 then
  242. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  243. else
  244. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  245. end
  246. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  247. and DadsKey == true -- Dads Key
  248. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  249. if keyfive < 33 then
  250. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  251. elseif keyfive < 66 then
  252. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  253. else
  254. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  255. end
  256. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  257. and player:HasCollectible(343) then -- Latch Key
  258. if keyfive < 25 then
  259. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  260. elseif keyfive < 50 then
  261. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  262. elseif keyfive < 75 then
  263. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  264. DadsKey = true
  265. else
  266. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_PAPER_CLIP, KBum.Position, Vector(0,0), KBum)
  267. end
  268. elseif (player:GetTrinket(0) == TrinketType.TRINKET_STORE_KEY or player:GetTrinket(1) == TrinketType.TRINKET_STORE_KEY) -- Store Key
  269. and (player:GetTrinket(0) == TrinketType.TRINKET_PAPER_CLIP or player:GetTrinket(1) == TrinketType.TRINKET_PAPER_CLIP) then -- Paper Clip
  270. if keyfive < 25 then
  271. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_SKELETON_KEY, KBum.Position, Vector(0,0), KBum)
  272. elseif keyfive < 50 then
  273. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_MOMS_KEY, KBum.Position, Vector(0,0), KBum)
  274. elseif keyfive < 75 then
  275. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_DADS_KEY, KBum.Position, Vector(0,0), KBum)
  276. DadsKey = true
  277. else
  278. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_COLLECTIBLE, CollectibleType.COLLECTIBLE_LATCH_KEY, KBum.Position, Vector(0,0), KBum)
  279. end
  280. else
  281. Isaac.Spawn(EntityType.ENTITY_PICKUP, PickupVariant.PICKUP_TRINKET, TrinketType.TRINKET_STORE_KEY, KBum.Position, Vector(0,0), KBum)
  282. end
Advertisement
Add Comment
Please, Sign In to add comment