Skip to content

Commit

Permalink
raidboss/oopsy: support jobs instead of names in triggers (#5916)
Browse files Browse the repository at this point in the history
You can now also write `${player.job}`, `${player.role}`,
`${player.nick}`, or `${player.name}` in triggers now as well if you
want to override output strings individually.

If the property isn't there (somebody not in your party, bugs, typos),
it will default to nickname.

Fixes #3000.
  • Loading branch information
quisquous authored Nov 10, 2023
1 parent 53718f3 commit 2d1f7d1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ui/oopsyraidsy/oopsyraidsy_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,22 @@ const templateOptions: OptionsTemplate = {
debugOnly: true,
default: false,
},
{
id: 'DefaultPlayerLabel',
name: {
en: 'Default Player Label',
},
type: 'select',
options: {
en: {
'Nickname (Tini)': 'nick',
'Role (Tank)': 'role',
'Job (WAR)': 'job',
'Full Name (Tini Poutini)': 'name',
},
},
default: 'nick',
},
{
id: 'NumLiveListItemsInCombat',
name: {
Expand Down
22 changes: 22 additions & 0 deletions ui/raidboss/raidboss_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2146,6 +2146,28 @@ const templateOptions: OptionsTemplate = {
type: 'checkbox',
default: false,
},
{
id: 'DefaultPlayerLabel',
comment: {
en: `The default way to specify players in trigger output. By default, it will use
nicknames/first names. This can be used to print out player jobs instead.
If you are not in a party or players are out of a party (or there are bugs),
it will default to the player's nickname if there's no other information.`,
},
name: {
en: 'Default Player Label',
},
type: 'select',
options: {
en: {
'Nickname (Tini)': 'nick',
'Role (Tank)': 'role',
'Job (WAR)': 'job',
'Full Name (Tini Poutini)': 'name',
},
},
default: 'nick',
},
{
id: 'ShowTimerBarsAtSeconds',
name: {
Expand Down

0 comments on commit 2d1f7d1

Please sign in to comment.