Thread: Extenson change tokens
-
June 24th, 2022, 13:04 #1
- Join Date
- Sep 2019
- Posts
- 10
Extenson change tokens
Hi all!
I have some characters in my party that has "change shape" abilities, and I was searching for some extension that changes the character's token when the change shape ability is used.
I didn't found anything, and I was trying to develop my own extension, but I don't found any documentation about the code that I should override. There is some documentation repository that I could use?
Thanks a lot!
-
June 24th, 2022, 13:35 #2
You don't say for what ruleset. This one handles Druid Wildshape in 5e; so it may give you some ideas https://www.fantasygrounds.com/forum...hapes-(for-5E)
If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php
-
June 24th, 2022, 15:26 #3
-
June 26th, 2022, 11:46 #4
- Join Date
- Sep 2019
- Posts
- 10
Thanks a lot! I'm working on Pathfinder e2 and Pathfinder 1 rulesets.
-
June 26th, 2022, 15:07 #5
Check those sub-forums. Pretty sure their is a token change extension for those rulesets somewhere, in know there are an handful or so for 5E. Typical names are things like 'polymorph', 'wildshape', 'druid'.
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
April 29th, 2023, 13:21 #6
- Join Date
- Sep 2019
- Posts
- 10
Hi all!
I'm still working on it with the chatgpt help (There is no real helpful, but whatever XD)
I have the next code:
function changeTokenTemporarily(nodeCTEntry, tokenType, nodeEffect)
local miParent = DB.getParent(nodeCTEntry)
local sCurrentToken = DB.getValue(miParent, "token", "")
Debug.console("Actual Token" .. sCurrentToken)
local sTokenName = "basic"
if (tokenType==1)
then
sTokenName = "basicHumanoid"
else
if (tokenType==2)
then
--sTokenName = "basicHybrid"
sTokenName = "tokens/B.png@Agents of Edgewatch 1 - Devil at the Dreaming Palace"
else
--sTokenName = "basicAnimal"
sTokenName = "tokens/A.png@Agents of Edgewatch 1 - Devil at the Dreaming Palace"
end
end
Debug.console("Token " .. sTokenName)
DB.setValue(miParent, "token", "token", sTokenName)
}
And it changes the token, but only in the Combat Tracker, the token in the map still being the older.
Someone could help me?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks