• 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.

Problem with Imported Icons.

Status
Not open for further replies.
Level 2
Joined
May 8, 2008
Messages
8
Two Problems - Imported Icons and Text

Solved
Well, the problem I seem to be having with the icons is the following;

I've put the items into a shop to buy them. I noticed that when I am not within 'buying distance' from the shop the icon is a green square, however when I come within range the item uses the proper icon.

So my question/problem is how do I go about making it so that the icon isn't a green square when I am not within buying distance so that it always is the custom icon?

Unsolved
Also, the problem I am having with the text is.. I want it so that when a characters hero steps on a region, it displays a certain text to JUST them.. and I've only been able to find a way for it to display to all players.. and help on this would be appreciated.

Thanks in advance for any help! :grin:
 
Last edited:
Level 5
Joined
Aug 24, 2008
Messages
199
the Problem is that the shop needs 2 icons graphics to show it proper it dose need the normal BTN this shows up when within range to buy and the DISBTN this one is a blackened version of the BTN.

A note taken out of this tutorial

The disabled icon is basically the same as the normal, except that it has no borders and is more dark.
However the disabled icon must always have the following path: ReplaceableTextures\CommandButtonsDisabled\DISBTN
Note: The "BTN" prefix isn't necessarily needed, but is recommended to keep icon images better organized.
Technically an icon would work without the "BTN" prefix as well, as long as the disabled version has the "DIS" prefix:
whatever\myIcon.blp
ReplaceableTextures\CommandButtonsDisabled\DISmyIcon.blp
 
Level 2
Joined
May 8, 2008
Messages
8
the Problem is that the shop needs 2 icons graphics to show it proper it dose need the normal BTN this shows up when within range to buy and the DISBTN this one is a blackened version of the BTN.

A note taken out of this tutorial

The disabled icon is basically the same as the normal, except that it has no borders and is more dark.
However the disabled icon must always have the following path: ReplaceableTextures\CommandButtonsDisabled\DISBTN
Note: The "BTN" prefix isn't necessarily needed, but is recommended to keep icon images better organized.
Technically an icon would work without the "BTN" prefix as well, as long as the disabled version has the "DIS" prefix:
whatever\myIcon.blp
ReplaceableTextures\CommandButtonsDisabled\DISmyIcon.blp

Worked, thank you very much. :D
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
Instead of 'Floating Text', you need to use the Action 'Game - Text Message'. Instead of a text at a specific point, the text will be displayed to the left of your screen. If you really need the Floating Text, I think your only option might be JASS, but I'm not sure if it's possible and how to do it. You might find such JASS on the forum if you search some, but I highly recommend you not to use JASS if you don't know basic GUI like Floating Text and Text Massages.
 
Level 2
Joined
May 8, 2008
Messages
8
If you refer to this screenshot: http://i302.photobucket.com/albums/nn83/osraen/warcraft3.jpg

It will show you the text I am talking about. Basically, when I enter this region (It's a dungeon) it will display the text and give information about the dungeon. The problem is that when I step into the region, it gets displayed to ALL players instead of only the one who just entered the region. So how do I make it display ONLY to the character that stepped on the region?
 
Level 5
Joined
Aug 24, 2008
Messages
199
could you write down the trigger for your text display? I can only imaging that you didn't declare the player which receives the text.

  • Event
    • Unit - unit enters region
  • Condition
    • (owner of (triggering unit)) equal to Player 1 (red)
  • Action
    • Display to Playergroup - Player 1 (red) the text: blablatexttext
You will have to this for every player but it should display the message only to the corresponding Player. However I'm sure their is a way to do a single trigger for all players but i haven't figured that out yet and i have no way to test it.
 
Status
Not open for further replies.
Top