function

MakeObjectDisc

Makes a UV-mapped disc with the size and amount of polygons you specify.

Console functions

A set of functions for creating a console and reading/writing it. Example code included.

Functions
AllocConsole - Creates the console.
FreeConsole - Destroys the console.
ConsoleInput - Gets a line of input entered in the console. Waits until the return key is pressed.
WriteConsole - Writes a string of text to the console. Supports \n and \r for newline and carriage return, respectively.
SetConsoleCursorPosition - Sets the cursor position. The coordinates of the top left of the console are (0, 0).
ClearConsole - Erases everything in the console and resets the cursor position.

Speedy animation function (monster, animation, play/playing)

This time saving function will loop a certain animation ( currently idle,die,hit,move,attack ) for any monster, and can also check if the animation is already playing, or check which animation is play

DBPro Tutorial - The Ins and Outs of Functions

Here author Steve Vink introduces us to the wonders of functions. This is a shorter version of the tutorial, the full length verison can be downloaded - details at the end.

Easy-to-Use Text Search Function

This function will take two strings and search the first string for the second one. It returns a 1 if the string is found, and a 0 if it is not. The third variable is the Case Flag, when set to 0 the function is not case sensitive, any other value will make it Case Sensitive. Please note that this function was made for text adventures, so essentially it searches a sentence for a word and it will not find the search string if it doesn't have spaces around it. Example: Searching "I like cheese" for "like" will return a 1, while searching "Ilikecheese" for "like" will return 0.


Theme & Icons by N.Design Studio