• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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
 

Cokemonkey11

Spell Reviewer
Level 30
Joined
May 9, 2006
Messages
3,560
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