Jump to content

Typpy_San

Member
  • Posts

    3
  • Joined

  • Last visited

Typpy_San's Achievements

  1. I think it would be really cool if the doors to public places in the game were open. It would depict how chaotic the situation is during the virus outbreak. Perhaps someone fled and left the doors open, leading to their demise.
  2. I'm trying to create random conditions for items generated with the math random variable, but it's not working. Is there any other way to assign random condition values? this is the code local kodisiKatanaLow = math.random(2, 4) local kodisiKatanaMedium = math.random(4, 6) local kodisiKatanaHigh = math.random(6, 8) function Recipe.OnCreate.KatanaHomeMade(items, result, player) if player:getPerkLevel(Perks.MetalWelding) >= 4 and player:getPerkLevel(Perks.MetalWelding) <= 5 then result:setCondition(kodisiKatanaLow) end if player:getPerkLevel(Perks.MetalWelding) >= 6 and player:getPerkLevel(Perks.MetalWelding) <= 8 then result:setCondition(kodisiKatanaMedium) end if player:getPerkLevel(Perks.MetalWelding) >= 9 and player:getPerkLevel(Perks.MetalWelding) <= 10 then result:setCondition(kodisiKatanaHigh) end end
×
×
  • Create New...