Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yet another noob to the ranks
Author Message
Nitt Offline
Junior Member

Posts: 6
Joined: Dec 2010
Reputation: 0
Post: #1
Yet another noob to the ranks

I have a very basic problem (I hope), that's probably due to my ignorance in scripting or something.

I've created all of the files that, from what I've researched, i think I need, in the Custom Stories folder:

|Story
---|maps
------Story.hps
------Story.map
---custom_story_settings.cfg
---extra_english.lang
---story.jpg (probably unimportant)

cfg reads:

<Main
    Name="Story"
    Author="Nitt"
    ImgFile="Story.jpg"

    StartMap="Story.map"
    StartPos="PlayerStartArea_1"
/>

hps reads:

////////////////////////////
// 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()
{

}
(directly copied, yes)

I don't even think I need the "extra_english.lang", so far all I have is a small bare room (floor, walls, ceiling) with a floor lamp and a starting position. I just wanted to test it out to make sure I was doing it right before I got crazy with it. Apparently I wasn't.

Any help would be greatly appreciated. Big Grin
(This post was last modified: 12-03-2010 02:59 AM by Nitt.)
12-03-2010 02:56 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Yet another noob to the ranks - Nitt - 12-03-2010 02:56 AM
RE: Yet another noob to the ranks - Nitt - 12-03-2010, 04:25 AM
RE: Yet another noob to the ranks - Dark88 - 12-03-2010, 05:23 AM
RE: Yet another noob to the ranks - Dark88 - 12-03-2010, 07:12 AM
RE: Yet another noob to the ranks - Nitt - 12-03-2010, 08:32 AM
RE: Yet another noob to the ranks - Nitt - 12-03-2010, 05:12 PM
RE: Yet another noob to the ranks - Nitt - 12-04-2010, 07:00 AM
RE: Yet another noob to the ranks - Nitt - 12-04-2010, 05:43 PM



User(s) browsing this thread: 1 Guest(s)