My first dungeon.

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
montagneyaya
Posts: 103
Joined: Tue May 01, 2012 11:08 pm

Re: My first dungeon.

Post by montagneyaya »

your setTeleportTarget is strange

:setTeleportTarget(level,x,y,facing)

level 10 in the coordinate 24,2 and facing 6 ?
facing must be 0, 1, 2 or 3 (north, east, south or west).
User avatar
Pandafox
Posts: 268
Joined: Wed Apr 11, 2012 11:25 pm
Location: France
Contact:

Re: My first dungeon.

Post by Pandafox »

montagneyaya wrote:your setTeleportTarget is strange

:setTeleportTarget(level,x,y,facing)

level 10 in the coordinate 24,2 and facing 6 ?
facing must be 0, 1, 2 or 3 (north, east, south or west).
I think you gave to me the solution !
I made a mistake in the order ! thanks a lot ! :mrgreen:
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: My first dungeon.

Post by Komag »

I guess it may not matter in this case, but it's also always a good idea to not use the same name in different situations, such as the variable named temporaryteleporter and the name of the spawned teleporter being "temporaryteleporter". This is especially important when working with functions.
Finished Dungeons - complete mods to play
User avatar
Pandafox
Posts: 268
Joined: Wed Apr 11, 2012 11:25 pm
Location: France
Contact:

Re: My first dungeon.

Post by Pandafox »

Thanks for your help !
My dungeon is now finished but I need to ask a last question...
Maybe it is a stupid question.... but...
How to make the end ?? :lol:
Nothing happend when I kill the cube (the last monster of my dungeon), what have I to do ?
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: My first dungeon.

Post by Skuggasveinn »

you need to call completeGame

Code: Select all

function theend()
	completeGame("mod_assets/cinematics/ending.lua")
end
When the function theend gets called, it will end the game and play the ending.lua in the cinematics folder
There you can have pictures and text like with the intro.

also take a look at msyblade's thread about proper endgame credits.
viewtopic.php?f=14&t=4365&p=44848&hilit=credits#p44645

Skuggasveinn.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
Pandafox
Posts: 268
Joined: Wed Apr 11, 2012 11:25 pm
Location: France
Contact:

Re: My first dungeon.

Post by Pandafox »

ok ! thanks !

PS : yeah !! your avatar is a Atari ST 16 colors pictures from a demo by TLB ! rulez !!
Post Reply