< Vision
(Created page with "<noinclude>{{Stub|Vision}}</noinclude> To keep optics mounted on rifles useful, use this code to take the weapon's range into account: <syntaxhighlight lang="JavaScript"> await game.macros.getName("Low-Light Vision").execute({ token: token, rating: item.system.range.ranges.extreme / 3 - 2, cone: 15 }); </syntaxhighlight>") |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude>{{Stub|Vision}}</noinclude> | <noinclude>{{Stub|Vision}}</noinclude> | ||
To keep optics mounted on | To keep optics mounted on weapons useful, use this code to take the weapon's range into account: | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
await game.macros.getName("Low-Light Vision").execute({ | await game.macros.getName("Low-Light Vision").execute({ | ||
token: token, | token: token, | ||
rating: item.system.range.ranges.extreme / 3 - 2, | rating: item.system.range.ranges.extreme / 3 - 2, | ||
cone: 15 | |||
}); | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="JavaScript"> | |||
await game.macros.getName("Thermographic Vision").execute({ | |||
token: token, | |||
rating: item.system.range.ranges.extreme / 3 - 1, | |||
cone: 15 | cone: 15 | ||
}); | }); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 15:45, 20 March 2024
To keep optics mounted on weapons useful, use this code to take the weapon's range into account:
await game.macros.getName("Low-Light Vision").execute({
token: token,
rating: item.system.range.ranges.extreme / 3 - 2,
cone: 15
});
await game.macros.getName("Thermographic Vision").execute({
token: token,
rating: item.system.range.ranges.extreme / 3 - 1,
cone: 15
});
