Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 5 Vote(s) - 2.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Escape Hell - Chapter 1 - DEMO RELEASED (Post Poned until further notice)
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#3
RE: Escape Hell (My First Custom Story) [WIP]

(05-17-2011, 02:56 PM)XxRoCkBaNdMaNxX Wrote: Hello. This is my first custom story/first custom map for ANY GAME that I have ever made. It will probably be very crappy and not very well made (due to me not being able to script.). Here's some details about the story and my progress.

You are a man named Gary Johnson. You are having personal problems, such as depression, for an unknown reason. Your wife goes on a trip to somewhere in the desert, and she dies along the way. She gives you most the things in her will, including a strange artifact she found in the desert. You keep it, and strange things start happening. Such as voices telling you to "Throw it away," or "Give it to me." You ignore them, and keep living, or trying to. You are then taking a nice stroll down an abandond road when you hear something in the bushes. You get weak from fear and fall to the floor. The world goes dark and something wacks you on the head. You wake in a cell and the story begins.


This map will, like said earlier, my first map ever made. I can't script too well and will need help a bit. My map progress so far is:

Map 1: Northern Cells: Map: 10% Scripting: 20%
Map 2: Southern Cells: Map: 0% Script: 0%
Map 3: Abandoned Cells (East Cells): Map: 0% Script: 0%
Map 4: Outer Cells: Map: 90% Script: 98%
Map 5: Water Works: Map: 10% Script: 0%

Estimated Release: (MM/DD/YYYY) 7/??/2011 or 8/??/2011

Pics will be up as soon as I can take them!

EDIT: At the moment for scripting, I'm getting an error. Saying,
FATAL ERROR: Could not load script file Cells4.hps!
main(2,1) : ERR : Expected "," or ";"
main(18,1) : ERR : Unexpected token "{"
main(29,1) : ERR : Unexpected token "{"
main(60,1) : ERR : Unexpected token "{"

I checked my hps, and those lines are correct (As far as I know.)

my hps
Spoiler below!

void onStart()
wakeUp();


void wakeUp ()
{
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

{
void beginStory(string &in asTimer)
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

{
AddUseItemCallback("", "key_torture_chamber_1", "prison_section_1", "UsedKeyOnDoor", true);
AddUseItemCallback("", "Player", "script_area_2", "ActivateMonster", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("prison_section_1", false, true);
PlaySoundAtEntity("", "unlock_door", "prison_section_1", 0, false);
RemoveItem("key_torture_chamber_1");
}

void ActivateMonster(string &in asItem, string &in asEntity)

{
SetEntityActive(servant_grunt_2", true);
}

void SetEnemyDisableTriggers("servant_grunt_1", "true");

{
AddEntityCollideCallback("servant_grunt_1", "monstergone_area", "MonsterGone", true, 1);
}

void MonsterGone(string &in asParent, string &in asChild, int alState)

{
FadeEnemyToSmoke(servant_grunt_1", "false");
}

{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", "5.5f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", "0.0f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", "0.0f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", "0.0f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", "0.0f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", "0.0f", "");
}


Spoiler below!

void OnStart()
{
wakeUp();
}

void wakeUp ()
{
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

{
void beginStory(string &in asTimer)
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

{
AddUseItemCallback("", "key_torture_chamber_1", "prison_section_1", "UsedKeyOnDoor", true);
AddUseItemCallback("", "Player", "script_area_2", "ActivateMonster", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("prison_section_1", false, true);
PlaySoundAtEntity("", "unlock_door", "prison_section_1", 0, false);
RemoveItem("key_torture_chamber_1");
}

void ActivateMonster(string &in asItem, string &in asEntity)

{
SetEntityActive(servant_grunt_2", true);
}

void SetEnemyDisableTriggers("servant_grunt_1", "true");

{
AddEntityCollideCallback("servant_grunt_1", "monstergone_area", "MonsterGone", true, 1);
}

void MonsterGone(string &in asParent, string &in asChild, int alState)

{
FadeEnemyToSmoke(servant_grunt_1", "false");
}

{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", "5.5f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", "0.0f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", "0.0f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", "0.0f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", "0.0f", "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", "0.0f", "");
}


Try that for your script.
05-17-2011, 04:24 PM
Find


Messages In This Thread
RE: Escape Hell (My First Custom Story) [WIP] - by Roenlond - 05-17-2011, 04:24 PM



Users browsing this thread: 1 Guest(s)