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

Thread Closed 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Scripting help!
Author Message
Bearscar Offline
Junior Member

Posts: 6
Joined: Sep 2011
Reputation: 0
Post: #1
Scripting help!

I am a very noobie guy who is trying to make a amnesia custom story and I only know a few things and I have tried to get the monster to be active when I etc. open a door but with no sucsess. Can anyone help me with this? Some scripting help. Ps: my skype is bjosmep Wink
09-15-2011 07:46 PM
Find all posts by this user
AmnesiaIsScary :S Offline
Junior Member

Posts: 22
Joined: Sep 2011
Reputation: 1
Post: #2
RE: Scripting help!

I added you on skype ... im the one with the weird picture ...
09-15-2011 08:57 PM
Find all posts by this user
TheSnakesneaker Offline
Junior Member

Posts: 8
Joined: Jan 2013
Reputation: 0
Post: #3
RE: Scripting help!

Hello! I may be able to help you! Assuming that you've not done the basic scripting start, ill write exatly how you'll do :) Just make sure to remove the Spaces i've done and replace them using the "tab" button.

So, if you wonder what things mean, look here:
"KeyOne" is the Entity that should trigger the monster activation, if it is a door, it could be something like "mansion_1".
"MonsterActivation" is the callback, it'll be explained underneath the OnStart column.
True is if you want the event to remove it self after it has happend. If false, you can open the door several times and trigger the monster.

I use a Key as an entity (named KeyOne in the level editor) so this should be easy to follow :)

void OnStart()
SetEntityPlayerInteractCallback("KeyOne", "MonsterActivation", true);

void MonsterActivation(string &in item)
SetEntityActive("enemy_grunt_1", true);

So, this means that the monster (in my case named enemy_grunt_1) must be inactivated in the level editor from the beginning. Like this:
[Image: 21njmg9.jpg]

On this picture, i've done the script in Geany, and added some explanation on a few things:
[Image: vxlmgw.png]

Tell me if it's not working and i'll help you as well as i can!

Add me on Skype if you wish: ZekeSnakey
01-31-2015 04:14 PM
Find all posts by this user
Slanderous Offline
Posting Freak

Posts: 1,607
Joined: Dec 2012
Reputation: 63
Post: #4
RE: Scripting help!

Necro Fucking Bump.
01-31-2015 04:29 PM
Find all posts by this user
DnALANGE Offline

Posts: 1,550
Joined: Jan 2012
Post: #5
RE: Scripting help!

O M G!
What you said Lazzer. LOOOL!
That bump hahhaha Wink
CLosed within minutes Tongue By Tragey who else Tongue
01-31-2015 04:50 PM
Find all posts by this user
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Joined: Dec 2012
Reputation: 119
Post: #6
RE: Scripting help!

God damn, a four year necro post!

"Veni, vidi, vici."
"I came, I saw, I conquered."
01-31-2015 05:18 PM
Find all posts by this user
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Joined: Mar 2012
Reputation: 124
Post: #7
RE: Scripting help!

Bye bye ye old crypt.


[Image: Tv0YgQb.gif]
Image by BandyGrass
01-31-2015 06:09 PM
Find all posts by this user
Thread Closed 

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