Search found 2685 matches

by minmay
Mon Jan 18, 2021 10:50 pm
Forum: Mod Creation
Topic: Ankle and knee deep water mods?
Replies: 17
Views: 8480

Re: Ankle and knee deep water mods?

You can do this without umods or any model files. Here's a copy of a post I wrote about doing this a few years ago: Here is how to determine whether the party is underwater: if they are in a tile with the underwater flag (such as forest_underwater), and their world Y position is below -0.6, they are...
by minmay
Sat Jan 16, 2021 6:11 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3708
Views: 1256757

Re: Ask a simple question, get a simple answer

Yes, you can use a custom BrainComponent.onThink hook to make the other monster act however you want.
by minmay
Tue Jan 12, 2021 3:51 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3708
Views: 1256757

Re: Ask a simple question, get a simple answer

If this is in a script_entity, you can use delayedCall.

Code: Select all

function test()
	print("test")
	delayedCall(self.go.id, 2, "test2")
end

function test2()
	print("test_2")
end
by minmay
Mon Jan 11, 2021 9:23 pm
Forum: Mod Creation
Topic: Blender importer/exporter [1.5.0]
Replies: 3
Views: 108

Blender importer/exporter [1.5.0]

This is a continuation of bitcpy's excellent Blender importer/exporter for Legend of Grimrock models and animations. bitcpy did all the hard work; I just ported it to work with Blender 2.9+ and did a few tweaks. The latest version in that thread only fully worked with Blender 2.73a and earlier, and ...
by minmay
Sat Jan 09, 2021 6:46 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3708
Views: 1256757

Re: Ask a simple question, get a simple answer

That elevator model file is really weird (by necessity at the time), and unfortunately I don't have a good answer for what causes the filesize disparity. However, I think using the maxHeight field on the Door class would work as an alternative way to do the door hack that doesn't require a wacky mod...
by minmay
Sun Jan 03, 2021 12:10 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3708
Views: 1256757

Re: Ask a simple question, get a simple answer

Returning false from the socket's onInsertItem hook (not the onAcceptItem hook) should prevent its onInsertItem connectors from triggering, so you could use that. Alternatively, if you'd rather do this without changing the item definition, just connect the socket to a script entity instead of direct...
by minmay
Sat Jan 02, 2021 2:10 am
Forum: Mod Creation
Topic: 64-bit version of LOG2
Replies: 14
Views: 648

Re: 64-bit version of LOG2

ITERC and ITERN are the same in 2.1 as they are in 2.0; they don't have the empty slot. So hopefully those won't be any trouble. (Famous last words...)
by minmay
Sat Jan 02, 2021 12:00 am
Forum: Mod Creation
Topic: 64-bit version of LOG2
Replies: 14
Views: 648

Re: 64-bit version of LOG2

Ah crap, you're right, I was thinking that parsing for the "function()" and "function nameOfFunction()" syntaxes would be sufficient because the script interface doesn't give access to loadstring() or the like...but ScriptComponent:setSource() lets you produce the same effect as loadstring(), and at...
by minmay
Fri Jan 01, 2021 9:37 pm
Forum: Mod Creation
Topic: 64-bit version of LOG2
Replies: 14
Views: 648

Re: 64-bit version of LOG2

Hoo boy...I'll take a stab at this. Apologies if this is just stuff you've already thought of. If Isle of Nex save compatibility is enough, I can think of a very gross and hacky, but relatively easy, way of doing it: parse ScriptComponent sources from dungeon.lua for function definitions, run those ...
by minmay
Thu Dec 31, 2020 5:48 am
Forum: Mod Creation
Topic: UModManager 0.1.0
Replies: 2
Views: 263

UModManager 0.1.0

So this isn't super clean or well tested (in fact, the last few things I added were super dirty), but I'm putting it out here now, because I probably won't have a lot of time to work on it in the next few weeks, and I figure it needs to be released as early as possible if it's to have any chance of ...