-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to fetch job info? #5122
Comments
|
It seems that
|
There is no simple way to do this but it's doable. you can use you can find details here https://github.com/quisquous/cactbot/blob/main/types/data.d.ts#L26 and here https://github.com/quisquous/cactbot/blob/main/resources/party.ts#L17 I'm doing something like this: (It's typescript) {
...
run(data) {
if (data.nameToJobID === undefined) {
data.nameToJobID = Object.fromEntries(data.party.details.map((v) => [v.name, v.job]));
}
...
}
} |
But you can use this script to make it return job name ( or maybe you already have but you don't know ) (not a good idea) |
I greatly appreciate the help. Using the references (in particular
|
and as we are discussing this, I think we could add a method (like |
Is this just |
maybe return a object with job id and job name and role? |
Is there a
job
analogue ofdata.ShortName
? In particular I'm thinking about writing a few role-partner flex triggers, so it'd be extremely helpful if I can define a trigger based on whether conditions like['SMN', 'BLM', 'RDM'].includes(job_from_matches_target)
evaluate totrue
, signaling whether I flex for my caster. Sorry in advance if the answer is somewhere in documentation but I failed to find it.The text was updated successfully, but these errors were encountered: