Custom items not in item lists ?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Custom items not in item lists ?

Post by Doridion »

Prozail wrote:the baseobject used throughout pretty much everything in the game is base_item, even in the main campaign, so that seems to be the true "base object". And using "base_item" does NOT give it an ItemComponent
I've tested Prozail, and without the baseObject = "base_item", custon items can't be selected to be added to containers in the editor. I even can spawn them by script, they're in the any list and can place them in the map.

Just modify ( for example ) your baseObject by baseObject = "base_spell" or "base_door", and you'll see that your item will appear in the "spell" or "door" list.

I know that base_item don't give the item comportement, assets are defined by their components. That's why i'm asking about the utility of the baseObject = "base_item".
Post Reply