The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Yet another noob to the ranks
Nitt Offline
Junior Member

Posts: 6
Threads: 1
Joined: Dec 2010
Reputation: 0
#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


Messages In This Thread
Yet another noob to the ranks - by Nitt - 12-03-2010, 02:56 AM
RE: Yet another noob to the ranks - by Chilton - 12-03-2010, 04:10 AM
RE: Yet another noob to the ranks - by Nitt - 12-03-2010, 04:25 AM
RE: Yet another noob to the ranks - by Dark88 - 12-03-2010, 05:23 AM
RE: Yet another noob to the ranks - by Chilton - 12-03-2010, 06:27 AM
RE: Yet another noob to the ranks - by Dark88 - 12-03-2010, 07:12 AM
RE: Yet another noob to the ranks - by Chilton - 12-03-2010, 07:20 AM
RE: Yet another noob to the ranks - by Som1Lse - 12-03-2010, 08:23 AM
RE: Yet another noob to the ranks - by Nitt - 12-03-2010, 08:32 AM
RE: Yet another noob to the ranks - by Som1Lse - 12-03-2010, 12:13 PM
RE: Yet another noob to the ranks - by Nitt - 12-03-2010, 05:12 PM
RE: Yet another noob to the ranks - by Som1Lse - 12-03-2010, 07:48 PM
RE: Yet another noob to the ranks - by Nitt - 12-04-2010, 07:00 AM
RE: Yet another noob to the ranks - by Akumasama - 12-04-2010, 09:44 AM
RE: Yet another noob to the ranks - by Nitt - 12-04-2010, 05:43 PM
RE: Yet another noob to the ranks - by Som1Lse - 12-04-2010, 05:50 PM
RE: Yet another noob to the ranks - by Akumasama - 12-05-2010, 11:27 AM
RE: Yet another noob to the ranks - by Som1Lse - 12-05-2010, 01:12 PM
RE: Yet another noob to the ranks - by Akumasama - 12-05-2010, 07:13 PM



Users browsing this thread: 2 Guest(s)