function ADVR.onLoad() achievement.psvrID = 47 achievement.hideDescription = false achievement.unlocksItem = relics.GAPING_TOTEM achievement.predecessors = {achievements.YOU_BREAK_IT_YOU_BUY_IT} game.RegisterForRPCEvents(achievement) achievement.category = "economy" end function ADVR.onPlayerValueChanged(valueId) if valueId == playerValues.DISCOUNT then base.CallFunctionIn("Check", 1.0) -- bit of delay because of network variable sync end end function Check() if player.ShopDiscount.GetGroupValueFloat() >= 0.6 then achievement.SendRPCEvent(rpcType.TO_ALL) end end function ADVR.onRPCReceived() achievement.Unlock() end