Jump to content

Modifying existing prefabs and brains (how to?)


Lawrence

Recommended Posts

Hello there, I just looked at this  http://forums.kleientertainment.com/topic/11612-tutorial-overriding-existing-prefabs-and-loading-custom-prefabs/?hl=override

It looks easy, but I think I have not understand :wilson_confused:

 

Here what I understood:

 

If I want to modify stats and brain of a mob, should I:

 

- Copy the  mob's  prefab and brain in my mod folder;

- Modify them, of course;

- Then add an override command {GLOBAL.TheSim:LoadPrefabDefs( MODROOT.."prefabs.xml" )} in the modmain?

 

 Thank you for help...

Link to comment
Share on other sites

The ages of overriding existing files are over my friend : P

You'll want to modify everything via modmain.lua

The apiexample mod from Ipsquiggle provides examples for everything, including a brain modification.

Of course you can put a modified vanilla file into your modfolder. If make sure that relative paths match with the original nothing more has to be done. It's just not the way you should do things.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...