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
Activate monster in other map when picking up item from a different map?
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#1
Activate monster in other map when picking up item from a different map?

So my title might not make sense (lol) but ill explain here.

What I want to do is make a monster active when the player picks up a key. I know how to do that already, however, I want it to work when the player picks up the key from lets say Map 1. Then, Map 2's monster gets activated due to the player picking up the key from Map 1....is that possible? please help and thanks
09-14-2011, 03:27 AM
Find
GraphicsKid Offline
Senior Member

Posts: 258
Threads: 34
Joined: Dec 2010
Reputation: 3
#2
RE: Activate monster in other map when picking up item from a different map?

Global variables are your friend.
SetGlobalVarInt(string& asName, int alVal);

And let's not forget
GetGlobalVarInt(string& asName);
09-14-2011, 03:36 AM
Find
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#3
RE: Activate monster in other map when picking up item from a different map?

(09-14-2011, 03:36 AM)GraphicsKid Wrote: Global variables are your friend.
SetGlobalVarInt(string& asName, int alVal);

And let's not forget
GetGlobalVarInt(string& asName);
Ah, as I was roaming through the original Amnesia hps files, I was thinking it was that function.

However, do you think you can explain what I have to do with those script functions? I would love to know how to use them.

EDIT: Wait! Never mind, I didn't really need that script, I needed this:

void name(string &in asParent , string &in asChild , int alState)
{
if (HasItem("name")==true)
{
function
}
}

that should work hopefully.
(This post was last modified: 09-14-2011, 04:21 AM by SonOfLiberty796.)
09-14-2011, 03:39 AM
Find
aidan499 Offline
Junior Member

Posts: 33
Threads: 14
Joined: May 2011
Reputation: 1
#4
RE: Activate monster in other map when picking up item from a different map?

I dont think it is possible but i am no good a scripting so i might be possible.
09-14-2011, 07:43 AM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#5
RE: Activate monster in other map when picking up item from a different map?

(09-14-2011, 03:39 AM)Xvideogamer720X Wrote:
(09-14-2011, 03:36 AM)GraphicsKid Wrote: Global variables are your friend.
SetGlobalVarInt(string& asName, int alVal);

And let's not forget
GetGlobalVarInt(string& asName);
Ah, as I was roaming through the original Amnesia hps files, I was thinking it was that function.

However, do you think you can explain what I have to do with those script functions? I would love to know how to use them.

EDIT: Wait! Never mind, I didn't really need that script, I needed this:

void name(string &in asParent , string &in asChild , int alState)
{
if (HasItem("name")==true)
{
function
}
}

that should work hopefully.
Yes I believe that will work...

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
09-15-2011, 02:26 PM
Find




Users browsing this thread: 3 Guest(s)