Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making cross-map puzzles
burge4150 Offline
Member

Posts: 56
Threads: 15
Joined: Feb 2014
Reputation: 0
#1
Making cross-map puzzles

For instance - the elevator in Amnesia TDD needing work done in the Machine Room first.

How would I script it so that completing a puzzle in one area opens a door in another area?

No need to script it all out for me, I can do that. Just need to know the functions I should be looking for, or how to declare a global variable across the whole game.

In the meantime, I'll dig into TDD's scripts and see if I can figure it out myself.

Ok, looks like it's either
1.)SetGlobalVarInt to 1, which can be checked from any map or
2.)Checking to see if a Quest is completed to see if the elevator works?

I guess both might work, any recommendations?

Last post from me:

I see a global.hps file in the game's maps folder, but it does not declare the variable used for the elevator ElevatorMachineRunning.

Do Global variables need to be declared anywhere or is introducing them in a map's .hps file good enough to call them back anywhere later on?
(This post was last modified: 08-05-2014, 05:08 AM by burge4150.)
08-05-2014, 05:02 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Making cross-map puzzles

Use global variables. Simply tick it in a map's hps file, then check for it in another. It sounds like you know how to work it. They are saved across maps and can be called from anywhere.

08-05-2014, 05:12 AM
Find




Users browsing this thread: 1 Guest(s)