[nbos] GoblinAPI
"Donald Ziegler"
Tue Mar 13th, 2007
Ed,

I know that the arrays are zero based ...
But: X = oMap.AddObject (o)

Shouldn't X be the map index of object o OR is it X-1 ?

Thanks,

Don

>>3) I have a script that creates a number of submap type objects on
>>the map. The objects are created in a loop and I am collecting the map
>>index numbers in an array as the object is added. But when the first
>>object is created the index that is returned is actually the index for the

>>next object. Once I figured out what was going wrong, I simply subtracted

>>1 from all of the index numbers returned from AddObject(). Is this as
>>designed or am I still missing something?

>This is correct - arrays are zero based.




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.9/719 - Release Date: 3/12/2007
8:41 AM


_______________________________________________
Nbossoftware mailing list


Copyright © 2003-2007, NBOS Software. All rights reserved. 'Fractal Mapper', 'ScreenMonkey', 'Character Sketcher', 'Inspiration Pad', 'Fractal World Explorer', 'Goblin API', 'AstroSynthesis' are trademarks of NBOS Software. 'Dwarven Beserker' art by V. Shane.
Member contributed resources