• 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.

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
 
Level 6
Joined
Apr 15, 2012
Messages
205
First create these variables / triggers:

  • Region 1 text = No Dialog Item <Dialog Item>
  • Create the dialog and labels
  • Show region name
In "Create the dialog and labels":

  • Create the dialog and labels
    • Events
      • Game - Map initialization
    • Local Variables
    • Conditions
    • Actions
      • Dialog - Create a Modal dialog of size (500, 400) at (0, 0) relative to Center of screen
      • Dialog - Hide the background image of (Last created dialog)
      • Dialog - Create a label for dialog (Last created dialog) with the dimensions (200, 50) anchored to Top Left with an offset of (50, 50) with the text "<Name of region 1>" color set to White text writeout set to False with a writeout duration of 2.0
      • Variable - Set Region 1 text = (Last created dialog item)
      • Dialog - Hide (Last created dialog item) for (All players)
In "Show region name":

  • Show region name
    • Events
      • Unit - Any Unit Enters Region 001
    • Local Variables
    • Conditions
    • Actions
      • Dialog - Show Region 1 text for (All players)
      • General - Wait 2.0 Game Time seconds
      • Dialog - Hide Region 1 text for (All players)
I do not exactly know how to make the text fade out, if that is what you want, I could try to find out how to do it.
 
Status
Not open for further replies.
Top