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).
My first dungeon.
- montagneyaya
- Posts: 103
- Joined: Tue May 01, 2012 11:08 pm
Re: My first dungeon.
Door on floor placement: http://grimrock.nexusmods.com/mods/120
Re: My first dungeon.
I think you gave to me the solution !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 made a mistake in the order ! thanks a lot !

Re: My first dungeon.
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
Re: My first dungeon.
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 ??
Nothing happend when I kill the cube (the last monster of my dungeon), what have I to do ?
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 ??

Nothing happend when I kill the cube (the last monster of my dungeon), what have I to do ?
- Skuggasveinn
- Posts: 562
- Joined: Wed Sep 26, 2012 5:28 pm
Re: My first dungeon.
you need to call completeGame
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.
Code: Select all
function theend()
completeGame("mod_assets/cinematics/ending.lua")
end
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.
Re: My first dungeon.
ok ! thanks !
PS : yeah !! your avatar is a Atari ST 16 colors pictures from a demo by TLB ! rulez !!
PS : yeah !! your avatar is a Atari ST 16 colors pictures from a demo by TLB ! rulez !!