Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Venk

How to add in game text?

Recommended Posts

Hi i am working on a megawad and i would like to have points where the main character speaks, or messages appear on screen at certain points in maps. How do i achieve this?

Share this post


Link to post

Many ports, not just ZDoom can do that.

In Doomsday, one can write an XG def to play a sound or display a hud messages.

http://www.dengine.net/dew/index.php?title=XG

Line Type {
ID= 6000;
Count = 1;
Class = sound
Flags = player_use_a
Flags2 = when_act | any
Time = 0.75;
Act Message = "Blahblah";
Ip0 = "lref_self";
Ip2 = "SOUNDNAME";
Ip3 = "0";
}

Then simply stick linetype 6000 at the appropriate place on your map, as you would a Vanilla Doom linetype.
--------------------
For 2D animations (i.e one wishes to do something more advanced than a hud message or simple sound, one can use the Infine scripting system.

http://www.dengine.net/dew/index.php?title=Infine

Try entering 'startinf imp' into the Doomsday console while playing Doom, to see an example of what Infine can do (it's the inbuilt example).

Then write an XG line like the below and place it in your map.

Line Type {
ID= 6000;
Count = 1;
Class= command
Flags = player_use_a
Flags2 = when_act | any
Time = 0.75;
Ip0 = "lref_self";
Sp0 = "startinf NAMEHERE";
}

Share this post


Link to post

Many ports, not just ZDoom can do that.

In Doomsday, one can use the infine scripting system for instance.

Share this post


Link to post
Venk said:

..... i would like to have points where the main character speaks, or messages appear on screen at certain points in maps. How do i achieve this?


Are you thinking to just have text pop up whenever a certain action is done or
are you more interested to have a conversation a la Strife?

Share this post


Link to post

Well, yes. It does pop up, either fast or slow.

Whatever port you want to use, please, do not use print because on
higher resolution monitors to text will be so small as to be illegible.

Share this post


Link to post
Kappes Buur said:

Whatever port you want to use, please, do not use print because on
higher resolution monitors to text will be so small as to be illegible.

Don't you have this option set?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×