FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Specific player messages

    Scheduled Pinned Locked Moved Mapping
    6 Posts 4 Posters 550 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DDDXD
      DDDX
      last edited by DDDX

      Hi...is it possible to for a map script to display messages to specific players, or do they have to be global?
      For example, only to one player or only to one team?
      I am not talking about chat 🙂

      Also, would it be possible to change colour of a single unit or can you only change army colour, of an entire army? I suppose the answer to both of these is a firm NO, specially to the second one 😛

      Anachronism_A 1 Reply Last reply Reply Quote 0
      • Z
        Zokora
        last edited by

        In the in game chat window, you can select to which player you want to send a message. Even in the lobby you can do that with /w playername I think.

        DDDXD 1 Reply Last reply Reply Quote 0
        • DDDXD
          DDDX @Zokora
          last edited by

          @zokora no, i meant via map script, not chat messages. Instructions on nhow to play a map, or a welcome message...that sort of thing

          1 Reply Last reply Reply Quote 0
          • JipJ
            Jip
            last edited by

            I think that is possible too, I'm not entirely sure. You'd need to check the UserSync.lua in /lua and /schooks/lua. Also - best to ask in #modding-general in my opinion

            A work of art is never finished, merely abandoned

            1 Reply Last reply Reply Quote 1
            • Anachronism_A
              Anachronism_ @DDDX
              last edited by Anachronism_

              @dddx
              Yes, it is possible to display messages to specific players. For example, the map Tower Defense Survival does this by selectively displaying messages via PrintText() if the focus army's index (via GetFocusArmy()) matches the army index(es) that you desire the message to be displayed for. You can look at Tower Defense Survival's map script and or ask in #modding-general on discord if you need more help with that (you can opt-in to the modder role on the FAF discord to see the #modding-general channel).

              pfp credit to gieb

              DDDXD 1 Reply Last reply Reply Quote 2
              • DDDXD
                DDDX @Anachronism_
                last edited by

                @emperor_penguin hell yes!!!!!!!!!! Thank you, both!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post