Frictional Games Forum (read-only)
[SCRIPT] How to create a message 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: [SCRIPT] How to create a message script? (/thread-24952.html)

Pages: 1 2


How to create a message script? - MaksoPL - 03-30-2014

Hi. I need create script: when i go to the script area, appears a message on a screen. How it's made?


RE: How to create a message script? - Mudbill - 03-30-2014

It's very simple, and if you research how the scripts work, you will find out pretty quickly. Try some of the tutorials on the wiki, and use the Engine Scripts as reference for what to make.

We can help you, but it's always better if you learn how to solve it as well.

Here's a hint though: Look into AddEntityCollideCallback and SetMessage.


RE: How to create a message script? - MaksoPL - 03-30-2014

I do not understand. I am a beginner with creating scripts


RE: How to create a message script? - 7heDubz - 03-30-2014

https://www.youtube.com/playlist?list=PLD326789BC99530C8

Some Tutorials that holds scripting help.

Mudbill here has alot of really good ones too.


RE: How to create a message script? - MaksoPL - 03-30-2014

Nothing of create script of message on a screen.


RE: How to create a message script? - 7heDubz - 03-30-2014

SetMessage

and

AddEntityCollideCallback

are what you will be using.

You won't figure everything out in 5 minutes look about a lil bit. Watch one or two of the videos.


RE: How to create a message script? - MaksoPL - 03-30-2014

I nothing know of scripts. And I can't create this script (AddEntityCollideCallback(???);


RE: How to create a message script? - Slanderous - 03-30-2014

Obejrzyj ten filmik a wszystko stanie się jasne.






RE: How to create a message script? - MaksoPL - 03-30-2014

(03-30-2014, 07:51 PM)Lazzer Wrote: Obejrzyj ten filmik a wszystko stanie się jasne.




T

(03-30-2014, 07:51 PM)Lazzer Wrote: Obejrzyj ten filmik a wszystko stanie się jasne.




To jest o tworzeniu po podniesieniu przedmiotu a nie po wejsciu w area skryptu....


RE: How to create a message script? - Slanderous - 03-30-2014

Ale równie dobrze możesz ten skrypt z wiadomością wpleść w AddEntityCollideCallback...


void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Message1", true, 1);
}

void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "nazwa wiadomosci w pliku lang", 10);
}

"Messages" w skrypcie to jest kategoria z extra english, w tym poradniku masz opisane jak dodać tą kategorię do extra english, a "10" na końcu to czas jaki ma byc wyswietlona wiadomość.