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

Game - Text, higher 1st line?

Status
Not open for further replies.
Level 5
Joined
Dec 3, 2012
Messages
117
I've got an item, that if when used, a trigger triggers, showing the player a whole lot of info by using the "Game - Display to (playergroup) the text: "

but the start of the first line is way too low, so you can't even begin to read it all =/ any clue how to set this point higher, so I can see the full text?

Maybe this screenie will give you a better idea of what I mean;
Game%20Text.jpg


If this is not possible I've got a different solution, but I want to check if its possible first
 
Level 5
Joined
Dec 3, 2012
Messages
117
You can also just spam a bunch of empty text messages (or messages with spaces in them). That will push all those other ones up. The only issue is it will also show up in the log a bunch of blank lines, but if it is a multiplayer map you don't need to worry about that.

This ^ did not work :eek:

  • Use Recipe Book
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Mixed Solutions Recipe
    • Actions
      • Set TEMPPlayerGroup = (Player group((Owner of (Triggering unit))))
      • 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:
      • Game - Display to TEMPPlayerGroup the text:
      • Game - Display to TEMPPlayerGroup the text:
      • Game - Display to TEMPPlayerGroup the text: |cffffcc00Mixed Sol...
      • Custom script: call DestroyForce(udg_TEMPPlayerGroup)
You can set text position viaDisplayTextToPlayer, I'm not sure if you can in GUI.

JASS:
call DisplayTextToPlayer(GetLocalPlayer(), 0, 1, "message")

Will place "message" at the top of the screen.

How do I make it display it to "TEMPPlayerGroup" ?
Cause LocalPlayer would be triggering player, i think..? but its a unit event in this case.
 
Balls. Erm, can i do DisplayTextToPlayer(OwnerOfTriggeringUnit) ?

This should work;

JASS:
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()), 0, 1, "message")

If you want in GUI you can set some variables

  • Actions
    • Set PlayerVar - (Owner of (Triggering Unit))
    • Set Message - "Message"
    • Set Height - 1
    • Custom script: call DisplayTextToPlayer(udg_PlayerVar, 0, udg_Height, udg_Message)
 
Status
Not open for further replies.
Top