-
-
Notifications
You must be signed in to change notification settings - Fork 57
Mass Perception Check
Buzzard Brain edited this page May 28, 2025
·
1 revision
Type: Script
Contributor: Buzzard
Description: Rolls a Blind Perception Check for one or more selected tokens. Modifiers in the Modifier Bucket apply. (Derived from the Mass Fright Check macro.)
// Select One or More Tokens
ChatMessage.create({content: "<b>* Group Perception Roll:</b>", blind: 1});
async function check() {
// Save Modifiers
let modifiers = GURPS.ModifierBucket.modifierStack.modifierList;
// Get List of Selected Tokens
let selected = canvas.tokens.controlled;
// Save Original Actor
const originalActor = GURPS.LastActor;
// Step Through Tokens
for (let token of selected) {
// Select Token
GURPS.SetLastActor(token.actor);
// Perception Check
await GURPS.executeOTF(`[!PER]`);
// Reset Modifiers
for (let mod of modifiers) {
GURPS.ModifierBucket.addModifier(mod.modint, mod.desc);
}
}
// Clear Modifier Bucket
GURPS.ModifierBucket.clear();
//Restore Last Actor
GURPS.SetLastActor(originalActor);
}
check();
- Home
- User Guide
- Getting Started
- Modifiers and the Modifier Bucket
- Combat Tracker
- Foundry Items
-
Cool Macros
- Alternate Form
- Bad Footing Active Effect
- Clear All Active Effects
- Create and Toggle Active Effect
- Fireball Damage
- Invisibility
- Last Targeted Roll demo and margin of success
- Major Healing
- Manual Damage
- Mass Fright Check
- Melee Spell Strike Handler Template
- Missile Spell Handler Template
- Multiple Quick Contests
- Multiple Token Manoeuvre Setting
- Open/Close Helmet Visor
- Quick Combat
- Quick-Draw and Shoot
- Roll Attack and Critical Hit
- Roll Table Dialogue
- Scale Lighting
- Spell Damage
- Toggle Reeling or Exhausted
- Advanced Features
- Useful OTFs
- User Recommended Modules
- Animation Libraries