Page 1 of 1
ACS
Posted: Fri Dec 01, 2006 15:12
by Fatlaser
Hello everyone. I am currently working with another person on a Single player/co-op wad, and I just learned about Hudmessage. I am beginning to get the hang of it, but I wanted to know if there is a way to make it say something once you pick up an item. Thanks for any help.
Posted: Fri Dec 01, 2006 17:00
by Cutmanmike
If you're using a custom pickup, you can change the pickup message in DECORATE. See here for info:
http://www.zdoom.org/wiki/index.php?tit ... mInventory
Posted: Fri Dec 01, 2006 17:56
by Fatlaser
Allow me to be more specific. I want a Hudmessage to come up 150 tics after passing over a line. I would like it to see if I picked up a chaingun, if I did say one thing, if I didn't, say another thing.
Edit: Heres the script so far..:
Code: Select all
Script 2 (void)
{
Delay(150);
if (CheckInventory ("Chaingun"));
HudmessageBold(s:"Very smart.
\nYou picked up the chaingun that the Chaingunner dropped.";HUDMSG_TYPEON,0,3,0.0,1.0,15);
if (checkinventory("Chaingun"));
Hudmessage(s: "Idiot, go get the chaingun!
\nIt will help you out later.";HUDMSG_TYPEON,0,6,0.0,1.0,15);
}
Posted: Fri Dec 01, 2006 23:24
by jallamann
Code: Select all
Script 2 (void)
{
Delay(150);
if (CheckInventory ("Chaingun"));
HudmessageBold(s:"Very smart.
\nYou picked up the chaingun that the Chaingunner dropped.";HUDMSG_TYPEON,0,3,0.0,1.0,15);
else
Hudmessage(s:"Idiot, go get the chaingun!
\nIt will help you out later.";HUDMSG_TYPEON,0,6,0.0,1.0,15);
}
Posted: Fri Dec 01, 2006 23:31
by Fatlaser
Thanks.