Page 1 of 1

EDITOR: Issue with forward references in cloned items

Posted: Tue Sep 20, 2005 12:48 am
by Sophia
This one is kind of tricky, and easy enough to work around (just edit the text file by hand), but I'll mention it:

If you create a cloned monster, and then create some cloned items (after creating the monster), and then set the cloned monster to carry those items, it will fail to compile.

This happens because the editor saves the cloned items to the file in the order you created them. If the monster is set to carry items that aren't defined yet, it can't handle that.

There's no way to fix it from the editor itself, as far as I can tell, which is the only reason I mention it. :)

Posted: Tue Sep 20, 2005 12:50 am
by Gambit37
I brought this up about two years ago I believe! Is it still not fixed? Tut tut, GG! ;)

Posted: Tue Sep 20, 2005 12:57 am
by Gambit37
Actually, mine was a slightly different issue. Apologies GG:

http://www.dungeon-master.com/forum/vie ... hp?t=21003

Posted: Tue Sep 20, 2005 9:46 am
by George Gilbert
This is certainly a bug - Might be a bit tricky to fix, but I'll try and work out the best way to sort it out!

Posted: Wed Sep 21, 2005 4:02 am
by Sophia
Monsters can't carry other monsters, so it seems like the easiest way would be to write items first, and then monsters.

Problems with CONVERT_TO could be handled by checking if the object converts to a cloned item, and making sure to write what it converts to before that item is written.

Posted: Wed Sep 21, 2005 8:42 am
by beowuuf
Monsters can carry other monsters - you might have the ferocious version of a placid monster carried inside the first - so you attack it, it attacks you...

Posted: Sun Oct 09, 2005 3:14 pm
by George Gilbert
Fixed for V0.35