• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

File Image Variable

Status
Not open for further replies.
Level 20
Joined
Jan 6, 2008
Messages
2,622
Heyas, im making a system basicly, and i wonder if someone already found a solution, when using the " - File (Image) " variable it says Missing String "", and when i apply it it gets blank. I do index it.

  • Variable - Set CharNewUnitTooltip[2] = "Zealot"
  • Variable - Set CharNewUnitType[2] = Zealot
  • Variable - Set CharNewImage[11] = Assets\Textures\btn-unit-protoss-zealot.dds
  • Variable - Set CharNewUnitTooltip[3] = "Viking"
  • Variable - Set CharNewUnitType[3] = Viking (Assault Mode)
  • Variable - Set CharNewImage[12] = Assets\Textures\btn-unit-terran-vikingassault.dds
  • General - For each integer i from 2 to 6 with increment 1, do (Actions)
    • Actions
      • Dialog - Create a Button for Dialog (Last created dialog) with the dimensions (80, 80) anchored to Center with an offset of (-100, (110 - (70 * i))) setting the tooltip to (Text(CharNewUnitTooltip[0])) with button text "" and the hover image set to ""
      • Variable - Set CharNewItems[i] = (Last created dialog item)
  • General - For each integer i from 11 to 15 with increment 1, do (Actions)
    • Actions
      • Dialog - Create an Image for Dialog (Last created dialog) with the dimensions (64, 64) anchored to Center with an offset of (-100, (110 - (70 * i))) setting the tooltip to "" using the image CharNewImage[i] as a Normal type with tiled set to false tint color White and blend mode Normal
      • Variable - Set CharNewItems[i] = (Last created dialog item)
Yes, the cords does work, its just the image.
 
Obviously you are not providing it with the "" paranthes which tell it that the text between is to turn into a string (which represents a path in this case) and not a number or expression.

Basically there is no such thing as a Assets\Textures\btn-unit-terran-vikingassault.dds or a Assets\Textures\btn-unit-protoss-zealot.dds
you will have to difine those variables yourself (which will be impossible due to the syntax of them).

However you are after a string, namingly
"Assets\Textures\btn-unit-protoss-zealot.dds"
"Assets\Textures\btn-unit-terran-vikingassault.dds"

I am suprized this was giving you difficulty, it is the same for all programming languages.
 
Status
Not open for further replies.
Back
Top