@superman3275
You can name your objects with strings like so:
Set Limb Name ObjectID, 0, "Name" // Requires matrix1 utilities in the DLL section of the forums
If you want to create a dictionary (string lookup); you can use one of the following Key/Value pair solutions:
objId = Lua Int("ObjectName") // or Lua Int("Class.Object") - Requires a LUA plugin, ask if you want a recommendation
or
objId = IntVal( Lookup$( LookupID, "Group/Object", "0" ) ) // Last parameter is default. Requires Matrix1
or
objId = EVALUATE EXPRESSION("ObjectName") // requires styx
Like with all dictionary references they will be slower than direct ones. DBPRO does not have a dictionary system, so you have to make one if it is important. Frankly, I can't see the problem with simply using UDTs to store object references. If you are using a good IDE like Indigo, then organizing objects into types and autocompleting references should be straight forward.
@Sph!nx
Quote: "object# = find free object()
load object "object.x", object#"
You should use integers or DWords for IDs; an object ID does not need a decimal point, and the conversion will slow things down