South Dakota Codified Laws
Chapter 05 - Restraints On Alienation Of Property
Section 43-5-6 - Distribution according to intent of creator.

43-5-6. Distribution according to intent of creator.
If, at the expiration of the period in which any instrument or any provision thereof created by a trust or other legal relationship is not to be rendered invalid by the provisions of this chapter measured by actual, rather than possible, events, any of the assets which have not by the terms of the instrument become distributable or vested shall then be distributed as the court having jurisdiction directs, giving effect to the general intent of the creator of the trust or other instrument.

Source: SL 1983, ch 304, ยง2.