Page 358 of 400

Re: Ask a simple question, get a simple answer

Posted: Wed Nov 04, 2020 11:44 pm
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.

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 6:42 pm
by hyteria
hello

in grimrock 2 , how i can shake camera ?

party:shakeCamera(0.5,1)

seems to not work anymore
ty

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 6:54 pm
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

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 7:07 pm
by hyteria
thx ! you made my day ! ;)

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 7:31 pm
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 :/

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 9:41 pm
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?

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 10:18 pm
by hyteria
hi ,

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

thx

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 11:09 pm
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?

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 11:20 pm
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

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 05, 2020 11:27 pm
by hyteria
ok so it setcolor but they say (color) what they mean? a rgb code ?