• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Question - Help on Conditions

Heya All,

I have been trying with limited success to make 2 different conditions for trying to do the Kael group mission.

First condition is to only dps anything that is not named.

Second Condition is to be added to dps area where it will only attack a named when the named is at 59% health or less.

So I envision the DPS section something like:

[DPS]
DPSOn=2
DPSSize=26
DPSSkip=0
DPSInterval=0
DPS1=command:/pet swarm|99|Cond1
DPS2=command:/pet swarm|99|Cond2
DPS3=Spear of Molten Arcronite|98|cond1
DPS4=Spear of Molten Arcronite|98|cond2

[KConditions]

ConOn=1
CondSize=14

Cond1=!${Target.Named} ç===From what I understand the “!” before “${Target.Named}” means NOT target named


Cond2=${Target.Named} && ${Target.PctHPs} > 59 ç====From what I understand the first part of “${Target.Named}” will do a named and the “&&” add and so both parts of the condition must be met and “${Target.PctHPs} > 59” should mean the target must be under 59% health, so only a named under 59% health will be attacked/nuked.

I would appreciate any guidance as to the conditionals
 
Heya All,

I have been trying with limited success to make 2 different conditions for trying to do the Kael group mission.

First condition is to only dps anything that is not named.

Second Condition is to be added to dps area where it will only attack a named when the named is at 59% health or less.

So I envision the DPS section something like:

[DPS]
DPSOn=2
DPSSize=26
DPSSkip=0
DPSInterval=0
DPS1=command:/pet swarm|99|Cond1
DPS2=command:/pet swarm|99|Cond2
DPS3=Spear of Molten Arcronite|98|cond1
DPS4=Spear of Molten Arcronite|98|cond2

[KConditions]

ConOn=1
CondSize=14

Cond1=!${Target.Named} ç===From what I understand the “!” before “${Target.Named}” means NOT target named


Cond2=${Target.Named} && ${Target.PctHPs} > 59 ç====From what I understand the first part of “${Target.Named}” will do a named and the “&&” add and so both parts of the condition must be met and “${Target.PctHPs} > 59” should mean the target must be under 59% health, so only a named under 59% health will be attacked/nuked.

I would appreciate any guidance as to the conditionals
howdy @DanteAlgier,
you could actually accomplish this with 1 condition using an or "||"

Cond1=!${Target.Named} || (${Target.Named} && ${Target.PctHPs} < 59)
if you intended on having the target under 59 health you need the less than symbol "<"
I added the parentheses to the second part after the OR just for clarify on seperating them into those sections

Here is the thing about your pet swarm command - as is written you are going to be spamming that over and over, consider a once check or a different condition --- for a regular pet I would check that it was fighting something with a ${Me.Pet.Combat} or ${Me.PetCombat} - but I'm not sure if there is a TLO for swarm pet (i checked and couldn't find anything quickly)
 
Cond2=${Target.Named} && ${Target.PctHPs} > 59 ç====From what I understand the first part of “${Target.Named}” will do a named and the “&&” add and so both parts of the condition must be met and “${Target.PctHPs} > 59” should mean the target must be under 59% health, so only a named under 59% health will be attacked/nuked.

I would appreciate any guidance as to the conditionals
You got this part reversed. As written here, you're checking that ${Target.PctHPs} is *greater* than 59. You want to use the *less than* sign <
 
Question - Help on Conditions

Users who are viewing this thread

Back
Top
Cart