[WIP] The Glaive of Krull

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
pferguso
Posts: 40
Joined: Tue Nov 06, 2012 6:09 pm

[WIP] The Glaive of Krull

Post by pferguso »

Here is my Glaive of Krull mod for Legend of Grimrock! The glaive bounces off walls and returns to the hand of the thrower. It goes right through monsters and cuts them up, and then hits them again when it comes back! The Glaive can also trigger levers on walls, and can deflect off the shields of a special modified statue I did, which the player can rotate when they hit it with a melee weapon.

screenshot 1:
http://steamcommunity.com/sharedfiles/f ... =114192664

screenshot 2:
http://steamcommunity.com/sharedfiles/f ... =114192540

video:
https://www.youtube.com/watch?v=Kms9ASr81ZE
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Re: [WIP] The Glaive of Krull

Post by Soaponarope »

That is awesome!

Love the bouncing off the statues.
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: [WIP] The Glaive of Krull

Post by Grimwold »

indeed this is very impressive. I'd love to know how you scripted it, as I spent a lot of time scripting my returning axe that comes back after hitting monsters
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: [WIP] The Glaive of Krull

Post by Batty »

This is very cool & well done, I'm interested in the script as well.

My favorite 80s sandal flick was The Sword and the Sorcerer, mean & dirty! I remember seeing Krull but don't remember if I liked it or not.

I know this is game world but IMHO shifting 5 ton statues with a single sword blow is too much of a stretch for me.
Last edited by Batty on Tue Dec 18, 2012 10:46 pm, edited 1 time in total.
User avatar
Billick
Posts: 201
Joined: Thu Apr 19, 2012 9:28 pm

Re: [WIP] The Glaive of Krull

Post by Billick »

That is really cool. Nice work! I don't remember seeing the Krull movie, but I'm pretty sure I remember playing a Krull arcade game.
Halls of Barrian - current version 1.0.3 - Steam Nexus
Me Grimrock no bozo!
User avatar
germanny
Posts: 530
Joined: Sat Apr 07, 2012 10:52 pm
Location: Kiel, Germany

Re: [WIP] The Glaive of Krull

Post by germanny »

Now this is great, very good job!

I´ve watched the movie krull in the 80s too, and revieved him last year.
Then, I found it great, but now rather mediocre to good. But this for my age, i guess^^. Things changed.

Are you willing to share your script?
Dungeon Master Resource Pack worker and passionated Beer drinker
User avatar
pferguso
Posts: 40
Joined: Tue Nov 06, 2012 6:09 pm

Re: [WIP] The Glaive of Krull

Post by pferguso »

Grimwold wrote:indeed this is very impressive. I'd love to know how you scripted it, as I spent a lot of time scripting my returning axe that comes back after hitting monsters
I will share the script after I release my dungeon, but I can speak in psudo code here:

When the glaive is thrown, it uses a shootProjectile function. the glaive direction determines the offset of this launch in relation to the player, so that it starts off a bit to the left, and returns in the center. Also, it is set as "fragile" and this has a big part in figuring out where it is at any time.

After launch, a timer function starts, and searches for the glaive. When it finds it, it records its location, and current direction. If it can't find it, then I know that the glaive as collided with either a monster, some blockage, or a wall.

When this happens, I go through a function that determines if it should come back in the opposite direction that it was flying when it disappeared (hit wall), or if it should continue going in the current direction (hit monster) or if it should turn (hit a deflector)

After determining the type and manner of collision, the script will spawn a new projectile of the glaive in the direction and location in which it was previously lost track of.

As for making it not hurt the party, this involves having a onProjectileHit hook on the party script, which prevents the glaive from harming the party when it comes back, and thus triggering the "catch" part of the script. In order to prevent the player from catching the glaive instantly upon throwing it, I make the projectile Glaive ignore the party when it is first thrown.

I hope that helps, and like I said, I'll share the complete source, but I have too many goodies that are going into my Dungeon that I'd like to release that first, then the source for all my weapons and traps I will release then.
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: [WIP] The Glaive of Krull

Post by Skuggasveinn »

The video is awesome, really nice work.
Now I have to dig up that movie :D

Skuggasveinn.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
LordYig
Posts: 175
Joined: Wed Jul 04, 2012 5:45 pm

Re: [WIP] The Glaive of Krull

Post by LordYig »

Very nice and impressive !
I haven't seen the Krull movie but i guess I'll have some time to find and watch it before you release you dungeon.
User avatar
Rook
Posts: 71
Joined: Thu Dec 06, 2012 5:48 pm
Location: Belfast, UK

Re: [WIP] The Glaive of Krull

Post by Rook »

That is seriously impressive!

Looking forward to getting my hands on it.
Post Reply