The DM Snippet Directory
Hello and welcome to The DM Snippet Directory. Here you will find links to small selections of code that have been created by the members of the BYOND community and can be freely used in your projects. Many of these snippets will provide functionality that does not come packaged with BYOND, while other snippets will demonstrate a potentially useful concept.
With over 200 snippets (and growing) currently available, they have been classified in according to what the snippet most closely effects. The table of contents outlines the several classification categories of which clicking will direct you to the expected category. In each category, the snippets are listed by name in ascending alphabetical order.
Snippet authors take notice!: To ensure that your snippet is added to The DM Snippet Directory in the appropriate category, please contact an active BYOND moderator after you have published your snippet in the Tutorials & Snippets subforum.
With over 200 snippets (and growing) currently available, they have been classified in according to what the snippet most closely effects. The table of contents outlines the several classification categories of which clicking will direct you to the expected category. In each category, the snippets are listed by name in ascending alphabetical order.
Snippet authors take notice!: To ensure that your snippet is added to The DM Snippet Directory in the appropriate category, please contact an active BYOND moderator after you have published your snippet in the Tutorials & Snippets subforum.
Table of Contents:
- Hide/Remove Objects from Individual Clients
- Improved General Direction Proc
- Lighting Backdrop
- Line Calculation
- Line of Sight
- Locate_All (Tag)
- Maptext and Shadows
- Object Duplication
- Quicker Way to Parse Through Several Turfs
- Remote Objects and Turf-like Objects
- Simple World Repopulation
- Turf Transformation
- Unique Tag For Everything
- Verbs Packages
- Visibility Extension
- Alternative Leading Zeroes
- Arc Tangent
- Bezier Meta Function
- Binary to ASCII (Bin2ascii)
- Binary to Decimal Conversion
- Cached Gaussian Random Number Generator
- Commafy Number
- Chance() Function(s)
- Clamp
- Currency Output
- Dec2hex && Hex2dec (&& Dec2bin && Bin2dec)
- Decimal to Binary Conversion
- Decimal to Hexadecimal Conversion
- Decrement Until/Increment Until
- Dice Functions
- Difference Between Angles
- Get Random Number Between Two Numbers
- Hexadecimal to Decimal Conversion
- Interpolation (Linear and Cosine)
- Is a Number Between Two Numbers?
- IsNum()
- IsPrime
- Leading Zeroes
- Linear Distance Procs
- Logical Operations
- Mathematical Raise-to-Power Proc
- Metric Conversions
- Miscellaneous Logical Utilities
- Nearest Value in List
- Null Classification
- Number2Text
- Ordinal Numbering - 1st, 2nd, 3rd, 4th...
- Palindromic Check
- Positive and Negative Numbers Snippet
- Probability Function
- Random Floating Point Numbers with Tendency
- Random Numbers with Tendency
- Sorting Numbers, Greatest Common Divisor, and Leap Year
- Sorting Procedures
- Supplemental Rounding Utilities
- Triangles
- Table-Lookup Distance Proc
- Trigonometry
- Truncation
- Weighted Probability Selection
- XOR-Based Number Swapping
- \... Continuation Macro Sample
- Add Font Colors to Your Game
- ASCII Character Map
- Capitalize Words
- Dialogue and Conversation
- Findalltext()
- FindTexts()
- Indistinct Mumbling
- Is Text in Order
- Long Chat Message Handling
- Parse (String, Separator)
- Player Deafening
- Pluralisation
- Random Code Generator (Alphanumeric)
- Random Password Generator
- Replacetext(), Deletetext(), and Inserttext()
- Screen_loc Parsing
- Scrolling Text
- Sentence Interruption
- Sentence-Formatted List Output Proc
- Separating Unlike Messages; Message Categorization
- Simple Title Case
- Slightly More Advanced Copytext()
- String Reversal Modified
- Substring Matching and Symbol Counts
- Text2admin()
- Text2list()
- Tokeniser with Arbitrary, Single-Character Dividers
- Trim Whitespace
- User-Entered Emphasis
- Word Count
- Word-Wrapping (Efficient Version)