ACS

Post a reply

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angel: :angry: :beer: :bfg: :chaingun: :cheers: :blergh:
View more smilies

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1.5 MiB.

Expand view Topic review: ACS

by Fatlaser » Fri Dec 01, 2006 23:31

Thanks.

by jallamann » Fri Dec 01, 2006 23:24

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);
   }

by Fatlaser » Fri Dec 01, 2006 17:56

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);
	}

by Cutmanmike » Fri Dec 01, 2006 17:00

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

ACS

by Fatlaser » Fri Dec 01, 2006 15:12

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.

Top