• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] display text in middle of screen

Status
Not open for further replies.
Level 2
Joined
Jun 6, 2012
Messages
4
hey,

I would like to display text in the middle of the screen when I enter a certain region (like it happens in diablo). What trigger do I need for that?

greetings
 
You need jass (custom script):

  • Custom script: call DisplayTextToPlayer(GetLocalPlayer(),1.,0.,"Message")
DisplayTextToPlayer takes 4 arguments: player, real, real, string, where the two reals refer to the x,y, coordinates of the message. It's difficult to find the exact center, but basically just guess and check until it looks good.

Change the 1. in the message by small amounts (like 1.1 or .9) until it looks good to you.
 
Status
Not open for further replies.
Top