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
Keep level changes when coming back? [SOLVED]
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
Question  Keep level changes when coming back? [SOLVED]

Yea so i have been searching and searching without finding anything about this.

My map has to be as realistic as it can be, and some doors ARE going to get smashed in different levels, but when i go back to the levels, the triggers of the monsters are gone, but the door is back! There must be a way to make it save the changes before leaving to a new level... but how?

Trying is the first step to success.
(This post was last modified: 04-20-2012, 04:15 PM by FlawlessHappiness.)
04-20-2012, 03:49 PM
Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#2
RE: Keep level changes when coming back?

(04-20-2012, 03:49 PM)beecake Wrote: Yea so i have been searching and searching without finding anything about this.

My map has to be as realistic as it can be, and some doors ARE going to get smashed in different levels, but when i go back to the levels, the triggers of the monsters are gone, but the door is back! There must be a way to make it save the changes before leaving to a new level... but how?
The first thing that comes to my mind is something called "global variables" (the xGlobalVarInt() functions).
I think that Amnesia didn't keep track of opened doors in the original games. They were all closed when you reentered a level. However, for smashed doors, you could need to set a global variable to 1, and have the map automatically smash the door (preferably silently) every time the player enters the map and the global var is set. However, I'm a noob, so there might be other ways of handling this that I don't know about.


Noob scripting tutorial: From Noob to Pro

04-20-2012, 04:00 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#3
RE: Keep level changes when coming back?

Or the easier way, by checking the FullGameSave in the entity tab on the doors and entities you want to be remembered

04-20-2012, 04:06 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Keep level changes when coming back?

Heyyyy i just learned something Big Grin Both of you guys are awesome!!!

Trying is the first step to success.
04-20-2012, 04:14 PM
Find




Users browsing this thread: 1 Guest(s)