Proper End credits
Posted: Sun Nov 25, 2012 1:42 am
Something I think that should be essential in all mods we make is proper credits giving due thanx to all of the contributers.
So I thought I'd paste mine to give an example for people who, like me, use the assets available here liberally. I'll paste the actual code afterward for anyone having trouble getting end credits to work.
Make a connector in the editor (pressure plates, or monster onDie hooks work great),
to a script entity with a function call ie:
Here's a working end script. You need no custom assets except to have an .ogg file in mod_assets/sounds named intro.ogg or rename it however you like in the script. Also a good idea to get a custom pic for showImage.Otherwise just change the names of the mod, and contributers, and it's ready to go. It has two phases, a storyline outro, then onclick to credits. Enjoy!
Cool?
So I thought I'd paste mine to give an example for people who, like me, use the assets available here liberally. I'll paste the actual code afterward for anyone having trouble getting end credits to work.
SpoilerShow
Hotel Hades 2 Credits:
Designed, written, and created by msyblade
Custom assets:
Custom Wallsets by Daniv
Custom Alcoves by Neikun, batty and crisman
Custom spells by Grimwold
Randomized Tomes by Ixnatifual
The ability to put a project like this together:
The entire, awesome community on the grimrock.net forum.
Playtesters/Creative input:
subaruswift (The Original)
Neikun (The Pro)
twist86 (The Connoisseur)
aljen77 (The Completionist)
Thanx so much for playing!!
Designed, written, and created by msyblade
Custom assets:
Custom Wallsets by Daniv
Custom Alcoves by Neikun, batty and crisman
Custom spells by Grimwold
Randomized Tomes by Ixnatifual
The ability to put a project like this together:
The entire, awesome community on the grimrock.net forum.
Playtesters/Creative input:
subaruswift (The Original)
Neikun (The Pro)
twist86 (The Connoisseur)
aljen77 (The Completionist)
Thanx so much for playing!!
to a script entity with a function call ie:
Code: Select all
"function ending()"
completeGame ("mod_assets/cinematics/ending.lua")
end
Code: 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([[
Enter your game end storyline text here,
use enter to get proper spacing, but limit to one page
]])
click()
fadeOutText(0.5)
-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
"Your Mod" Credits:
Designed, written, and created by "you"
Custom assets:
Custom Wallsets by Daniv
Custom Alcoves by Neikun, batty and crisman
Custom spells by Grimwold
Randomized Tomes by Ixnatifual
The ability to put a project like this together:
The entire, awesome community on the grimrock.net forum.
Playtesters/Creative input:
subaruswift (The Original)
Neikun (The Pro)
twist86 (The Connoisseur)
aljen77 (The Completionist)
Thanx so much for playing!!
]])
click()
fadeOutText(0.5)
fadeOut(4)
fadeOutMusic(3)