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
Causing sanity damage to yourself
RaptorRed Offline
Junior Member

Posts: 6
Threads: 1
Joined: Sep 2010
Reputation: 0
#3
RE: Causing sanity damage to yourself

Well, What am I doing wrong, I get a fatal error claiming it couldn't load script file "yy.hps" main (31, 35) : ERR because it expected data type

I have no idea what it is referring to when it says Data type

This is my code:

////////////////////////////
// Run first time starting map
void OnStart()
{
    //Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!
    if(ScriptDebugOn())
    {
        GiveItemFromFile("lantern", "lantern.ent");

        for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
    }

}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

////////////////////////////
//Function as you specified in ConnectionStateChangeCallback
Void PullLever(string &in lever1, in -1)
{
    //If the lever is pulled max up or down then give sanity damage
    if(alState == 1 or alState == -1)
    {
        GiveSanityDamage(30, true);  //10 = amount of damage, true = effects are used (vision distorts and such)
    }
}
09-17-2010, 07:08 AM
Find


Messages In This Thread
Causing sanity damage to yourself - by RaptorRed - 09-17-2010, 06:24 AM
RE: Causing sanity damage to yourself - by jens - 09-17-2010, 06:54 AM
RE: Causing sanity damage to yourself - by RaptorRed - 09-17-2010, 07:08 AM
RE: Causing sanity damage to yourself - by jens - 09-17-2010, 08:28 AM
RE: Causing sanity damage to yourself - by jens - 09-20-2010, 07:41 AM
RE: Causing sanity damage to yourself - by jens - 09-21-2010, 06:19 AM



Users browsing this thread: 1 Guest(s)