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
blob
Posts: 50
Joined: Fri Aug 02, 2013 9:34 am

Re: Ask a simple question, get a simple answer

Post by blob »

Hi,

I have a kinda similar questions on object cloning.
I'm trying to have one of those demon heads work like those beacon_furnace_head, as in, I want the model to be the demon statue head but I want it to emit light and display a hint when clicked. So far my temporary solution is to place a beacon furnace head with model off, but I'd rather have a new object that has the furnace components and demon head model.

I find myself stuck at finding how to define the class names and components... Where could I find the data infos of the beacon furnace head please?
Is there a file I could dig in to retrieve the infos of original assets?

I'm stupidly only there for now:

defineObject{
name = "demon_hint",
baseObject = "beacon_furnace_head_1",
components = {
{
class = "

Thanks,
blob
User avatar
Vice Dellos
Posts: 47
Joined: Thu Feb 28, 2013 12:56 pm

Re: Ask a simple question, get a simple answer

Post by Vice Dellos »

has anyone turned the collapsed dungeon thingies into stairs? i tried to do it by stacking it with a stairs without the model, but that also removes the walls so it doesnt really work
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Ask a simple question, get a simple answer

Post by Jackard »

Vice Dellos wrote:has anyone turned the collapsed dungeon thingies into stairs? i tried to do it by stacking it with a stairs without the model, but that also removes the walls so it doesnt really work
Did you also try adding fake walls?
User avatar
Vice Dellos
Posts: 47
Joined: Thu Feb 28, 2013 12:56 pm

Re: Ask a simple question, get a simple answer

Post by Vice Dellos »

yeah

edit: tried again castle walls seem to work somehow, but i was making t in a dungeon place and dungeon walls dont work.

dungeon walls on castle stairs dont work either
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Re: Ask a simple question, get a simple answer

Post by The cube »

How to open a door with a script? .open() and .activate() crash.
User avatar
Sutekh
Posts: 127
Joined: Sun Nov 25, 2012 9:58 am
Location: UK

Re: Ask a simple question, get a simple answer

Post by Sutekh »

Try this, works for me anyway. ;)

Code: Select all

function openDoor()
   door_id.door:open()
   end
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Re: Ask a simple question, get a simple answer

Post by The cube »

Yeah i forgot the .door, that works.
PPanda
Posts: 20
Joined: Tue Oct 14, 2014 9:13 am

Re: Ask a simple question, get a simple answer

Post by PPanda »

Ok, question. I'm making headway learning how to script, but I'm hitting a roadblock and could use a little help.

I'm trying to wake up a dormant_twigroot but I'm unclear how to do that. I tried:
dormant_twigroot_1.MonsterComponent(wakeup):setAIState(wakup)
But that didn't do it. I scanned the scripting references, but I don't see anything that would "activate" the dormant_twigroot.
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Ask a simple question, get a simple answer

Post by Jackard »

Is that second wakeup supposed to have a typo? I am unfamiliar with scripting.
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: Ask a simple question, get a simple answer

Post by Prozail »

PPanda wrote:I'm trying to wake up a dormant_twigroot but I'm unclear how to do that.
Honestly this one isn't totally crystal clear on how to do. :)

wakeUp is a MonsterAction so you have to:

twigroot_dormant_1.monster:performAction("wakeUp")
Post Reply