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

Privacy Policy


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Hardest Script Ever?
Author Message
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #1
The Hardest Script Ever?
I was wondering if anyone could try to make up the hardest Amnesia custom story-related scenario to make with the editor and the scripting. I ask because I wanted to make a custom story that may or may not have it. I also want to try and see if I could remake it. I would like to get as much feedback as I can. For epicness. Tongue

I don't really know if I'm saying this right, but I'll make an example.

The player has to touch certain tiles on the floor to get to the other side where then next room is, and if he doesn't hit the right tile at the right time, he dies. Big Grin

07-04-2011 09:22 PM
Find all posts by this user Quote this message in a reply
Roenlond Offline
Senior Member

Posts: 331
Joined: Apr 2011
Reputation: 0
Post: #2
RE: The Hardest Script Ever?
I thought the final boss of abduction was pretty sweet. Also, tetris: the dark descent. damn.
07-04-2011 09:35 PM
Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,175
Joined: Mar 2011
Reputation: 56
Post: #3
RE: The Hardest Script Ever?
Yeah it's possible. If you want the player to walk on a certain tile at a certain time, use timers & area collide callbacks. Use GetTimerTimeLeft to set the window of time that the tile is safe. If you actually want him/her to have to interact with it, you'll need to change each area's properties. Under the Area tab, add TileCollide as the PlayerInteractCallback, and change the function to TileCollide(string &in entity). This script uses 10 tile areas with timers of 5 seconds each. You can change the timer values. The window of opportunity is 1 second in each direction, so I make the timers use 6 seconds instead.


AddEntityCollideCallback("Player", "tile_*", "TileCollide", true, 1); //put this in OnStart()

void TileCollide(string &in parent, string &in child, int state)
{
AddTimer("tile_1", 6, "TileTimers");
for(int a=1;a<=10;a++) if(child == "tile_"+a) if(GetTimerTimeLeft(child) < 2 && GetTimerTimeLeft(child) != 0) { //Do cool stuff here; if(a < 10) AddTimer("tile_"+(a+1), 6, "TileTimers"); if(a == 10) { //Do cool stuff here, what will happen when the player touches all tiles successfully!; }
}

void TileTimers(string &in asTimer)
{
//Do cool stuff here, what will happen when the player fails to press or walk on the tile at the right time
}



Not entirely sure if the bolded text will work. Don't add in that part until your map is open in Amnesia. If it doesn't work you'll crash, and you and I and everyone will be sadface panda Sad

(This post was last modified: 07-05-2011 12:21 AM by palistov.)
07-05-2011 12:20 AM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #4
RE: The Hardest Script Ever?
@palistov;

Thanks a lot for spoiling that. That's not what this thread is about. It's about ideas involving epic scripting and building that I might use in my upcoming custom story I may make. But thanks anyhow for explaining that, not like I was going to use it. Tongue

07-05-2011 01:46 AM
Find all posts by this user Quote this message in a reply
Ctrl Offline
Junior Member

Posts: 9
Joined: Jul 2011
Reputation: 0
Post: #5
RE: The Hardest Script Ever?
what script does HPL/Amnesia use?

tetris: the dark descent....lol
07-05-2011 10:55 PM
Find all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,091
Joined: Mar 2009
Reputation: 66
Post: #6
RE: The Hardest Script Ever?
(07-05-2011 10:55 PM)Ctrl Wrote:  what script does HPL/Amnesia use?

tetris: the dark descent....lol

AngelScript

Russ, where are you, you lost the bet.

07-05-2011 11:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,175
Joined: Mar 2011
Reputation: 56
Post: #7
RE: The Hardest Script Ever?
Oh. Well now that you know, try and use it haha. Or I might O_O

07-05-2011 11:52 PM
Find all posts by this user Quote this message in a reply
Hardarm Offline
Senior Member

Posts: 701
Joined: Apr 2011
Reputation: 34
Post: #8
RE: The Hardest Script Ever?
Spoiler below!
Escaping from the guardian after the cell escape on the corridors.
All your base are belong to us


(This post was last modified: 07-06-2011 12:01 AM by Hardarm.)
07-06-2011 12:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #9
RE: The Hardest Script Ever?
(07-06-2011 12:00 AM)Hardarm Wrote:  
Spoiler below!
Escaping from the guardian after the cell escape on the corridors.
All your base are belong to us


Maybe you should post something new? Wink

(This post was last modified: 07-06-2011 01:00 AM by Kyle.)
07-06-2011 01:00 AM
Find all posts by this user Quote this message in a reply
Post Reply 




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