Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown
in:

Vision/Scopes: Difference between revisions

(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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Stub|Vision}}</noinclude>
<noinclude>{{Stub|Vision}}</noinclude>
To keep optics mounted on rifles useful, use this code to take the weapon's range into account:
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({
Line 8: Line 8:
});
});
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
await game.macros.getName("Thermographic Vision").execute({
  token: token,
  rating: item.system.range.ranges.extreme / 3 - 1,
  cone: 15
});
</syntaxhighlight>
Note that for this application, the Active Effect and Effect Macro need to be on the weapon itself, not the accessory.

Latest revision as of 15:47, 20 March 2024

Icon-warning.svg

This page is a Stub, meant to be transcluded into Vision rather than viewed directly.

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
});

Note that for this application, the Active Effect and Effect Macro need to be on the weapon itself, not the accessory.