Finisher problem

Akku

Active Member
Hi im trying to convert the VGShaman script into a DK Script.
So far the most stuff i try works, but now i have a problem.
I have a finishing move that buffs me for 5min and need to cast him only if i dont
have the buff on me. the other times i can cast a finisher with more dmg.
this is the code i end up with but it dont works

Code:
		if "${Me.Ability[${Finisher2}].IsReady} && ${Me.Effect[${Finisher2}](exists)}"
		{
			Me.Ability[${Finisher2}]:Use
			call MeCasting
			return
		}
 

Kazman420

Active Member
Shield of Fear? hehe.

You're real close, you just forgot to add the ! infront of ${ in order to indicate a FALSE. So;

${Me.Effect[${Finisher2}](exists)} = If Finisher2's effect IS on me.
!${Me.Effect[${Finisher2}](exists)} = If Finisher2's effect is NOT on me.

You may want to add a few of the following. Not that your code wont work with the simple addition of a !, but adding a few extra bits can reduce ingame spam;(just a suggestion, taken from my own DK script)

Code:
if (${Me.Endurance} >= ${Me.Ability[${Chain2A}].EnduranceCost}) && ${Me.Ability[${Chain2A}].IsReady} && ${Me.Ability[${Chain2A}].TargetInRange} && !${Me.Effect[${Chain2A}](exists)} && !${Me.Target.IsDead}
Obviously you want to change Chain2A to meet your own variable. Good Luck!
 
Top Bottom