Excuse me for my bad english
I don't understand the modifier.last condition.
Can somebody explain to me?
Excuse me for my bad english
I don't understand the modifier.last condition.
Can somebody explain to me?
modifier.last checks if it was the last thing cast or not.
e.g.
Casts smite if the last cast was smite.
Casts smite if it wasn't cast last.Code:{ "Smite", "modifier.last" },
Code:{ "Smite", "!modifier.last" },
ProbablyEngine - Developer and Lead Support
A Powerful Rotation Bot: ProbablyEngine
Thanks!
Another question :
Is that possible to use something like that
{{spell1,{condition1}} {spell2,{condition2}} , {condition3}}
My goal is to cast spell 1 if condition 1&3 are ok and spell 2 if condition 2&3.
{ "Spell One, { "condition 1", "condition 3" }},
{ "Spell Two", { "condition 2", "Condition 3" }},
Does this work?
{ "101643", {"toggle.run",not unit.exists("Transcendence Spirit") }}, -- Transcendence
Last edited by SolonHH; 11-25-2014 at 02:21 PM. Reason: fixing codee
No.
Track for the buff, not the target
Code:{ "101643", { "toggle.run", "player.buff(Transcendence)", }}, -- Transcendence
ProbablyEngine - Developer and Lead Support
A Powerful Rotation Bot: ProbablyEngine
I use this line but doesn't work
{ "102543", {"modifier.shift", "spell(5217).cooldown < 20", "spell(106951).cooldown < 14", }},
I want to cast the spell A only when shift pressed, spell B cd<20sec and spell C cd<14sec
Perhaps a problem in spell.cooldown use or the LUA unlocker (oLUA) doesn't permit this?
{ "102543", {
"modifier.shift",
"player.spell(5217).cooldown < 20",
"player.spell(106951).cooldown < 14",
}},
Target is best because if you leave a zone (or get to far) it will not port you to it.
So id rather make it look for it being placed. Which it does have an ID for the Unit and a name.
So there is no way to check for it? I would think there be something that would check for totems like this in the same way (PvP wise)
Hey,
I'm working on converting some of my old CRs to the current add-on and format, but I'm having a couple of hiccups and resulting questions. =)
Is there a way to dump the evaluation of a condition or variable directly from the WoW command line? I could do this with the formatting Pre-PE, but now I'm not sure what the equivalent is for PE. Trying to query target.buff(Riptide).duration or player.buff(Water Shield) has not worked for me. My attempts at nesting the conditionals/variables in the various ProbablyEngine.* modules have not been fruitful either. I'm assuming it is a syntax thing where I don't know the structure of how the variables are held. I've been reading through some of the system lua files, but so far I have not sorted this out.
Is there any method for having an OR operator when resolving conditions other than repeating the blocks of code with the alternate conditions or registering custom functions to resolve the comparison?
Are there plans for the rest of the entries on the OP's conditions list to have details added (like the first section) at some point?
Thanks!
Use a function call. I think I posted about that earlier in this thread.
There are no or args, nor will ever be. It is redundant in PE's parser.
If it's wanted enough I can build a full wiki on the addon.
ProbablyEngine - Developer and Lead Support
A Powerful Rotation Bot: ProbablyEngine
Can someone explain how use "atea.enemies" condition? Is it used for calculate how many enemies are in a range?
Example?
it uses the first argument as the basis for the area calculation, that could be player, target, focus, etc..
Is true if there are more than 1 enemy within 10 yards of your current target.Code:"target.area(10).enemies > 1"
double post, because OC.
Thanks a lot. Plain and simple!
Last edited by zeldaboch; 12-01-2014 at 03:50 PM.