Consumable that puts a message in the chat

CheddarMan

Skeletron
Hey everyone, this is my first post on here so I could be doing something wrong.

Anyways, I would like to make a consumable that says "hello" or another word in chat. I already got the consumable part down, but I don't know how to go about sending a message in the chat. Can I do this without making an NPC?
 
Try out this line.

Main.NewText("I just ate me a consumable heh heh", 255, 240, 20, false);
 
Thanks, may I ask what the false at the end is for?
You should be able to hover over the NewText, and then it'll show the names of the variables.

Alternatively, you can 'go to definition' of the NewText Method, and see what it does yourself
 
Back
Top Bottom