ACS

Anything that doesn't fit into other forums.
Fatlaser
Posts: 11
Joined: Tue Oct 10, 2006 23:42

ACS

Post 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.
User avatar
Cutmanmike
Posts: 482
Joined: Sat Sep 03, 2005 23:34

Post 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
Fatlaser
Posts: 11
Joined: Tue Oct 10, 2006 23:42

Post 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);
	}
User avatar
jallamann
Posts: 66
Joined: Wed Nov 23, 2005 10:01

Post 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);
   }
Fatlaser
Posts: 11
Joined: Tue Oct 10, 2006 23:42

Post by Fatlaser »

Thanks.
Post Reply

Return to “Off-Topic”