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

Hud message question

Question

Im trying to make the screen pop up with 3 messages, one after another, How would I do that? Im a total ACS Newbie, this is what I did

 

#include "zcommon.acs"

script 1 ENTER
{
    setfont("BIGFONT");
    HUDMessage(s:"Greeting's Players, welcome to my special lair of hell!"; HUDMSG_FADEINOUT, 0, 3, 0.5, 0.25, 0, 4);
    HUDMessage(s:"If you are scared, hit Esc, Q, then hit Enter twice"; HUDMSG_FADEINOUT, 0, 3, 0.5, 0.25, 0, 4);
    HUDMessage(s:"If you can brave the waves of Hellspawn and Traps, Come forth to the door and press the beloved Use Key!"; HUDMSG_FADEOUT, 0, 3, 0.5, 0.25, 0, 4);
}

 

Port: Zandronum

Map format: UDMF

IWAD: Doom 2

If that info helps ^

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

Put a Delay(##); in between the HudMessages. The delay is in tics, 35 per second, so Delay(70); would wait 2 seconds before going to the next line. Experiment to find the right amount of time to delay.

Share this post


Link to post
  • 0

 

Coordinates and times must be floats not integers.

Also you need 3 times  fixed holdTime, fixed inTime, fixed outTime

https://zdoom.org/wiki/HudMessage

#include "zcommon.acs"
script 1 ENTER
{
    setfont("BIGFONT");
    HUDMessage(s:"Greeting's Players, welcome to my special lair of hell!";
    HUDMSG_FADEINOUT, 0, 3, 0.5, 0.25, 0.0, 4.0, 4.0);
    HUDMessage(s:"If you are scared, hit Esc, Q, then hit Enter twice";
    HUDMSG_FADEINOUT, 0, 3, 0.5, 0.25, 0.0, 4.0, 4.0);
    HUDMessage(s:"If you can brave the waves of Hellspawn and Traps, Come forth to the door and press the beloved Use Key!";
    HUDMSG_FADEOUT, 0, 3, 0.5, 0.25, 0.0, 4.0, 4.0);
}

While that displays the text, the timing is way off. In GZDoom it is even worse.

 

edit:

This seems to work

#include "zcommon.acs"

//  void HudMessage (text; HUDMSG_FADEINOUT, int id, int color, fixed x, fixed y, fixed holdTime, fixed inTime, fixed outTime [, fixed alpha]);
//  80:ACS_Execute (script, map, s_arg1, s_arg2, s_arg3)

script 200 open
{
    ACS_Execute ( 1, 0, 0, 0, 0);
    delay ( 35*10);
    ACS_Execute ( 2, 0, 0, 0, 0);
    delay ( 35*10);
    ACS_Execute ( 3, 0, 0, 0, 0);
}
script 1 (void)
{
    setfont ( "BIGFONT");
    HUDMessage ( s:"Greeting's Players, welcome to my special lair of hell!";
    HUDMSG_FADEINOUT, 1, 3, 0.5, 0.5, 2.0, 4.0, 3.0);
}

script 2 (void)
{
    setfont ( "BIGFONT");
    HUDMessage ( s:"If you are scared, hit Esc, Q, then hit Enter twice";
    HUDMSG_FADEINOUT, 1, 3, 0.5, 0.5, 2.0, 4.0, 3.0);
}

script 3 (void)
{
    setfont ( "BIGFONT");
    HUDMessage ( s:"If you can brave the waves of Hellspawn and Traps,\n\n
Come forth to the door and press the beloved Use Key!";
    HUDMSG_FADEINOUT, 1, 3, 0.5, 0.5, 4.0, 4.0, 3.0);
}

You have to tweek the timing to suit.

 

 

Edited by Kappes Buur

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
×