Skip to content

Commit

Permalink
Update wiki/Modifying-Your-Game-with-Scripts.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron authored Sep 13, 2024
1 parent 22cf30f commit 597e4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/Modifying-Your-Game-with-Scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Scripts rely on Hooks to automatically execute, see [Hooks](Hooks.md) for system
When you do a change to your my-script.js it is sufficient to press F5, which will reload foundry client and your script.
The examples below modify different aspects of the dnd5e system's configuration, to explore the configuration to see what you can modify, press F12, this will open the inspector on the right side of the screen. Click on "Console" at the top, then scroll all the way to the bottom of the page, until you see a prompt ">". There type in `CONFIG.DND5E` then hit Enter.
You will see a "ASCII:" tag you can expand by clicking on the arrow. The information presented are all the variables currently available in the DND5E module. For example you can inspect all the skills available by clicking on "skills".
If there is an error in your my-script.js you can find it in the F12 Console. To do so you need to scroll all the way to the top, and click on the node "Foundry VTT | Before DOMContentLoaded". Here you can find the error with the indication of the line number.
If there is an error in your my-script.js you can find it in the F12 Console. To do so you need to scroll all the way to the top. Here you can find the error with the indication of the line number.
Need Help? Feel free to jump in the Foundry VTT discord's [#dnd5e](https://discord.com/channels/170995199584108546/670336046164213761) or [#macro-polo](https://discord.com/channels/170995199584108546/699750150674972743) channels for assistance from the community.

## Add a new Ability
Expand Down

0 comments on commit 597e4ef

Please sign in to comment.