cairnswm
06-09-2007, 12:00 PM
Hi All
As a bit of a stress reliever I decided to create a Game Maker Dictionary, especially for all those people wanting to make a text game for Compo 16. I have used the base class from my Compo 15 Party Type game, included all the words inside the DLL and made it into a Library.
Version 1.01 can be downloaded here: http://gamedev.openhazel.co.za/filecloset/data/files/183/GMDictLib.zip
This download includes the Library, a Readme and a GM6 example project.
Here is the read me.
----------------
GMDictLib
Simple Dictionary of Words for Game Maker.
This word list is based on the 5000 most common words of the english language minus
those that contain an apostrophe (') - leaving a total of 4932 words.
The following method calls are exposed
GetWord - returns a random word from the list
GetCount - Returns the number of words in the dictionary.
Get/Set Min/Max Length - Gets or Sets the Min or Max length of the word to be returned. (If a word of the required length restrictions cannot be found, any random word will be returned)
Example
{
// Create the Links to the External Library
global.GetWord =external_define('GMDictLib.dll','GetWord',dll_cde cl,ty_string,0);
global.SetMinLength =external_define('GMDictLib.dll','SetMinLength',dl l_cdecl,ty_real,1,ty_real);
global.GetMinLength =external_define('GMDictLib.dll','GetMinLength',dl l_cdecl,ty_real,0);
global.SetMaxLength =external_define('GMDictLib.dll','SetMaxLength',dl l_cdecl,ty_real,1,ty_real);
global.GetMaxLength =external_define('GMDictLib.dll','GetMaxLength',dl l_cdecl,ty_real,0);
global.GetCount =external_define('GMDictLib.dll','GetCount',dll_cd ecl,ty_real,0);
// Get a word from the Dictionary
MyWord = external_call(global.GetWord);
}
----------------
Please note this is released as Free for any use. (With no threads attached - but if you do manage to see a copy let me know for interests sake :) )
As a bit of a stress reliever I decided to create a Game Maker Dictionary, especially for all those people wanting to make a text game for Compo 16. I have used the base class from my Compo 15 Party Type game, included all the words inside the DLL and made it into a Library.
Version 1.01 can be downloaded here: http://gamedev.openhazel.co.za/filecloset/data/files/183/GMDictLib.zip
This download includes the Library, a Readme and a GM6 example project.
Here is the read me.
----------------
GMDictLib
Simple Dictionary of Words for Game Maker.
This word list is based on the 5000 most common words of the english language minus
those that contain an apostrophe (') - leaving a total of 4932 words.
The following method calls are exposed
GetWord - returns a random word from the list
GetCount - Returns the number of words in the dictionary.
Get/Set Min/Max Length - Gets or Sets the Min or Max length of the word to be returned. (If a word of the required length restrictions cannot be found, any random word will be returned)
Example
{
// Create the Links to the External Library
global.GetWord =external_define('GMDictLib.dll','GetWord',dll_cde cl,ty_string,0);
global.SetMinLength =external_define('GMDictLib.dll','SetMinLength',dl l_cdecl,ty_real,1,ty_real);
global.GetMinLength =external_define('GMDictLib.dll','GetMinLength',dl l_cdecl,ty_real,0);
global.SetMaxLength =external_define('GMDictLib.dll','SetMaxLength',dl l_cdecl,ty_real,1,ty_real);
global.GetMaxLength =external_define('GMDictLib.dll','GetMaxLength',dl l_cdecl,ty_real,0);
global.GetCount =external_define('GMDictLib.dll','GetCount',dll_cd ecl,ty_real,0);
// Get a word from the Dictionary
MyWord = external_call(global.GetWord);
}
----------------
Please note this is released as Free for any use. (With no threads attached - but if you do manage to see a copy let me know for interests sake :) )