- Joined
- Dec 30, 2021
- Messages
- 19
Hello everyone! I'm a GUI custom map maker and to make Resource Bars I need to learn Jass or Lua. I just started reading tutorials but this upgrade I need on my map asap
Let me know if it's even possible do this way.
So the example pannel gonna look like this:
From upper left:
1st value is Hero's/Unit's Damage (base: 125 - 200 and bonus: +105)
icon: "ReplaceableTextures\CommandButtons\BTNAttack.blp" or icon matching attack type (if possible)
2nd value is Hero's/Unit's Attack Cooldown (base: 1.8/reduced by IAS: 1.50)
icon: "ReplaceableTextures\CommandButtons\BTNHoldPosition.blp"
3rd value is Hero's/Unit's Attack Speed (IAS) (+20%) - not sure if it's even possible to get this value
icon: "ReplaceableTextures\CommandButtons\BTNGlove.blp"
4th value is Hero's/Unit's Armor (base: 12 and bonus: +121)
icon: "ReplaceableTextures\CommandButtons\BTNStop.blp" or icon matching defense type (if possible)
5th value is Hero's/Unit's Evasion (21%) - taken from Hero's Evasion "ACev" ability level -1 (Level 1 Evasion = 0% chance, Level 2 = 1%...). If unit doesnt have Evasion ability show 0%.
icon: "ReplaceableTextures\CommandButtons\BTNEvasion.blp"
6th value is Hero's/Unit's Movement Speed (current movement speed: 325) - it would be awesome to make the numbers red if the current value is under base value and green when it's above.
icon: "ReplaceableTextures\CommandButtons\BTNBootsOfSpeed.blp"
7th value is Hero's Strength (base: 12 and bonus: +8)
8th value is Hero's Agility (base:17 and bonus +6) displayed in < > to point a Primary Attribute
9th value is Hero's Intelligence (base: 8 and bonus +3)
Hovering 1st value displays info window:
This one is pretty similar to default one but i prefer displaying exact range instead of "melee".
Also it would be nice if tooltip is taken from Game Interface like here: Attack type - Hero = DAMAGETIP_HERO
It would be even more awesome if new Damage icon would match hero's/unit's Damage type icon and be dynamic.
Hovering 2nd value displays info window:
Again 1.80 value is the base unit's attack cooldown value and 1.50 is the value decreased by IAS. So if unit has 20% total increased attack speed it will display the decreased value. The formula was: Base Attack CD/(1 + IAS) ---> 1.8/(1+0.2) = 1.5.
Hovering 3rd value displays info window:
In the tooltip i would like to contain only the amount of sec the IAS reduces so 1.8 - 1.5 = 0.3
Hovering 4th value displays info window:
Same as Damage window but no Movement Speed info.
Also it would be nice if tooltip is taken from Game Interface like here: Defense type - Hero = ARMORTIP_HERO
It would be even more awesome if new Armor icon would match hero's/unit's Defense type icon and be dynamic.
Hovering 5th value displays info window:
Once again the value i taken from hero's/unit's Evasion "ACev" ability level -1. If Evasion level is 22, it should display the 21% value. If the unit has no Evasion ability display 0%.
Hovering 6th value displays info window:
Displays current hero's/unit's movement speed.
It would be awesome to make the numbers red if the current value is under base value and green when it's above.
Hovering 7th value displays info window:
Would be nice if [Strength per level] value would be displayed from hero's [STRplus], [each point...maximum health] from Game Constans [StrHitPointBonus], [each point...health regeneration] from Game Constans [StrRegenBonus]. And totals multipled by that value.
Hovering 8th value displays info window:
Would be nice if [Agility per level] value would be displayed from hero's [AGIplus]
It would be also nice to add how much the primary attribute (which is agilility in this case) damage adds like: "....by 0.5 (+11.5 total)".
It would be also super awesome to add how much attack speed agility adds like: "...by 1% (+23% total)"
I won't show how much each point of agility increases Evasion chance because the formula is complicated. But maybe it is good idea to add total like: "...chance (+16% total). The value would be taken from the following formula:
((((Agility - Hero's Level) x 0.75)/(100 + ((Agility - Hero's Level) x 0.75)) + 0.02) x 100)
or global variable ((Evasion + 0.02) x 100))
Hovering 9th value displays info window:
Would be nice if [Intelligence per level] value would be displayed from hero's [INTplus], [each point...maximum mana] from Game Constans [IntManaBonus], [each point...mana regeneration] from Game Constans [IntRegenBonus]. And totals multipled by that value.
Colors: |cffffa500Damage|r |Cffffcc00Hero|r |cffFF0000Strength|r |cff00FF00Agility|r |CFF3366FFIntelligence|r |cffFFFF00Armor:|r |cffFFFFCCTooltip|r
I got a feeling like I'm asking way too much but even posting it gives me joy.
Most of these things I'm asking are probably impossible to do or not even worth starting but atleast I try.
I will be appreciate any answer under this post.
Good Luck!

So the example pannel gonna look like this:
From upper left:
1st value is Hero's/Unit's Damage (base: 125 - 200 and bonus: +105)
icon: "ReplaceableTextures\CommandButtons\BTNAttack.blp" or icon matching attack type (if possible)
2nd value is Hero's/Unit's Attack Cooldown (base: 1.8/reduced by IAS: 1.50)
icon: "ReplaceableTextures\CommandButtons\BTNHoldPosition.blp"
3rd value is Hero's/Unit's Attack Speed (IAS) (+20%) - not sure if it's even possible to get this value
icon: "ReplaceableTextures\CommandButtons\BTNGlove.blp"
4th value is Hero's/Unit's Armor (base: 12 and bonus: +121)
icon: "ReplaceableTextures\CommandButtons\BTNStop.blp" or icon matching defense type (if possible)
5th value is Hero's/Unit's Evasion (21%) - taken from Hero's Evasion "ACev" ability level -1 (Level 1 Evasion = 0% chance, Level 2 = 1%...). If unit doesnt have Evasion ability show 0%.
icon: "ReplaceableTextures\CommandButtons\BTNEvasion.blp"
6th value is Hero's/Unit's Movement Speed (current movement speed: 325) - it would be awesome to make the numbers red if the current value is under base value and green when it's above.
icon: "ReplaceableTextures\CommandButtons\BTNBootsOfSpeed.blp"
7th value is Hero's Strength (base: 12 and bonus: +8)
8th value is Hero's Agility (base:17 and bonus +6) displayed in < > to point a Primary Attribute
9th value is Hero's Intelligence (base: 8 and bonus +3)
Hovering 1st value displays info window:
This one is pretty similar to default one but i prefer displaying exact range instead of "melee".
Also it would be nice if tooltip is taken from Game Interface like here: Attack type - Hero = DAMAGETIP_HERO
It would be even more awesome if new Damage icon would match hero's/unit's Damage type icon and be dynamic.
Hovering 2nd value displays info window:
Again 1.80 value is the base unit's attack cooldown value and 1.50 is the value decreased by IAS. So if unit has 20% total increased attack speed it will display the decreased value. The formula was: Base Attack CD/(1 + IAS) ---> 1.8/(1+0.2) = 1.5.
Hovering 3rd value displays info window:
In the tooltip i would like to contain only the amount of sec the IAS reduces so 1.8 - 1.5 = 0.3
Hovering 4th value displays info window:
Same as Damage window but no Movement Speed info.
Also it would be nice if tooltip is taken from Game Interface like here: Defense type - Hero = ARMORTIP_HERO
It would be even more awesome if new Armor icon would match hero's/unit's Defense type icon and be dynamic.
Hovering 5th value displays info window:
Once again the value i taken from hero's/unit's Evasion "ACev" ability level -1. If Evasion level is 22, it should display the 21% value. If the unit has no Evasion ability display 0%.
Hovering 6th value displays info window:
Displays current hero's/unit's movement speed.
It would be awesome to make the numbers red if the current value is under base value and green when it's above.
Hovering 7th value displays info window:
Would be nice if [Strength per level] value would be displayed from hero's [STRplus], [each point...maximum health] from Game Constans [StrHitPointBonus], [each point...health regeneration] from Game Constans [StrRegenBonus]. And totals multipled by that value.
Hovering 8th value displays info window:
Would be nice if [Agility per level] value would be displayed from hero's [AGIplus]
It would be also nice to add how much the primary attribute (which is agilility in this case) damage adds like: "....by 0.5 (+11.5 total)".
It would be also super awesome to add how much attack speed agility adds like: "...by 1% (+23% total)"
I won't show how much each point of agility increases Evasion chance because the formula is complicated. But maybe it is good idea to add total like: "...chance (+16% total). The value would be taken from the following formula:
((((Agility - Hero's Level) x 0.75)/(100 + ((Agility - Hero's Level) x 0.75)) + 0.02) x 100)
or global variable ((Evasion + 0.02) x 100))
Hovering 9th value displays info window:
Would be nice if [Intelligence per level] value would be displayed from hero's [INTplus], [each point...maximum mana] from Game Constans [IntManaBonus], [each point...mana regeneration] from Game Constans [IntRegenBonus]. And totals multipled by that value.
Colors: |cffffa500Damage|r |Cffffcc00Hero|r |cffFF0000Strength|r |cff00FF00Agility|r |CFF3366FFIntelligence|r |cffFFFF00Armor:|r |cffFFFFCCTooltip|r
I got a feeling like I'm asking way too much but even posting it gives me joy.
Most of these things I'm asking are probably impossible to do or not even worth starting but atleast I try.
I will be appreciate any answer under this post.
Good Luck!
Last edited: