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
Script Help How to create a message script?
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#1
How to create a message script?

Hi. I need create script: when i go to the script area, appears a message on a screen. How it's made?
03-30-2014, 07:18 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: How to create a message script?

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.

03-30-2014, 07:28 PM
Find
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#3
RE: How to create a message script?

I do not understand. I am a beginner with creating scripts
03-30-2014, 07:34 PM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#4
RE: How to create a message script?

https://www.youtube.com/playlist?list=PL...9BC99530C8

Some Tutorials that holds scripting help.

Mudbill here has alot of really good ones too.

03-30-2014, 07:36 PM
Find
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#5
RE: How to create a message script?

Nothing of create script of message on a screen.
03-30-2014, 07:43 PM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#6
RE: How to create a message script?

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.

(This post was last modified: 03-30-2014, 07:46 PM by 7heDubz.)
03-30-2014, 07:45 PM
Find
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#7
RE: How to create a message script?

I nothing know of scripts. And I can't create this script (AddEntityCollideCallback(???);
03-30-2014, 07:50 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#8
RE: How to create a message script?

Obejrzyj ten filmik a wszystko stanie się jasne.



03-30-2014, 07:51 PM
Find
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#9
RE: How to create a message script?

(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....
(This post was last modified: 03-30-2014, 07:52 PM by MaksoPL.)
03-30-2014, 07:52 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#10
RE: How to create a message script?

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ść.
(This post was last modified: 03-30-2014, 07:56 PM by Slanderous.)
03-30-2014, 07:56 PM
Find




Users browsing this thread: 1 Guest(s)