|
|
Source code |
1 |
i=i+1; Skill[i] = { name = "Instant Shadow", use = ((_target == UnitName("player")) and (_type == "DODGE")) }
|
|
|
Source code |
1 2 3 4 |
elseif string.find(Skill[x].name, "Macro:") then action = string.gsub(Skill[x].name, "(Macro:)( *)(.*)", "%3") ExecuteMacroLine(action) return true |
|
|
Source code |
1 |
{name = "Macro:/cast Ultimate Desturction", use = true }
|
This post has been edited 5 times, last edit by "BlankMinded" (Jan 7th 2014, 10:50pm)
Ghost you have a new PM
)This post has been edited 1 times, last edit by "hangman04" (Feb 2nd 2014, 3:23am)
the CD() function returns true if skill is available. that means completely off-cd.2)As for wd/... , is there a way, to force diyce to check, if Charge Chop has cd>0.6 before using next skill from the list?
I already have tryied CD("Charge Chop)>0.6 (this one gave me some
message on chat, but not spam skill), and I'm not sure if g_lastaction
will be of any of use in here.
How bout looking at page 1? Or at any of the other example custom functions in this thread or the diyce version he/she downloaded? While looking, keep in mind you want to know something about Target Buffs *hint hint wink wink*Hi there, asking here on behalf of a friend, does anyone maybe know a line of code that could inspect your targets buffs and for example if it sees candy then to cast holy strike etc.. I did look through some pages but 64 was a lot
not behind creates a boolean value out of behind. Booleans being only true or false. If a variable doesn't store true of false (or 0 or 1), then converting it to a boolean usually results in { False when the variable has value nil, True otherwise}. You can think of this as checking whether the variable exists or not, or if it has a value or not.
Quoted
Ghost: what happens in lua if i negate nill? for example (not behind), if
behind = true - i get false if behind is false i get true but if behind
is nill, what do i get ? :/
This post has been edited 8 times, last edit by "BlankMinded" (Feb 11th 2014, 4:14pm)
This post has been edited 2 times, last edit by "hellotoyou" (Feb 12th 2014, 2:29pm)