summaryrefslogtreecommitdiff
path: root/tgscripts/fvtt-Macro-stance-ac-change.json
blob: c2c833d89077165e6577fc070960582024c65783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  "name": "Stance-AC-Change",
  "type": "script",
  "scope": "global",
  "author": "3r8Uo5wkrb6EqEZc",
  "img": "icons/svg/dice-target.svg",
  "command": "main()\n\nasync function main(){\n\nconst his = game.actors.getName(\"Hisui\");\nvar stance = his.data.data.resources.spendable.custom1.current;\nhis.update({ 'system.attributes.ac.base': 11 + stance });\n}",
  "flags": {
    "exportSource": {
      "world": "valoran",
      "system": "archmage",
      "coreVersion": "10.291",
      "systemVersion": "1.23.1"
    }
  },
  "_stats": {
    "systemId": "archmage",
    "systemVersion": "1.23.1",
    "coreVersion": "10.290",
    "createdTime": 1669976113729,
    "modifiedTime": 1670077474135,
    "lastModifiedBy": "3r8Uo5wkrb6EqEZc"
  }
}