[ASSET] - DM SKELETON RAISING FROM COFFIN

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
germanny
Posts: 530
Joined: Sat Apr 07, 2012 10:52 pm
Location: Kiel, Germany

Re: [ASSET] - Surprise by Leki

Post by germanny »

Oh, i´ve exported them already to obj, fbx and collada w. textures.
I add the assets then.

*ED
You have mail, Leki.
Dungeon Master Resource Pack worker and passionated Beer drinker
User avatar
Leki
Posts: 550
Joined: Wed Sep 12, 2012 3:49 pm

Re: [ASSET] - Surprise by Leki

Post by Leki »

DM_Skeleton_v09

Image

Image
I'm the Gate I'm the Key.
Dawn of Lore
User avatar
germanny
Posts: 530
Joined: Sat Apr 07, 2012 10:52 pm
Location: Kiel, Germany

Re: [ASSET] - Surprise by Leki

Post by germanny »

Just awesome! I´d prefer green eyes.. xD
And you may add a bit of color shininess to the eyes by set specular to under color - it looks like you have^^
Dungeon Master Resource Pack worker and passionated Beer drinker
User avatar
Leki
Posts: 550
Joined: Wed Sep 12, 2012 3:49 pm

Re: [ASSET] - Surprise by Leki

Post by Leki »

Image
I'm the Gate I'm the Key.
Dawn of Lore
User avatar
Leki
Posts: 550
Joined: Wed Sep 12, 2012 3:49 pm

Re: [ASSET] - Surprise by Leki

Post by Leki »

Guys, I need script for onDie hook to destroy blockade, otherwise it shows script warning that monster is spawned in invalid spawn location.
Can you solve it for me? Smth like:

Code: Select all

	onDie = function(coffin)
		coffin:destroy()
	end,
It crashes whole time, doesn't matter if I use findEntity etc... Maybe I am tired a little bit so I have typo here - no idea[/color]
I'm the Gate I'm the Key.
Dawn of Lore
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: [ASSET] - Surprise by Leki

Post by Dr.Disaster »

Seems right to me. Maybe something wrong in the coffin definition so the game thinks it's not a blockage?
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: [ASSET] - Surprise by Leki

Post by Diarmuid »

Dr.Disaster wrote:Seems right to me. Maybe something wrong in the coffin definition so the game thinks it's not a blockage?
Probably destroy and spawn might need to be on two different frames?
User avatar
Leki
Posts: 550
Joined: Wed Sep 12, 2012 3:49 pm

Re: [ASSET] - Surprise by Leki

Post by Leki »

Code: Select all

defineObject{
	name = "dm_coffin_skeleton_undead",
	class = "Blockage",
	model = "path/model.fbx",
	brokenModel = "path/model.fbx",
	placement = "floor",
	health = 1,
	evasion = -1000,
	hitSound = "barrel_hit",
	hitEffect = "hit_wood",
	editorIcon = 56,
	onDie = function(coffin)
		coffin:destroy() -- crash here
		spawn("dm_skeleton_sword_shield_i_live_again", coffin.level, coffin.x, coffin.y, coffin.facing) --if I remove destroy() line, it gives console warning about invalid location of skeleton (but game is ok, because there is destroyed coffin model.
       -- here I need one more line to set aiState of spawned monster to guard
	end,
}
I'm the Gate I'm the Key.
Dawn of Lore
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: [ASSET] - Surprise by Leki

Post by Dr.Disaster »

I wonder if the onDie hook does an implizit destroy() by itself.
For example i haven't seen germanny use it for his destroyable doors/walls.

What happens when you do

Code: Select all

onDie = function(coffin)
    return true
end,
User avatar
Leki
Posts: 550
Joined: Wed Sep 12, 2012 3:49 pm

Re: [ASSET] - Surprise by Leki

Post by Leki »

Hmm... I tried all and I have no idea what else I can try...
You can destroy the blockage from ingame script (steping to the plate e.g) but if there is blockage:destroy() in OnDie or OnDamage hook in object definition, it crashes...
I'm the Gate I'm the Key.
Dawn of Lore
Post Reply