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
Few questions
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#9
RE: Few questions

(04-27-2013, 04:39 PM)Essen Wrote: 1. How to make scripts work again after death? For example, if monsters show up in certain area and they kill you, in most of the custom stories I play'd happened the thing that when they killed you and you respawned, they no more appeared in that area. Is it somehow possible to make them appear even after you die?

2. How to make credits show up when you die? By this I basically mean that when you're in certain area and monsters appears and kills you, credits start and the Custom Story ends. Is that possible?

3. How to add custom entities? Now I would probably need this one mostly, how do you add custom entities to your Custom Story? I know something about creating new folder called "entities" in your Custom Story folder, but how to make them work and all that?

4. Is it possible to have custom lantern models like flashlight in Custom Story? Do you need to do Full Conversion, or it can somehow be done even without it? I tried to search for this one, no luck.

5. Adding massage to locked door doesn't work for me. I have went through some threads on this forum and tried few of their scripts(of course I edited door name and that stuff), however, no luck of making it work, game started, however, massage didn't appear. Could someone please send me a script of it? (Main command + void, without these "as strings", "float" and such things, because I honestly have no idea what it means....)


Sorry if some of these questions were already questioned and answered on forums or so. Thanks a lot for any help.

Everything is quite easy:

1:

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptMonster", "Spawnbitch", false, 1);
}

void Spawnbitch (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Bitch", true);
}

2:

void OnStart()
{
AddEntityCollideCallback("Player", "CheckArea", "Chepoint", true, 1);
}

void Chepoint (string &in asParent, string &in asChild, int alState)
{
CheckPoint (“FirstCheckpoint”, “PlayerStartArea_1”, “Happening”, “DeathCategory”, “Deathtext”);
}

void Happening(string &in asName, int alCount)
{
StartCredits("music.ogg", false, "TextCategory", "TextEntry", 500); ///500 is the length of the credits, dunno how to apply them though
}

3:

Simply open model Editor, make your entity out of something, and save it like:

entities/Myentities/Custimentity

Once there, put the model and texture used, and save the .ent.

4:

It's not possible to do that without overwriting the original file, so if you want to do that, make a Full Conversion (some people are just mind-challenged and don't know how to backup things)

5:

To make a message, simply:

void OnStart()
{
SetMessage("Messages", "Message_1", 2); /// it will set the message two seconds
}

Take note: You need a .lang file for anything related to language (Messages, hints, etc.)

Messages is the category, and the Message_1 the entry. Put them like this:

<CATEGORY Name="Messages">
<Entry Name="Message_1">I'm a message and I worked</Entry>
</CATEGORY>

I hope that solved all of your problems Wink

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
04-28-2013, 11:36 AM
Find


Messages In This Thread
Few questions - by Essen - 04-27-2013, 04:39 PM
RE: Few questions - by OriginalUsername - 04-27-2013, 06:15 PM
RE: Few questions - by FlawlessHappiness - 04-27-2013, 10:51 PM
RE: Few questions - by Marshall2906 - 04-28-2013, 01:40 AM
RE: Few questions - by PutraenusAlivius - 04-28-2013, 02:34 AM
RE: Few questions - by Essen - 04-28-2013, 03:18 AM
RE: Few questions - by PutraenusAlivius - 04-28-2013, 03:29 AM
RE: Few questions - by Tomato Cat - 04-28-2013, 05:36 AM
RE: Few questions - by The chaser - 04-28-2013, 11:36 AM
RE: Few questions - by Essen - 04-28-2013, 01:27 PM
RE: Few questions - by Essen - 04-29-2013, 03:06 PM
RE: Few questions - by FlawlessHappiness - 04-29-2013, 04:56 PM
RE: Few questions - by The chaser - 04-29-2013, 05:04 PM
RE: Few questions - by Essen - 04-29-2013, 05:56 PM
RE: Few questions - by The chaser - 04-29-2013, 07:52 PM
RE: Few questions - by FlawlessHappiness - 04-29-2013, 09:17 PM
RE: Few questions - by Essen - 04-30-2013, 06:09 AM
RE: Few questions - by PutraenusAlivius - 04-30-2013, 06:57 AM
RE: Few questions - by Essen - 05-01-2013, 08:16 AM
RE: Few questions - by PutraenusAlivius - 05-01-2013, 11:34 AM
RE: Few questions - by FlawlessHappiness - 05-01-2013, 12:09 PM
RE: Few questions - by FlawlessHappiness - 04-30-2013, 02:51 PM
RE: Few questions - by The chaser - 05-01-2013, 11:29 AM
RE: Few questions - by Essen - 05-01-2013, 12:41 PM
RE: Few questions - by The chaser - 05-01-2013, 02:01 PM
RE: Few questions - by FlawlessHappiness - 05-01-2013, 02:16 PM
RE: Few questions - by Essen - 05-01-2013, 04:23 PM
RE: Few questions - by The chaser - 05-01-2013, 09:48 PM
RE: Few questions - by Essen - 05-02-2013, 04:51 PM
RE: Few questions - by The chaser - 05-03-2013, 01:22 PM
RE: Few questions - by Essen - 05-04-2013, 01:46 AM



Users browsing this thread: 1 Guest(s)