FANDOM


Below is documentation about the leftover scripting files from the demo presented to Game Informer for the November 2009 issue. For information on extracting and decompiling these Lua files, consult the Lua files page.

Note: Excerpts of code are provided to provide additional context. Some code may be paraphrased for simplicity.

Demo.lua Edit

Notes Edit

  • There are lines of code referring to a library and catchable books. It seems to have links to Lonesome Manor.
Demo_Library = "Environments/HauntedMansion/GSA/HauntedMansion_ZoneE.gsa"
  • Hero points are also referred to as "PaladinPoints" in the code.
  • If Mickey leaves without rescuing the gremlins, he receives 25 scrapper points. Otherwise, he receives 25 hero points.
  • After the level, an FMV cutscene plays named fmv_outro_laboratory.bik.
  • After leaving the level, Levels/Demo_GV_Start.level is loaded.

Characters Edit

  • Gremlin Gus
  • Gremlin Jamface (green)
    • Most of the code refers to him as Gremlin Ted.
    • Would have fixed the mechanical arm if returned his wrench.
  • Gremlin Barry (blue)
    • Most of the code refers to him as Gremlin Ghengis.

Dialog boxes/UI text Edit

Trigger

Text

DemoLabBooksCaught == 2
The Scrapper is aligned with the destructive force of Thinner. He is powerful and dangerous- a product of directness and the pursuit of bettering himself at all turns.  He realizes that his needs are paramount and as such accumulates power quickly. His mastery of Thinner and thus destruction is unparalleled.
DemoLabBooksCaught == 1
The Hero is influenced by the creative force of Paint. He is a builder and restorer and as such he draws allies to him that aid in his journey.  In his striving to improve and uplift the world around him he also uplifts himself through acts of nobility and sacrifice.
PauseMenuObjectives()
Mad Doctor's lab:

Rescue Gremlin Gus and escape the lab.

DemoLab_MirrorRoom()
⤷ Demo_ExitTried == 1
Leave the Mad Doctor's Lab?
  • Yes
  • No
Demo_2DObject01()
Goal:

Navigate the Clockworks to the Next Screen

Demo_2DObject02()
Demo_2DObject03()

Character dialogue Edit

Speaker

Trigger

Text

Gus
DemoLab_ColumnFall()
⤷ GusSaved == 1
Oh, my!  Well, just wreck the place, why don't ya?!
Mickey
DemoLab_ColumnFall()
⤷ GusSaved == 0
Ba-booooom!
Gus
DemoLab_GusGreet()
Hey! Hallooo down there! Up here!
You have to help me get out! Quick, jump and spin-attack this cage! (Shake the remote.)
Gus
DemoLab_GusThank()
Thank you! I'm Gus Gremlin. The Mad Doctor captured me like he almost got you!
Gus
DemoLab_GusThank()
⤷ TedSaved == 0 and GngSaved == 0
My squad was trying to sabotage the Doctor's experiment. Two other gremlins are caged in this lab.
Gus
DemoLab_GusThank()
⤷ TedSaved == 1 and GngSaved == 1
My squad was trying to sabotage the Doctor's experiment. Thanks for saving them!
Gus
DemoLab_GusThank()
⤷ TedSaved == 1 or GngSaved == 1
My squad was trying to sabotage the Doctor's experiment. Looks like you've found one of them already.
Gus
DemoLab_GusThank()
⤷ TedSaved == 0 and GngSaved == 0
Look around, would you? Barry and Jamface have to be here somewhere!
Try using Thinner to dissolve some walls. You can erase any wall that looks brightly colored, or you can paint blue sparkly stuff, but choose wisely...
Gus
DemoLab_GusThank()
⤷ TedSaved == 1 or GngSaved == 1
The other is bound to be here somewhere! Look around, would you?
Try using Thinner to dissolve some walls. You can erase any wall that looks brightly colored, or you can paint blue sparkly stuff, but choose wisely...
Gus
Demo_GusThankEnd()
Anyhow, you need to get out of this place! I'll be waiting for you here at the exit. Good luck!
Gus
Demo_GusHint()
⤷ Demo_ExitTried == 0
Hey! What are you doing down there?
Make your way up here, so we can skeedaddle!
Gus
Demo_GusHintLite()
⤷ Demo_ExitTried == 0
Quit messing around!
Jamface
DemoLab_TedGreet()
Gloryosky! I thought I'd never see anyone again! Help a poor gremlin!
Help me out of here! Quick, jump and spin-attack this cage! (Shake the remote.)
Jamface
DemoLab_TedThank()
Thank you. I'm Jamface! I'm a gremlin! I wish I could repay your kindness.
Jamface
DemoLab_TedThank()
⤷ Demo_ExitTried == 1
Wait, did you find my wrench?! You DID! Give it here, then watch me fly!
Jamface
DemoLab_TedThank()
⤷ Demo_ExitTried == 0
I know! My wrench is around here somewhere. If you find it, I can fix that mechanical arm!
Jamface
DemoLab_TedSpeak()
⤷ TedSaved == 1
⤷ Demo_HaveWrench == 0
You might need to Paint in some Thinned parts of the lab, like stairs. They look blue and sparkly.
You can Paint a target by pressing the B button, just like you would use Thinner.
Jamface
DemoLab_TedSpeak()
⤷ TedSaved == 1
⤷ Demo_HaveWrench == 1
Ah, you found my wrench! Now I can fix that mechanical arm for you!
Jamface
Demo_TedFixesRobotArm()
Now you can cross this arm to get to the ledge! Gotta fly - there's a battle shaping up! Goodbye!
Barry
DemoLab_GhengisThank()
Thank'ee kindly, sir! A caged gremlin is a sad critter.
Don't suppose you're missing a wrench? Saw one behind the generator over there.  It's the one with the big spinning wheel!
And if you haven't rescued my buddy Jamface, please look around for him!
Mickey
Demo_GetWrench()
Hmm... a tiny wrench, fit for tiny hands.
Gus
DemoLab_MirrorRoom()
Whoa! That way leads out of this lab. You won't be able to return here.
Gus
Demo_GusExitOutro()
⤷ Demo_ExitTried == 0
⤷ TedSaved == 0 and GngSaved == 0
You sure you want to leave without freeing my two gremlin friends?
Gus
Demo_GusExitOutro()
⤷ Demo_ExitTried == 0
⤷ TedSaved == 1 and GngSaved == 1
You've freed both my gremlin friends, so I guess there's no reason to stay. Ready to go?
Gus
Demo_GusExitOutro()
⤷ Demo_ExitTried == 0
⤷ TedSaved == 1 or GngSaved == 1
You've only freed one of my two gremlin buddies. Are you sure you want to leave?
Gus
Demo_GusExitOutro()
⤷ Demo_ExitTried == 1
Are you sure you want to leave?
Gus
Demo_GusExitOutro()
⤷ GetDialogResponse() == "Yes"
Well, all right then. Let's get out of here!
Mickey
Demo_DonaldSpeak()
⤷ Demo_DnldSpk() == 0
What in the...
Donald
Demo_DonaldSpeak()
Thinking of escape, eh?  Well, those Gremlin fellows can fix things, maybe even a magic projector!
Jamface
Demo_ExitJamfaceSpeak()
Thanks for rescuing me!
Barry
Demo_ExitBarrySpeak()
Good show!
Mickey
DemoLab_UseMirror()
Hmm... it doesn't seem to be working.  Maybe that little fellow I saw earlier can help me out?

Demo_GV_isle1.lua (WIP) Edit

Notes Edit

Characters Edit

Dialog boxes/UI text Edit

Trigger

Text

demo_gv_isle1_Enterportal()
Enter the Portal?
  • Yes
  • No

Character dialogue Edit

Speaker

Trigger

Text

Gus
demo_gv_isle1_Enterportal()
⤷ GetGlobal("Gremlinfreed") == 0
Are you going to enter the portal and just leave Cicero caged like that?
Gus
demo_gv_isle1_Enterportal()
⤷ GetGlobal("Gremlinfreed") == 1
and GetGlobal("demo_gv_isle1_donaldarm") == 0
Are you sure you want to leave that part of Donald behind when you enter the Portal?
Gus
demo_gv_isle1_Enterportal()
⤷ GetGlobal("Gremlinfreed") == 1
and GetGlobal("demo_gv_isle1_donaldarm") == 1
Are you ready to revisit Clock Cleaners? Just go through the portal.
Gus
demo_gv_isle1_Enterportal()
⤷ GetDialogResponse() == "No"
O.K. Come back when you are ready.
Community content is available under CC-BY-SA unless otherwise noted.