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
Request Scripting help!
Bearscar Offline
Junior Member

Posts: 6
Threads: 1
Joined: Sep 2011
Reputation: 0
#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
AmnesiaIsScary :S Offline
Junior Member

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

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

Posts: 8
Threads: 3
Joined: Jan 2013
Reputation: 0
#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
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#4
RE: Scripting help!

Necro Fucking Bump.
01-31-2015, 04:29 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#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
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#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
Kreekakon Offline
Pick a god and pray!

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

Bye bye ye old crypt.

-Locked

[Image: Tv0YgQb.gif]
Image by BandyGrass
01-31-2015, 06:09 PM
Find




Users browsing this thread: 1 Guest(s)