void
Civilian
Posts: 9
|
Post by void on May 23, 2016 6:33:57 GMT -8
Okay, so here's my problem...
I've made a mod for MoA a long time ago & succeeded in changing the HP bar according to the remaining HP. Now I tried to use the same codes since that part doesn't seem to have changed & instead it crashed.
Anyone know how to mod this?
if float(BM.selected.hp) > (BM.selected.max_hp * 50 / 100):
add 'Battle UI/status window_HP_green.png' xpos 1080 ypos 779 crop (0,0,hp_size,49)
if float(BM.selected.hp) <= (BM.selected.max_hp * 50 / 100) and float(BM.selected.hp) > (BM.selected.max_hp * 25 / 100):
add 'Battle UI/status window_HP_yellow.png' xpos 1080 ypos 779 crop (0,0,hp_size,49)
if float(BM.selected.hp) <= (BM.selected.max_hp * 25 / 100):
add 'Battle UI/status window_HP_red.png' xpos 1080 ypos 779 crop (0,0,hp_size,49)
add 'Battle UI/status window_EN.png' xpos 1133 ypos 805 crop (0,0,en_size,19)
That's the code I used to get it to work. It worked just fine in MoA, but it seems it's not working now so I'm confused as to what I need to change to fix this.
Same problem with the battlescreen field HP indicator for player & enemy units. Crashed when I apply the codes.
Any help would be appreciated.
|
|
void
Civilian
Posts: 9
|
Post by void on May 23, 2016 6:49:45 GMT -8
Oh nevermind, seems it's working now for some really bizarre reason...
|
|