Cinematic Script Help!

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Xianard
Posts: 1
Joined: Thu Feb 07, 2013 6:03 am

Cinematic Script Help!

Post by Xianard »

Hello! So this is my first foray into dungeon-making and I'm troubled with the cinematic creation process. I've gotten to the point where my code no longer crashes the game, but I still get a completely black screen that, if clicked enough, will advance to the start of my game. The intended text does not show up. I have also decided against using a picture. Any ideas what I've done wrong? Any help is appreciated! :D

Code: Select all

-- opening cinematic with a title and story text
enableUserInput()
startMusic("mod_assets/sounds/intro2.ogg")

-- show the title text
sleep(1)
setFont("IntroTitle")
showText("The Hooded Hollow", 3)
sleep(2)
fadeOutText(1)

-- show the story text
sleep(1)
textWriter([[
Long ago in a far off land, refugees discovered a lush landscape to begin a new life. Not long after their decision to stay did four mysterious hooded figures approach the group.
These alien beings carried a nefarious aura about them and errie lanterns of blue flames. These creatures demanded the people worship and pay tribute to them, or risk a massacre.
The refugees fell to their knees in fear and offered to build them a grand temple. This did not suffice. They offered to leave offerings of food and treasure. This did not suffice.

Finally, the creatures demanded a sacrifice of four humans every five years. They were to be sent to the creatures' home, known as the Hooded Hollow and put through tests of
strength, cunning, and courage. If they passed all tests, the creatures would consume the sacrifices and grant the settlers safety for the next five years.
To this day, no group of sacrifices has passed the tests.
]])
click()
fadeOutText(0.5)

-- show the story text 2
sleep(1)
textWriter([[
Due to the lack of worthy sacrifices, the hooded figures have cursed the land and claimed dominion over the people living there. One day, four noble souls decide to bring the
tyrany to an end. The group trains for years to become expert fighters and cunning adventurerers, until they feel the time is right. By rigging the selection process,
the four souls become the four sacrifices. Their aim is to defeat the challanges set for them and to destroy these creatures who have enslaved their people for centuries.

Can these brave souls topple the opposing rule of these creatures or will they fall like those before them?
]])
click()
fadeOutText(0.5)

fadeOut(4)
fadeOutMusic(3)
User avatar
aaneton
Posts: 189
Joined: Fri Sep 21, 2012 1:53 pm

Re: Cinematic Script Help!

Post by aaneton »

I'm no expert in this code but you might need to add a fadein and fadeout

Code: Select all

fadeIn(2)
before first sleep(1) in code

Code: Select all

fadeOut(2)
at end of script
My Grimrock mod (LoG1): The Onkalo Project
My Android (and windows desktop) game: Balloon Gentleman
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Cinematic Script Help!

Post by Drakkan »

Breath from the unpromising waters.
Eye of the Atlantis
Ixnatifual

Re: Cinematic Script Help!

Post by Ixnatifual »

Here's an example of a working intro for my dungeon using the example shown in Drakkan's link (actual text replaced to prevent spoilers):

Code: Select all

-- cinematic with a title and story text
enableUserInput()
startMusic("assets/samples/music/intro.ogg")

--showImage("assets/textures/cinematic/intro/page01.tga")
fadeIn(2)

-- show the title text
sleep(1)
setFont("IntroTitle")
showText("Bla of the Blah Blah", 3)
sleep(2)
fadeOutText(1)

-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
Bla bla...
]])
click()
fadeOutText(0.5)

-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
Bla bla...
]])
click()
fadeOutText(0.5)

-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
Bla bla...
]])
click()
fadeOutText(0.5)

-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
Bla bla...
]])
click()
fadeOutText(0.5)


fadeOut(4)
fadeOutMusic(3)
Post Reply