[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 08-09-2013, 09:44 AM   #1 (permalink)
Registered User Steel0RaZoR
User
 
Steel0RaZoR's Avatar
 
Join Date: Mar 2011
Posts: 183
Steel0RaZoR has little to show at this moment (17)Steel0RaZoR has little to show at this moment (17)
Colored text question

Hello!

Is it possible to make a gui trigger where if a tower is destroyed, a name of the player is shown and has destroyed a tower,

Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( has + destroyed a tower.))
sample: "Jerico has destroyed a tower"

The thing is, how do I color the name to its player color?
Steel0RaZoR is offline  
Old 08-09-2013, 09:52 AM   #2 (permalink)
Registered User Dawn
Random User
 
Dawn's Avatar
 
Join Date: Jul 2013
Posts: 94
Dawn has disabled reputation
Do this in map init:
Quote:
Originally Posted by Multiboards By Senkin
http://world-editor-tutorials.thehelper.net/multiboard.php
Player Colors:
Red: |CFFFF0303 |R
Blue: |CFF0042FF |R
Teal: |CFF1CB619 |R
Purple: |CFF540081 |R
Yellow: |CFFFFFF01 |R
Orange: |CFFFE8A0E |R
Green: |CFF20C000 |R
Pink: |CFFE55BB0 |R
Grey: |CFF959697 |R
Light Blue: |CFF7EBFF1 |R
Dark Green: |CFF106246 |R
Brown: |CFF4E2A04 |R

Then Use this trigger action:
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has destroyed a tower.)))

Warcraft uses Hexidecimal color code. Like in HTML.
__________________
(─‿‿─)
Dawn is offline  
Old 08-09-2013, 09:56 AM   #3 (permalink)
Registered User Steel0RaZoR
User
 
Steel0RaZoR's Avatar
 
Join Date: Mar 2011
Posts: 183
Steel0RaZoR has little to show at this moment (17)Steel0RaZoR has little to show at this moment (17)
Quote:
Originally Posted by The Prodigy View Post
Do this in map init:


Then Use this trigger action:
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has destroyed a tower.)))
Haha. Thanks again :D
Steel0RaZoR is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 05:38 PM.




Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle