i ran into a problem though when i read from the ini file, it will parse all of the MQData variables in the ini when i read it. i tried using /noparse, but it doesn't do what im looking for. here's a little bit of the code i have:
Code: Select all
Sub Main
/declare iniName string outer mqpath\MQ2HUD.ini
/declare key string outer HUDName
/declare valueList string outer ${Ini[${iniName},${key}]}
/declare value string local
/declare line string local
/declare x int local
/declare y int local
/declare i int local
/declare j int local
/declare n int local
/varcalc n ${valueList.Count[|]}-1
/for i 1 to ${n}
/varset value ${valueList.Arg[${i},|]}
/varset line ${Ini[${iniName},${key},${value}]}
/echo ${line}
| /ini "${iniName}" ${key} ${value} "${line}"
/next iif the line in the ini file is:
Code: Select all
TargetHpPct= 3,702,668,255,255,255,${If[${Target.PctHPs}<=100,${Target.PctHPs},]}Code: Select all
3,702,668,255,255,255,100