Thread: Campaign Folder
-
September 25th, 2019, 18:50 #1
- Join Date
- Jun 2018
- Posts
- 112
Campaign Folder
So... this is probably a stupid question...
I’m trying to get the campaign Folder path for use of resources...
Like
Code:Local campPath = getCampaignFolder(); If campPath .. “/tokens/example.png” ~= nil then Do stuff End
getCampaignFolder() is the function I need to figure out
-
September 26th, 2019, 17:50 #2
I don't think you can "get" the folder...however, check this out...
https://www.fantasygrounds.com/forum...l=1#post182803aka Laendra
(Discord: Laendra#9660)
Ultimate license (FGC/FGU)
Current Timezone : Central (CDT) (GMT -5)
OP: 3317036507 / 2369539
My opinions are my own and represent no entity other than myself
Extension Support Discord: https://discord.gg/gKgC7nGpZK
Extensions = risk to your gaming experience. If you haven't tested out the extensions in your campaign before your gaming session, turn them off. If you don't backup your campaigns regularly, you're doing it wrong.
-
September 26th, 2019, 18:16 #3
- Join Date
- Jun 2018
- Posts
- 112
Thank you... I’ve already read that...
I did figure it out though... you can reference the campaign folder VERY simply by using “campaign/“
So to access the campaign folder tokens it is:
Code:local campaignSharedTokens = “campaign/tokens/shared/example.png”; local campaignHostTokens = “campaign/tokens/shared/example.png”;
Code:local fgSharedTokens = “tokens/shared/example.png”; local fgHostTokens = “tokens/host/example.png”;
I knew it was something SUPER simple I was overlooking... and I hope this helps others out in the future!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks