Ask a simple question, get a simple answer

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Slava
Posts: 21
Joined: Sun Aug 30, 2015 2:10 pm

Re: Ask a simple question, get a simple answer

Post by Slava »

Hiker wrote: Wed Jul 24, 2024 4:18 pm but then how can I script an item that doesn’t have random properties?
Use standart items. You can create random items using inheritance from base item as I wrote in the example above.

name = "random_sack",
baseObject = "sack",

In this case, you will have both items available. And no need to juggle hooks.
User avatar
Slade
Posts: 45
Joined: Tue Oct 21, 2014 6:31 pm

Re: Ask a simple question, get a simple answer

Post by Slade »

How I get my console working? I have set from grimrock file to console true and shorkey 190 and when I start the editor it wont open. Where is the problem?
Last edited by Slade on Sat Aug 17, 2024 9:26 am, edited 1 time in total.
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

You can't open the console in the main editor interface. You can use it from the dungeon preview, however.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
Slade
Posts: 45
Joined: Tue Oct 21, 2014 6:31 pm

Re: Ask a simple question, get a simple answer

Post by Slade »

How to trigger custom sound with floor triggers that way that it begins with floor trigger and then it loops till the script is ended with floor trigger? I have already defined them in sounds.lua like this
defineSound{
name = "prelude",
filename = "mod_assets/sounds/prelude.wav",
loop = false,
volume = 1,
minDistance = 1,
maxDistance = 1,
}
User avatar
Slade
Posts: 45
Joined: Tue Oct 21, 2014 6:31 pm

Re: Ask a simple question, get a simple answer

Post by Slade »

Me again. Hey can anyone write tutorial(if there aint already) how to :
Control time and day cycles?
Use timers?
Use NPC movement?
I'm back in a long time so I have forgotten even basics. Time to raise! (slowly)
User avatar
Blackswamp
Posts: 16
Joined: Mon Aug 12, 2024 9:24 am

Re: Ask a simple question, get a simple answer

Post by Blackswamp »

Hello people! Hey I'm new and I dont know usable coding for this, so can somebody tell me how counters work? How to add values in them and triggering with scripts? I didnt find on forums that specific thing.
User avatar
THOM
Posts: 1274
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Ask a simple question, get a simple answer

Post by THOM »

Blackswamp wrote: Tue Aug 20, 2024 2:22 am Hello people! Hey I'm new and I dont know usable coding for this, so can somebody tell me how counters work? How to add values in them and triggering with scripts? I didnt find on forums that specific thing.
I explained it some time a go: https://www.grimrock.net/forum/viewtopi ... 653#p91653

You can also have a look at the whole thread.
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
Blackswamp
Posts: 16
Joined: Mon Aug 12, 2024 9:24 am

Re: Ask a simple question, get a simple answer

Post by Blackswamp »

Awesome, thank you.
User avatar
Blackswamp
Posts: 16
Joined: Mon Aug 12, 2024 9:24 am

Re: Ask a simple question, get a simple answer

Post by Blackswamp »

https://imgur.com/yEl2s6p Hey another question. Why I get this error message when I'm trying to shovel ground. It happens everywhere if I just click shovel. I followed Skuggavesteins buried treasures tutorial exactly but I still have this error. If you know something, help mej!
User avatar
THOM
Posts: 1274
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Ask a simple question, get a simple answer

Post by THOM »

What is you init.lua file line 89 - 91 saying?
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
Post Reply