(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.