Search found 209 matches

by 7Soul
Sat Jun 29, 2024 2:24 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3909
Views: 3088101

Re: Ask a simple question, get a simple answer

My bad it should be

Code: Select all

for _,item in altar_1.surface:contents() do
     --etc
end
Where _ is the index, and 'item' is the Item component
by 7Soul
Fri Jun 28, 2024 6:15 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3909
Views: 3088101

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:

Code: Select all

for item in altar_1.surface:contents() do
	if item.go.name == "fire_bomb" then
		item.go:setSubtileOffset(x,y)
	end
end
by 7Soul
Fri Jun 28, 2024 6:10 pm
Forum: Modding
Topic: Global functions?
Replies: 1
Views: 178

Re: Global functions?

Global functions?
That's your question? You want to make global functions? You want to know what are the global functions that the scripting system has? Can you be more specific?
by 7Soul
Tue Jun 25, 2024 3:28 pm
Forum: Info
Topic: What is going on with the forum??
Replies: 4
Views: 302

Re: What is going on with the forum??

I can login no problem on Firefox, maybe it's an extension?

And yes the CSS is broken...
by 7Soul
Sun Jun 09, 2024 11:28 pm
Forum: Info
Topic: New forum theme! Report issues.
Replies: 7
Views: 8520

Re: New forum theme! Report issues.

The CSS is gone!
by 7Soul
Sun Jun 09, 2024 4:41 pm
Forum: Mod Creation
Topic: [UMod] Editor+ (minor editor improvements)
Replies: 12
Views: 12791

Re: [UMod] Editor+ (minor editor improvements)

New version https://www.nexusmods.com/legendofgrimrock2/mods/178?tab=files - Added Tile Selection tool: allows copy/pasting sections of tiles, with rotation and flipping (read info at the bottom of editor screen) (the shadows look buggy when you flip the selection, since the engine doesn't support f...
by 7Soul
Tue Jun 04, 2024 1:04 am
Forum: Mod Creation
Topic: [UMod] Editor+ (minor editor improvements)
Replies: 12
Views: 12791

Re: [UMod] Editor+ (minor editor improvements)

Great job on this... wished I could sue it! HA! So, using the Steam version here and set the BETA and the key. Still haven't seen the Mods folder nor the mods.cfg file. Version still shows v2.2.4. By chance can this just be created? Mind sharing the mods.cfg file so I can make it myself? Make sure ...
by 7Soul
Wed May 29, 2024 10:02 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3909
Views: 3088101

Re: Ask a simple question, get a simple answer

Is it possible to have fog in a map that has an ocean? I tested the usual sky fog with ocean and the ocean is rendered on top of the fog
by 7Soul
Sun May 26, 2024 8:23 pm
Forum: Mod Creation
Topic: setCauseCondition expects table
Replies: 4
Views: 603

Re: setCauseCondition expects table

Looks like another oversight in the scripting interface :/ It does expect a table when it should've been a string

A way of making it work would be to use the `onAttackHit(self, champion)` hook to manually apply the random condition, ignoring the causeCondition property entirely
by 7Soul
Sun May 26, 2024 4:00 pm
Forum: Mod Creation
Topic: [UMod] Editor+ (minor editor improvements)
Replies: 12
Views: 12791

Re: [UMod] Editor+ (minor editor improvements)

Update 0.3.0 - Created objects now take on the elevation of the tile they're placed on - Fixes a crash related with copy-pasting wall objects over other walls - Fixes a crash related to placing pillars at the edge of maps -- This file contains sections of Legend of Grimrock 2 source code; anything y...