Re: (WIP) Curious Conundrum / CFD 2012 submission
Posted: Thu Dec 06, 2012 8:14 pm
There is no way to pause for a time, you have to instead start a timer and then have the timer trigger the next stuff (and trigger itself to stop)
Official Legend of Grimrock Forums
http://mail.grimrock.net/forum/
Code: Select all
function ending()
hudPrint ("Thank you for playing through my dungeon! I hope you enjoyed your experience")
playSound ("pit_close")
playSound ("secret")
playSound ("heal_party")
playSound ("level_up")
sleep(1) <---------- attempt to call global 'sleep' (a nil value)
setFont("Intro")
textWriter([[
"A Curious Conundrum" Credits:
Designed, written, and created by Redweaver
The ability to put a project like this together:
The entire, awesome community on the grimrock.net forum.
Playtesters/Creative input:
Grimwold for all his scripting help.
msyblade for banging ideas together with me.
Komag for reminding me to RTFM while I was scripting.
And YOU!
Thanks so much for playing!!
]])
click()
fadeOutText(0.5)
fadeOut(4)
endOOOOOOPS!Ancylus wrote:The package you've uploaded into Nexus seems to contain only the .dungeon_editor file, but not the actual contents of your dungeon. You need to either include the mod_assets directory in the package, or export your dungeon from the editor and share the resulting .dat file.
Code: Select all
function ending()
hudPrint ("Thank you for playing through my dungeon! I hope you enjoyed your experience")
playSound ("pit_close")
playSound ("secret")
playSound ("heal_party")
playSound ("level_up")
completeGame("mod_assets/cinematics/ending.lua")
endI stole your code and you couldn't tell? Did I hack it up that badly?msyblade wrote:You should check out this thread(Finally get to use one of mine
)
viewtopic.php?f=14&t=4365
Code: Select all
function ending()
hudPrint ("Thank you for playing through my dungeon! I hope you enjoyed your experience")
playSound ("pit_close")
playSound ("secret")
playSound ("heal_party")
playSound ("level_up")
completeGame ("mod_assets/cinematics/ending.lua")
endCode: Select all
enableUserInput()
-- startMusic("mod_assets/sounds/intro.ogg")
-- showImage("assets/textures/cinematic/intro/page02.tga")
fadeIn(2)
-- show the title text
sleep(1)
setFont("IntroTitle")
showText("The End", 3)
sleep(2)
fadeOutText(1)
-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
You escaped!
...so why are the hairs on the back of your neck standing up?
]])
click()
setFont("Intro")
textWriter([[
"A Curious Conundrum" Credits:
Designed, written, and created by Redweaver
Playtesters/Creative input:
Grimwold for all his scripting help.
msyblade for banging ideas together with me and reminding me to give credit where credit's due.
Komag for reminding me to RTFM while I was scripting.
The ability to put a project like this together:
The entire, awesome community on the grimrock.net forum.
And YOU!
Thanks so much for playing!!
]])
click()
fadeOutText(0.5)
fadeOut(4)
fadeOutMusic(3)