/datum/n_function/default/pick | List operations (lists known as vectors in n_script)
Picks one random item from the list |
/datum/n_function/default/find | String methods
If list, finds a value in it, if text, finds a substring in it |
/datum/n_function/default/substr | Returns a substring of the string |
/datum/n_function/default/length | Returns the length of the string or list |
/datum/n_function/default/lower | Lowercase all characters |
/datum/n_function/default/upper | Uppercase all characters |
/datum/n_function/default/explode | Converts a string to a list |
/datum/n_function/default/implode | Converts a list to a string |
/datum/n_function/default/repeat | Repeats the string x times |
/datum/n_function/default/reverse | Reverses the order of the string. "Clown" becomes "nwolC" |
/datum/n_function/default/max | Number methods
Returns the highest value of the arguments
Need custom functions here cause byond's min and max runtimes if you give them a string or list. |
/datum/n_function/default/min | Returns the lowest value of the arguments |
/datum/n_function/default/tostring | Turns a Number into a String |
/datum/n_function/default/abs | Magnitude of a Number |
/datum/n_function/default/floor | Rounds a number down |
/datum/n_function/default/ceil | Rounds a number up |
/datum/n_function/default/round | Rounds a number to its nearest integer |
/datum/n_function/default/clamp | Clamps a number between min and max |
/datum/n_function/default/inrange | Returns TRUE if a number is inbetween Min and Max |
/datum/n_function/default/sin | Returns the sine of a number |
/datum/n_function/default/cos | Returns the cosine of a number |
/datum/n_function/default/asin | Returns the arcsine of a number |
/datum/n_function/default/acos | Returns the arccosine of a number |
/datum/n_function/default/log | Returns the natural log of a number |
/datum/n_function/default/replace | Replaces text |
/datum/n_function/default/time | Miscellaneous functions |
/datum/n_function/default/sleeps | Clone of BYOND's sleep() |
---|