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

How to create a text in the middle of the screen for a player!

Status
Not open for further replies.
Level 20
Joined
Jan 6, 2008
Messages
2,627
How to create a text in the middle of the screen for a player??

Hi, im making a map and im using Tige-R Cam system and walk system and i want a unit to enter a region, and in the middle of the screen it would say: Now entering "NAME of AREA" Thanks
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
You can make it with simple trigger.

  • Trigger
    • Events
      • Unit - A unit enters <YourRegion>
    • Conditions
    • Actions
      • Set TempPlayerGroup = (Player group((Owner of (Triggering unit))))
      • Cinematic - Clear the screen of text messages for TempPlayerGroup
      • Game - Display to TempPlayerGroup for 5.00 seconds the text: č č č č č č ...
      • Game - Display to TempPlayerGroup the text:
      • Game - Display to TempPlayerGroup the text:
      • Game - Display to TempPlayerGroup the text:
      • Game - Display to TempPlayerGroup the text:
      • Game - Display to TempPlayerGroup the text:
      • Game - Display to TempPlayerGroup the text:
      • Game - Display to TempPlayerGroup the text:
      • Game - Display to TempPlayerGroup the text:
      • Game - Display to TempPlayerGroup the text:
      • Custom script: call DestroyForce(udg_TempPlayerGroup)
That string is: č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č č Now entering ''Name of Area''
It can't be done with Spaces.

Note that ''č'' is not visible in Warcraft III.
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
okay, ill try that, but is it needed to make that many Game - Display to TempPlayerGroup the text?

If you don't do that, text wont be in center of screen.

Here is screenshot.
Screenshot.jpg
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
Try this:

  • Example
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
    • Actions
      • Set TempPlayerGroup = (Player group((Owner of (Triggering unit))))
      • Cinematic - Clear the screen of text messages for (All players)
      • Set TempString = <Empty String>
      • For each (Integer A) from 1 to 60, do (Actions)
        • Loop - Actions
          • Set TempString = (TempString + )
      • Set TempString = (TempString + Now entering: Bla bla...)
      • Game - Display to (All players) the text: TempString
      • Game - Display to (All players) the text:
      • Game - Display to (All players) the text:
      • Game - Display to (All players) the text:
      • Game - Display to (All players) the text:
      • Game - Display to (All players) the text:
      • Game - Display to (All players) the text:
      • Game - Display to (All players) the text:
      • Game - Display to (All players) the text:
      • Game - Display to (All players) the text:
      • Custom script: call DestroyForce(udg_TempPlayerGroup)
 
Status
Not open for further replies.
Top