Skip to content

Reference Usage

muhahahahe edited this page Jul 16, 2024 · 5 revisions

On the Actor

All references for the Actor are stored in its main resources and can be used within the actor's sheet or carried items with the reference: @sheexcel.ReferenceKeyword

For Macros

There are two options; either you already have the actor object or you want to get the actor with its id.

Option 1: on the actors sheet class is a method to get a reference

let value = actor.sheet.getSheexcelValue('ReferenceKeyword');

Option 2: On the game object is a method to get the value with the id of the actor and also returns the actor object itself

let sheexcel = game.sheexcel.getSheexcelValue('ActorID', 'ReferenceKeyword');

//sheexcel.actor <-- your actor object
//sheexcel.value <-- your cell value

Clone this wiki locally