forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oopsyraidsy-example.js
53 lines (49 loc) · 1.96 KB
/
oopsyraidsy-example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Rename this file to `oopsyraidsy.js` then edit to change the oopsyraidsy ui.
// A set of triggers to be ignored. The key is the 'id' of the trigger, and
// the value should be true if the trigger is to be ignored, whereas false
// will have no effect. The trigger ids can be found in the trigger files for
// each fight in the files inside of this directory:
// https://github.com/quisquous/cactbot/tree/main/ui/oopsyraidsy/data/
Options.DisabledTriggers = {
'General Rabbit Medium': true,
'General Early Pull': true,
'Test Bootshine': true,
};
// A set of nicknames to use for players. By default, first names are used to
// make the mistake lines shorter. If a player's name appears in this map,
// their nickname will be used instead of their first name.
Options.PlayerNicks = {
'Darkest Edgelord': 'Mary',
'Captain Jimmy': 'Jimmy',
'Pipira Pira': '🐟',
};
// A set of ability ids (in hex) to other ability names. This is primarily
// used for abillity names that ACT doesn't know yet (e.g. Unknown_26B4).
//
// For example: Rename wings of salvation to White Swirly because that's what
// everybody in your raid group calls it.
Options.AbilityIdNameMap['26CA'] = 'White Swirly';
// An array of user-defined triggers, in the format defined in the readme:
// https://github.com/quisquous/cactbot/tree/main/docs/OopsyraidsyGuide.md
//
// Here's an example trigger to show a line in the mistake log when
// you crit adlo yourself in Summerford Farms.
Options.Triggers = [
{
zoneId: ZoneId.MiddleLaNoscea,
triggers: [
{
id: 'Test Self Crit Adlo',
healRegex: 'B9', // Adloquium ability id
condition: function(e, data, matches) {
return e.targetName === data.me && matches.flags === '10004';
},
mistake: function(e, data) {
const text = e.abilityName + ': ' + e.damageStr;
return { type: 'good', blame: e.targetName, text: text };
},
},
],
},
// ...more triggers here...
];