Jump to content

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...

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...