Project Zomboid

Project Zomboid

(TileEd question) How do i add placed items?
So, how do i add items to houses, like not in containers, but like bread and knife on a table in kitchen or electronics journal, screwdriver and electric parts on a table. In vanilla you can encounter these, so, is it possible to add them myself to my map, and if it is, how do i do that?
< >
Đang hiển thị 1-6 trong 6 bình luận
Beard 6 Thg08, 2022 @ 9:04am 
Right click the item, and click Place Item
no, but like, do those vanilla preplaced items placed like so?
Or can i somehow add them with code, or usings TileZed itself?
Beard 7 Thg08, 2022 @ 4:02am 
I am not sure what you mean by that in that case... you mean you want to create a map mod and place the items as such in the map mod?
Yeah, i'm currently making a map, and want to add items that just lay down like in vanilla, like, you can visit one home and there, with a chance could be, like, pot of soup and twho bowls with spoons, just standing on a table like somebody placed them, but they spawned like that. And i want to do something likewise. So, how can i do that? Can i do that in building editor, or do i need to write it in item distibution table somehow?
Lần sửa cuối bởi света кейпоп; 7 Thg08, 2022 @ 7:45am
Beard 8 Thg08, 2022 @ 1:24am 
I think that question would be beyond my knowledge, if you are asking about adding your own custom events then those are hardcoded into the java classes if I remember correctly.
As for adding the stories to specific buildings you would need to do a lua mod for that seemingly and use these functions:

building_def = square:getBuilding()
rbbasic = getWorld():getRBBasic()
rbbasic:randomizeBuilding(building_def)

This should add a random story to that specific building definition. Again I am not proficient with lua and mapping myself so this info was mostly just forwarded. Its not something you can just do with the editor itself currently.
Okay, thanks at least for this, i'll try that out when my map will come to that stage of development
< >
Đang hiển thị 1-6 trong 6 bình luận
Mỗi trang: 1530 50

Ngày đăng: 6 Thg08, 2022 @ 7:18am
Bài viết: 6