Convert upgrade name to text?

Mmage

New Member
Reaction score
7
Hello, I am making a map with universal upgrades(One person researches an upgrade and it is reasearched for the whole team) and the universal part is working fine, but if 'Red' researches something and it is not being reseached by 'Blue', 'Blue' will not get a notification of it being reasearched. I would like to have the game show a text message to say that the upgrade was researched, but I can't convert an upgrade name to text to put into the message. Can someone help?
 

Tom Jones

N/A
Reaction score
437
If you create a string variable you could do something like this:
Trigger:
  • Test
    • Events
      • Unit - A unit Finishes research
    • Conditions
    • Actions
      • Custom script: set udg_*Your Variable* = GetObjectName(GetResearched())
      • Game - Display to (All allies of (Triggering player)) the text: *Your Variable*
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top