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!
User avatar
ratman
Posts: 159
Joined: Fri Jan 10, 2020 1:13 am

Re: Ask a simple question, get a simple answer

Post by ratman »

@ THOM

Thanks. Now I have a new problem: The lindworm works fine, but I can't damage it at all. I remove this line:

Code: Select all

self:setMonsterFlag("CantDie", true)
or set it to false, and the lindworm just instantly dies.
hyteria
Posts: 266
Joined: Sat Dec 29, 2012 8:22 pm

Re: Ask a simple question, get a simple answer

Post by hyteria »

hello

in grimrock 2 , how i can shake camera ?

party:shakeCamera(0.5,1)

seems to not work anymore
ty
User avatar
Zo Kath Ra
Posts: 937
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Ask a simple question, get a simple answer

Post by Zo Kath Ra »

hyteria wrote: Thu Nov 05, 2020 6:42 pm hello

in grimrock 2 , how i can shake camera ?

party:shakeCamera(0.5,1)

seems to not work anymore
ty
Thom has explained it very well:
http://www.grimrock.net/forum/viewtopic ... 65#p120065
hyteria
Posts: 266
Joined: Sat Dec 29, 2012 8:22 pm

Re: Ask a simple question, get a simple answer

Post by hyteria »

thx ! you made my day ! ;)
User avatar
7Soul
Posts: 209
Joined: Sun Oct 19, 2014 1:56 am
Location: Brazil

Re: Ask a simple question, get a simple answer

Post by 7Soul »

So... there's no monster:getAiState()?

This kinda kills my randomizer...

Edit: I just went through dungeon.lua and got the IDs of the monsters that are set to guarding and used that. Still sucks that I can't grab that state on the fly though :/
Last edited by 7Soul on Thu Nov 05, 2020 10:40 pm, edited 1 time in total.
Join the LoG discord server: https://discord.gg/ArgAgNN :D

My Mods
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 »

ratman wrote: Wed Nov 04, 2020 11:44 pm @ THOM

Thanks. Now I have a new problem: The lindworm works fine, but I can't damage it at all. I remove this line:

Code: Select all

self:setMonsterFlag("CantDie", true)
or set it to false, and the lindworm just instantly dies.
Mh - strange. Can you post you complete lindworm definition?
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
hyteria
Posts: 266
Joined: Sat Dec 29, 2012 8:22 pm

Re: Ask a simple question, get a simple answer

Post by hyteria »

hi ,

how i can define a color for LightComponent:getColor() ? it is a rgb system ? or a specifique table with color ?

thx
IttaBitta
Posts: 21
Joined: Thu Oct 22, 2020 12:14 am

Re: Ask a simple question, get a simple answer

Post by IttaBitta »

7Soul wrote: Wed Nov 04, 2020 11:03 pm There's some at nexusmods https://www.nexusmods.com/legendofgrimrock2
just, does anyone have the frozen dungeon stuff laying around still? There's a lot of lost pieces that are probably still somewhere right?
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

7Soul wrote: Thu Nov 05, 2020 7:31 pm So... there's no monster:getAiState()?

This kinda kills my randomizer...
Monsters who are guarding, are usually not moving. ;)
MonsterComponent:isMoving()
hyteria wrote: Thu Nov 05, 2020 10:18 pm...how i can define a color for LightComponent:getColor() ?
https://github.com/JKos/log2doc/wiki/Co ... -component
hyteria
Posts: 266
Joined: Sat Dec 29, 2012 8:22 pm

Re: Ask a simple question, get a simple answer

Post by hyteria »

ok so it setcolor but they say (color) what they mean? a rgb code ?
Post Reply