Hello everybody, i am a modder and i got a problem making a wow interface. The problem is the HP bar (Didnt test mana yet). I am sure that i did the correct math and everything, it removes when hes dead tho... but this is how it is:
Melee Initialization
Events
Game - Map initialization
Local Variables
I = 0 <Integer>
R = 0 <Integer>
Conditions
Actions
UI - Hide game UI for (All players)
Dialog - Create a Modal dialog of size (500, 200) at (0, 0) relative to Top Left of screen
General - For each integer I from 1 to 100 with increment 1, do (Actions)
Actions
Variable - Set R = (-103 + (3 * I))
Dialog - Create an Image for Dialog (Last created dialog) with the dimensions (10, 30) anchored to Center with an offset of (R, -30) setting the tooltip to "" using the image Assets\Textures\tyrador_big_bricks.dds as a Normal type with tiled set to false tint color Green and blend mode Lighten
Variable - Set HP[I] = (Last created dialog item)
Dialog - Create an Image for Dialog (Last created dialog) with the dimensions (10, 30) anchored to Center with an offset of (R, 10) setting the tooltip to "" using the image Assets\Textures\tyrador_big_bricks.dds as a Normal type with tiled set to false tint color Blue and blend mode Lighten
Variable - Set MANA[I] = (Last created dialog item)
Dialog - Show (Last created dialog) for (All players)
Dialog - Create a Modal dialog of size (170, 200) at (0, 0) relative to Top Left of screen
Dialog - Create an Image for Dialog (Last created dialog) with the dimensions (100, 100) anchored to Left with an offset of (40, -10) setting the tooltip to "" using the image Assets\Textures\btn-unit-zerg-hydralisk.dds as a Normal type with tiled set to false tint color White and blend mode Normal
Dialog - Show (Last created dialog) for (All players)
and the changing
HP and MP
Events
Timer - Every 0.0001 seconds of Real Time
Local Variables
I = 0 <Integer>
HP = (Integer((UNIT Life (Current)))) <Integer>
MP = (Integer((UNIT Energy (Current)))) <Integer>
HPP = (Integer((UNIT Life (Percent) (Current)))) <Integer>
MPP = (Integer((UNIT Energy (Percent) (Current)))) <Integer>
Conditions
Actions
General - For each integer I from HPP to 100 with increment 1, do (Actions)
Actions
Dialog - Hide HP[I] for (All players)
General - For each integer I from 1 to HPP with increment 1, do (Actions)
Actions
Dialog - Show HP[I] for (All players)
~ Slaydon
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello everybody, i am a modder and i got a problem making a wow interface. The problem is the HP bar (Didnt test mana yet). I am sure that i did the correct math and everything, it removes when hes dead tho... but this is how it is:
Melee Initialization
Events
Game - Map initialization
Local Variables
I = 0 <Integer>
R = 0 <Integer>
Conditions
Actions
UI - Hide game UI for (All players)
Dialog - Create a Modal dialog of size (500, 200) at (0, 0) relative to Top Left of screen
General - For each integer I from 1 to 100 with increment 1, do (Actions)
Actions
Variable - Set R = (-103 + (3 * I))
Dialog - Create an Image for Dialog (Last created dialog) with the dimensions (10, 30) anchored to Center with an offset of (R, -30) setting the tooltip to "" using the image Assets\Textures\tyrador_big_bricks.dds as a Normal type with tiled set to false tint color Green and blend mode Lighten
Variable - Set HP[I] = (Last created dialog item)
Dialog - Create an Image for Dialog (Last created dialog) with the dimensions (10, 30) anchored to Center with an offset of (R, 10) setting the tooltip to "" using the image Assets\Textures\tyrador_big_bricks.dds as a Normal type with tiled set to false tint color Blue and blend mode Lighten
Variable - Set MANA[I] = (Last created dialog item)
Dialog - Show (Last created dialog) for (All players)
Dialog - Create a Modal dialog of size (170, 200) at (0, 0) relative to Top Left of screen
Dialog - Create an Image for Dialog (Last created dialog) with the dimensions (100, 100) anchored to Left with an offset of (40, -10) setting the tooltip to "" using the image Assets\Textures\btn-unit-zerg-hydralisk.dds as a Normal type with tiled set to false tint color White and blend mode Normal
Dialog - Show (Last created dialog) for (All players)
and the changing
HP and MP
Events
Timer - Every 0.0001 seconds of Real Time
Local Variables
I = 0 <Integer>
HP = (Integer((UNIT Life (Current)))) <Integer>
MP = (Integer((UNIT Energy (Current)))) <Integer>
HPP = (Integer((UNIT Life (Percent) (Current)))) <Integer>
MPP = (Integer((UNIT Energy (Percent) (Current)))) <Integer>
Conditions
Actions
General - For each integer I from HPP to 100 with increment 1, do (Actions)
Actions
Dialog - Hide HP[I] for (All players)
General - For each integer I from 1 to HPP with increment 1, do (Actions)
Actions
Dialog - Show HP[I] for (All players)
~ Slaydon