dustinfoley
Active Member
So I was trying to modify the shmbot program to also heal for blood mages. One big thing about blood mages is they have arcane nukes that heal the target.
For example Despoil I: A self heal that nukes the target for 120 and returns 130% of that to the blood mage as a heal.
Ideally you wouldn't want to use that on mobs that are healed by arcane because it would heal them and damage you.
So far what i have done was add an option to the xml so that you can toggle on arcane heals.
</checkbox>
<checkbox Name='DoArcane' Template='VG.GreenCheckbox'>
<visible>1</visible>
<X>210</X>
<Y>50</Y>
<Width>90</Width>
<Height>20</Height>
<Text>Arcane</Text>
<OnLoad>
if ${Script[VGbloodmage].Variable[doArcane]}
{
This:SetChecked
}
</OnLoad>
<OnLeftClick>
Script[VGbloodmage].Variable[doArcane]:Set[${This.Checked}]
</OnLeftClick>
</checkbox>
Which looks fine i now have an arcane checkbox in my ui.
Now what i cant figure out is how to write the script.
I assume in the ISS, you need to add a "Variable bool doArcane = True", but that gets me an error and wont load the script (undefined variable).
So if i leave that out and just go to the script section, i tried to make a heal script right above the regular self heal. I edited the includeblm.iss file to have a skill called ArcaneSelf:Set["Despoil I"]
Arcane self heal
Regular self heal
function Check_Health()
{
if "${Me.DTarget.ID}!=${TankID}"
{
Pawn[id,${TankID}]:Target
}
if "${doArcane} && ${Me.HealthPct}<${MeHealPct}"
{
if "${Me.Ability[${ArcaneSelf}].IsReady}"
{
Me.Ability[${ArcaneSelf}]:Use
call MeCasting
return
}
if "${Me.HealthPct}<${MeHealPct}"
{
Pawn[me]:Target
Me.Ability[${HealSmall}]:Use
Pawn[id,${TankID}]:Target
call MeCasting
However without the variable bool doarcane at the top it wont nuke. Infact i cant even get the it to cast it says some kind of error bout not check hp not being able to be used with nukes or something
For example Despoil I: A self heal that nukes the target for 120 and returns 130% of that to the blood mage as a heal.
Ideally you wouldn't want to use that on mobs that are healed by arcane because it would heal them and damage you.
So far what i have done was add an option to the xml so that you can toggle on arcane heals.
</checkbox>
<checkbox Name='DoArcane' Template='VG.GreenCheckbox'>
<visible>1</visible>
<X>210</X>
<Y>50</Y>
<Width>90</Width>
<Height>20</Height>
<Text>Arcane</Text>
<OnLoad>
if ${Script[VGbloodmage].Variable[doArcane]}
{
This:SetChecked
}
</OnLoad>
<OnLeftClick>
Script[VGbloodmage].Variable[doArcane]:Set[${This.Checked}]
</OnLeftClick>
</checkbox>
Which looks fine i now have an arcane checkbox in my ui.
Now what i cant figure out is how to write the script.
I assume in the ISS, you need to add a "Variable bool doArcane = True", but that gets me an error and wont load the script (undefined variable).
So if i leave that out and just go to the script section, i tried to make a heal script right above the regular self heal. I edited the includeblm.iss file to have a skill called ArcaneSelf:Set["Despoil I"]
Arcane self heal
Regular self heal
function Check_Health()
{
if "${Me.DTarget.ID}!=${TankID}"
{
Pawn[id,${TankID}]:Target
}
if "${doArcane} && ${Me.HealthPct}<${MeHealPct}"
{
if "${Me.Ability[${ArcaneSelf}].IsReady}"
{
Me.Ability[${ArcaneSelf}]:Use
call MeCasting
return
}
if "${Me.HealthPct}<${MeHealPct}"
{
Pawn[me]:Target
Me.Ability[${HealSmall}]:Use
Pawn[id,${TankID}]:Target
call MeCasting
However without the variable bool doarcane at the top it wont nuke. Infact i cant even get the it to cast it says some kind of error bout not check hp not being able to be used with nukes or something