Frictional Games Forum (read-only)
What's wrong with script? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: What's wrong with script? (/thread-10752.html)



What's wrong with script? - JoeBradleyUK - 10-14-2011

Script:
Code:
void Onstart()
{AddEntityCollideCallback("Player", "ScareOne", "ScareOne", true, 1);}
void ScareOne(string &in asParent, string &in asChild, int alState){SetLampLit("ScareOneLight", true, true);SetLampLit("ScareOneLightTwo", true, true);SetEntityActive("ScareOneMonster", true);ShowEnemyPlayerPosition("ScareOneMonster");PlaySoundAtEntity("", "react_scare3.ogg", "Player", 10.0f, true);PlayMusic("LevelOneMusic", true, 10.0f, 2.0f, 2.0f, true);}
void OnEnter(){}void OnLeave(){}
Custom Story Settings:
Lang file:
Code:
                        That's it then. You've commited murder and you've been sent to prison for life. You've become deranged, and insane for the time you've been in there.[br]You want to find a way out anyway you can. Even if it includes bloodshed.[br]You need to get out.


What's wrong with this, when I walk into the area stated, it doesn't activate


RE: What's wrong with this? - Elven - 10-14-2011

And what do you want to archive? Explain that too please Smile.

And your design is horrible XD



RE: What's wrong with this? - JoeBradleyUK - 10-14-2011

(10-14-2011, 08:57 PM)Elven Wrote: And what do you want to archive? Explain that too please Smile.

And your design is horrible XD
I don't understand, what do you mean?


RE: What's wrong with this? - Juby - 10-14-2011

(10-14-2011, 09:01 PM)JoeBradleyUK Wrote:
(10-14-2011, 08:57 PM)Elven Wrote: And what do you want to archive? Explain that too please Smile.

And your design is horrible XD
I don't understand, what do you mean?
he means what specifically are you trying to do that isn't working?


RE: What's wrong with this? - JoeBradleyUK - 10-14-2011

(10-14-2011, 09:03 PM)Juby Wrote:
(10-14-2011, 09:01 PM)JoeBradleyUK Wrote:
(10-14-2011, 08:57 PM)Elven Wrote: And what do you want to archive? Explain that too please Smile.

And your design is horrible XD
I don't understand, what do you mean?
he means what specifically are you trying to do that isn't working?
I walk into area "ScareOne" and a monster comes at me charging and two lamps turn on before me, that's it.




RE: What's wrong with script? - Your Computer - 10-14-2011

Onstart should be OnStart.


RE: What's wrong with script? - JoeBradleyUK - 10-14-2011

(10-14-2011, 09:12 PM)Your Computer Wrote: Onstart should be OnStart.
Thankyou, I can make really simple mistakes sometimes......A lot.


RE: What's wrong with script? - Elven - 10-14-2011

It happens to us all Smile