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

Vision: Difference between revisions

(Created page with "Category:House RuleCategory:Foundry <syntaxhighlight lang="JavaScript"> let rating = origin.system.technology.rating; →‎For most technological sources.: let rating = actor.system.attributes.magic.value; →‎For adept and critter powers.: let rating = 6; →‎You can also set a static value, for natural senses or special cases.: →‎Only use one of above.: token.document.update( { sight: { color: "#004422", range: (rating / 2 + 3) ** 2, /* Low-Light V...")
 
No edit summary
Line 7: Line 7:
/* Only use one of above. */
/* Only use one of above. */


token.document.update(
token.document.update({
{ sight:
sight: {
  { color: "#004422",
color: "#004422",
    range: (rating / 2 + 3) ** 2, /* Low-Light Vision */
    range: (rating / 2 + 3) ** 2, /* Low-Light Vision */
    range: (rating / 2 + 1) ** 2 /* Thermographic Vision */
    range: (rating / 2 + 1) ** 2 /* Thermographic Vision */
    /* Only use one of above. */
    /* Only use one of above. */
    angle: 360
    angle: 360 /* Use 360 for anything head-mounted, use 30 for handheld items (scopes, cameras, etc). */
  }
}
});
});
</syntaxhighlight>
</syntaxhighlight>

Revision as of 19:06, 19 March 2023


let rating = origin.system.technology.rating; /* For most technological sources. */
let rating = actor.system.attributes.magic.value; /* For adept and critter powers. */
let rating = 6; /* You can also set a static value, for natural senses or special cases. */
/* Only use one of above. */

token.document.update({
	sight: {
		color: "#004422",
    	range: (rating / 2 + 3) ** 2, /* Low-Light Vision */
    	range: (rating / 2 + 1) ** 2 /* Thermographic Vision */
    	/* Only use one of above. */
    	angle: 360 /* Use 360 for anything head-mounted, use 30 for handheld items (scopes, cameras, etc). */
	}
});