# indik
if Enable_scalepic = 1:
!0=reverse, 1=100%, 2=value. copy from 1.2.5, modify by illume
if ARGS[1] < 1: ARGS[1] = 1
if ARGS[1] > 100: ARGS[1] = 100
! scalewidth default = 120px
if Enable_scalewidth > 1:
max_width = Enable_scalewidth-1
else
max_width = 120
end
if Enable_scaleheight > 1:
_height = Enable_scaleheight-1
else
_height = 15
end
_width = ARGS[1] * max_width / 100
if ARGS[1] < 30: $_color = iif(ARGS[0] > 0,'green','red')
if ARGS[1] >= 30 and ARGS[1] < 70 and ARGS[0] = 0: $_color = 'blue'
! reverse colors
if ARGS[1] >= 30 and ARGS[1] < 50 and ARGS[0] > 0: $_color = 'yellow'
if ARGS[1] >= 50 and ARGS[1] < 70 and ARGS[0] > 0: $_color = 'orange'
! ---
if ARGS[1] >= 70: $_color = iif(ARGS[0]> 0,'red','green')
$result = ' ![](images/system/icon/'+$_color+'.png)
'+ARGS[2]+' '
$ind = $result
killvar 'max_width'
killvar '_width'
killvar '_height'
killvar '$_color'
else
if cheatStatusBars = 1:
i = 2
else
i = 3
end
if Enable_statfsize > 0 and Enable_statfsize < i:i = Enable_statfsize
a = ARGS[1]
a1 = ARGS[2]
if a > 100:a = 100
if a < 0:a = 0
if ARGS[3] > 0: indik_damage = ARGS[3]
if $ARGS[0] = '1':
if Enable_Android = 1:
if a >= 65:
$ind = '<>'
elseif a >= 35:
$ind = '<>'
else
$ind = '<>'
end
else
j = a/5
$ind = '>> '
indik_counter = 0
:indik
if indik_counter < j:
$ind += '>>█'
indik_counter += 1
jump 'indik'
elseif indik_counter < 20:
$ind += '>>_'
indik_counter += 1
jump 'indik'
end
killvar 'indik_counter'
killvar 'j'
$ind += '>> '
if a >= 85:
$ind = '' + $ind + '<>'
elseif a >= 70:
$ind = '' + $ind + '<>'
elseif a >= 50:
$ind = '' + $ind + '<>'
elseif a >= 20:
$ind = '' + $ind + '<>'
elseif a >= 10:
$ind = '' + $ind + '<>'
else
$ind = '' + $ind + '<>'
end
end
end
if $ARGS[0] = '2':
if Enable_Android = 1:
if a >= 85:
$ind = '<>'
elseif a >= 65:
$ind = '<>'
elseif a >= 45:
$ind = '<>'
elseif a >= 25:
$ind = '<>'
else
$ind = '<>'
end
else
j = a/5
indik_damage = indik_damage/5
$ind = '>> '
indik_counter = 0
:indik2
if indik_counter < j:
$ind += '>>█'
indik_counter += 1
jump 'indik2'
elseif indik_counter < indik_damage:
$ind += '>>░'
indik_counter += 1
jump 'indik2'
elseif indik_counter < 20:
$ind += '>>_'
indik_counter += 1
jump 'indik2'
end
killvar 'indik_counter'
killvar 'j'
killvar 'indik_damage'
$ind += '>> '
if a >= 90:
$ind = '' + $ind + ''
elseif a >= 80:
$ind = '' + $ind + ''
elseif a >= 70:
$ind = '' + $ind + ''
elseif a >= 60:
$ind = '' + $ind + ''
elseif a >= 50:
$ind = '' + $ind + ''
elseif a >= 40:
$ind = '' + $ind + ''
elseif a >= 30:
$ind = '' + $ind + ''
elseif a >= 20:
$ind = '' + $ind + ''
elseif a >= 10:
$ind = '' + $ind + ''
else
$ind = '' + $ind + ''
end
end
end
if $ARGS[0] = '3':
if Enable_Android = 1:
if a >= 65:
$ind = '<>'
elseif a >= 35:
$ind = '<>'
else
$ind = '<>'
end
else
j = a/5
$ind = '>> '
indik_counter = 0
:indik3
if j < 10:
if indik_counter < j:
$ind += '>>_'
indik_counter += 1
jump 'indik3'
elseif indik_counter < 10:
$ind += '>>█'
indik_counter += 1
jump 'indik3'
elseif indik_counter < 20:
$ind += '>>_'
indik_counter += 1
jump 'indik3'
end
elseif j > 10:
if indik_counter < 10:
$ind += '>>_'
indik_counter += 1
jump 'indik3'
elseif indik_counter < j:
$ind += '>>█'
indik_counter += 1
jump 'indik3'
elseif indik_counter < 20:
$ind += '>>_'
indik_counter += 1
jump 'indik3'
end
else
if indik_counter < 9:
$ind += '>>_'
indik_counter += 1
jump 'indik3'
elseif indik_counter = 9 or indik_counter = 10:
$ind += '>>▓'
indik_counter += 1
jump 'indik3'
elseif indik_counter < 20:
$ind += '>>_'
indik_counter += 1
jump 'indik3'
end
end
killvar 'indik_counter'
killvar 'j'
$ind += '>> '
if a < 10:
$ind = '' + $ind + '<>'
elseif a < 30:
$ind = '' + $ind + '<>'
elseif a <= 70:
$ind = '' + $ind + '<>'
elseif a <= 90:
$ind = '' + $ind + '<>'
else
$ind = '' + $ind + '<>'
end
end
end
end
--- indik ---------------------------------