Page 9 of 396

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 04, 2014 11:48 am
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

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 04, 2014 2:58 pm
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

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 04, 2014 6:12 pm
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?

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 04, 2014 6:59 pm
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

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 04, 2014 7:27 pm
by The cube
How to open a door with a script? .open() and .activate() crash.

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 04, 2014 8:01 pm
by Sutekh
Try this, works for me anyway. ;)

Code: Select all

function openDoor()
   door_id.door:open()
   end

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 04, 2014 9:14 pm
by The cube
Yeah i forgot the .door, that works.

Re: Ask a simple question, get a simple answer

Posted: Wed Nov 05, 2014 9:30 pm
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.

Re: Ask a simple question, get a simple answer

Posted: Wed Nov 05, 2014 9:56 pm
by Jackard
Is that second wakeup supposed to have a typo? I am unfamiliar with scripting.

Re: Ask a simple question, get a simple answer

Posted: Wed Nov 05, 2014 10:05 pm
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")