Search found 15 matches

by The_Morlock
Wed Jul 03, 2024 3:33 pm
Forum: Mod Creation
Topic: NPC's and custom voice/sound?
Replies: 25
Views: 30124

Re: NPC's and custom voice/sound?

I've uploaded a version for LoG2 that includes almost ALL (40+) of the basic monsters. ( video here or download demo and source here ) With a few lines of scripting it's easy to interact with them, give them something or command them to move. mdNPC.source:registerNPC("myNPC") -- registers...
by The_Morlock
Mon Jul 01, 2024 5:32 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3912
Views: 3093183

Re: Ask a simple question, get a simple answer

While I was looking for something easier to manage, this at least works and it isn't all over the place with the naming. Explicit item and surface names... yeesh. I'll work a little more on this later on, but I at least have a level done. -- -- Script works with explicit item names and explicit surf...
by The_Morlock
Sun Jun 30, 2024 12:28 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3912
Views: 3093183

Re: Ask a simple question, get a simple answer

My bad it should be for _,item in altar_1.surface:contents() do --etc end Where _ is the index, and 'item' is the Item component Appreciate that. I've added a entra line to see what the offset variables are and I see that the item is noted as table... is that expected? https://i.postimg.cc/3RhSKvDV...
by The_Morlock
Fri Jun 28, 2024 7:01 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3912
Views: 3093183

Re: Ask a simple question, get a simple answer

Still some work needed evidently... function randomizeItems() local offsetX = math.random(-3, 3) / 10 local offsetY = math.random(-3, 3) / 10 local offsetZ = math.random(-3, 3) / 10 for item in tp_shop_counter_01_part02_1.surface:contents() do if item.go.name == "fjeld_warg_meat" then item...
by The_Morlock
Fri Jun 28, 2024 6:41 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3912
Views: 3093183

Re: Ask a simple question, get a simple answer

Altars and other such objects use the Surface Component to store items I think something like this works: for item in altar_1.surface:contents() do if item.go.name == "fire_bomb" then item.go:setSubtileOffset(x,y) end end Oh, appreciate that. I finally got the script working for specific ...
by The_Morlock
Thu Jun 27, 2024 4:04 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3912
Views: 3093183

Re: Ask a simple question, get a simple answer

Use :setSubtileOffset(x, y) to influence the placement of individual objects in a tile. A way to do this for groups is to iterate through the items and randomly nudge them around. Alternately the items could be placed in formations based upon how many items are present. Thank you for that. One last...
by The_Morlock
Sun Jun 09, 2024 12:59 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3912
Views: 3093183

Re: Ask a simple question, get a simple answer

Hello,

When using an altar or table, is there a way to randomly place items around the table (asset addon)? For instance, if I add three items, they all show in the center, all sort of through each other.

Thank you!
by The_Morlock
Fri Jun 07, 2024 3:37 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3912
Views: 3093183

Re: Ask a simple question, get a simple answer

The dungeon editor doesn't support moving the solid bounds of the dungeon walls in a group, but the map levels themselves are just simple text blocks, found in the Dungeon.lua file; found in your mod's scripts folder. It is possible to edit the tile elevations in a text editor. Each number represen...
by The_Morlock
Fri Jun 07, 2024 1:42 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3912
Views: 3093183

Re: Ask a simple question, get a simple answer

Hey everyone, Using the LoG2 Dungeon Editor, how do you move all mapped cells and their contents? One one of my maps, I realized I was off by one X and one Y coordinate. I want to select all and move up one and right one. Currently, the only way I know to do this is to select all assets, move them o...
by The_Morlock
Thu Jun 06, 2024 2:30 am
Forum: Mod Creation
Topic: Grimstone Keep (A Reimagining of Stonekeep by Interplay)
Replies: 1
Views: 272

Re: Grimstone Keep (A Reimagining of Stonekeep by Interplay)

So, I'd imagine that a lot of these images would seem rather normal for those here modding LoG2. Yes, currently using the LoG2 core assets as well as those from Skuggasveinn (Dead Bodies and Secret bookshelf door project), ORRR3, and Bongobeat. Yes, they will all be noted in credits, etc... once I f...