• 🏆 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!

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