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
Scripting
darkdamp Offline
Junior Member

Posts: 7
Threads: 4
Joined: Sep 2010
Reputation: 0
#1
Scripting

Hi, i have a problem i have a map called awesomeness.map
I took a script from the official maps that was .hps and edited it its not called awesomeness.hps
I made this easy script on it

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

}


But! i have no lantern when i start (awesomness.map and .hps and .map_cache are on the same folder /custom_stories/Test Maps/maps

Please i don´t know what to do.
09-19-2010, 05:35 PM
Find


Messages In This Thread
Scripting - by darkdamp - 09-19-2010, 05:35 PM
RE: Scripting - by nickTs - 09-19-2010, 05:51 PM
RE: Scripting - by darkdamp - 09-19-2010, 05:54 PM
RE: Scripting - by Akasu - 09-19-2010, 05:56 PM
RE: Scripting - by darkdamp - 09-19-2010, 06:10 PM
RE: Scripting - by Akasu - 09-19-2010, 06:26 PM



Users browsing this thread: 1 Guest(s)