• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] multiboard color question

Status
Not open for further replies.

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,994
Pretty simple to do:
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- Red color for red player (1). --------
      • Set Color[1] = |cffFF0000
      • -------- Blue color for blue player (2). --------
      • Set Color[2] = |cff0000FF
      • -------- Teal color for teal player (3). --------
      • Set Color[3] = |cff00FF00
      • -------- And so on... --------
You should put these actions in the map init.
Go here to find out how to make more defined colours if you don't know how: http://www.colorpicker.com/
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,994
erm, don't use it. it's more accurate doing this:
JASS:
call MultiboardSetItemValueBJ( MultiboardName, 1, 1, ( udg_Color[GetConvertedPlayerId(WhichPlayer)] + "Text" ) )
You set the string of colour variable to each player number then use it in SetItemValue with text.
 
Hi, do you have JNGP? If not, get it:
http://www.hiveworkshop.com/forums/tools-560/jassnewgenpack-5d-227445/

Do you know how to inline BJ functions yourself? If not, learn:
http://www.hiveworkshop.com/forums/triggers-scripts-269/inlining-168433/
http://i.imgur.com/vzp6PgA.png

Do you know how the RGB model works? If not, learn:
http://www.tomjewett.com/colors/rgb.html

lastly, you can change the color of text in a multiboard using standard wc3 color codes within the string using |ffRRGGBBtext|r as Wrda is trying to describe.

Good luck.
 
Status
Not open for further replies.
Top