Jump to content

Recommended Posts

How to add prefabs, who use 1 file, into game? (like bishop and nightmare-bishop)

How to code them into modmain.lua?

 

 

I tried to use bishop(nightmare-bishop) file there are 2 prefabs coded. I just copied "bishop.lua" renamed and remade last strings in it. So I got:

..........

return Prefab("chessboard/bishop2", function() return MakeBishop(false) end , assets, prefabs),
Prefab("cave/monsters/bishop_nightmare2", function() return MakeBishop(true) end , assets, prefabs)

And written those prefabs into modmain.lua:

 

 

PrefabFiles =
{  "bishop2", "bishop_nightmare2" } 

But I got error.

 

Please help me.
 

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