Showing deny with player colours?

BacTyrael

New Member
Reaction score
1
I have searched extensively but haven't been able to find a tutorial or guide to do this in the editor. Is this only capable with newgen? If not some assistance would be appreciated.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
No its basic GUI. Just store the colour in a string vairiable with a array.
 

BacTyrael

New Member
Reaction score
1
Alright i think i might of set up the variables wrong but now its showing player color but the text is 0.00 and its not the right color for the player. Here is what i have going so far.

Trigger:
  • Player Colors
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Player_Colors[1] = |c00ff0303
      • Set Player_Colors[2] = |c000042ff
      • Set Player_Colors[3] = |c001ce6b9
      • Set Player_Colors[4] = |c00540081
      • Set Player_Colors[5] = |c00fffc01
      • Set Player_Colors[6] = |c00ff8000
      • Set Player_Colors[7] = |c0020c000
      • Set Player_Colors[8] = |c00e55bb0
      • Set Player_Colors[9] = |c00959697
      • Set Player_Colors[10] = |c007ebff1
      • Set Player_Colors[11] = |c00106246
      • Set Player_Colors[12] = |c004e2a04
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set PlayerNames[(Integer A)] = ((Player_Colors[(Integer A)] + (Name of (Player((Integer A))))) + |r)


Trigger:
  • Show Deny
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) belongs to an ally of (Owner of (Killing unit))) Equal to True
    • Actions
      • Floating Text - Create floating text that reads (Player_Colors[(Player number of (Owner of (Triggering unit)))] + ((String(Temp_Real)) + |r)) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 0.75 seconds
      • Floating Text - Destroy (Last created floating text)
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
It should be in the second triger for the player color owner of killing unit not triggering unit
 

BacTyrael

New Member
Reaction score
1
lol thanks for helping me notice that typo, changed the variable temp_real and i fixed my number problem. its not working fine thanks much.

+rep
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top