Almand
December 8th, 2020, 16:31
After looking through the documentation of maps/images and the CoreRPG ruleset it appears that it is not possible to access the elements of an image, such as layers, LOS items (walls, doors, windows, ...) and elements drawn by players from Lua code. The only elements accessible from code seem to be tokens.
I am trying to implement a teleport/staircase/trap door/... system, where you'd draw rectangles on a specific layer, and link them to a target location, and players entering any of the linked rectangles would have their tokens automatically be moved to the linked element, and their viewpoint would be adjusted accordingly.
In Roll20, which I was using before Fantasy Grounds, this was quite simple to do, since scripts have access to every single element of a map. However, in Fantasy Grounds it seems the composition of images is completely opaque to scripts and only tokens placed on them can be accessed. This would make my idea of a teleportation system impossible, at the moment.
Am I missing something, or is there really no way to access the elements of an image/map?
I am trying to implement a teleport/staircase/trap door/... system, where you'd draw rectangles on a specific layer, and link them to a target location, and players entering any of the linked rectangles would have their tokens automatically be moved to the linked element, and their viewpoint would be adjusted accordingly.
In Roll20, which I was using before Fantasy Grounds, this was quite simple to do, since scripts have access to every single element of a map. However, in Fantasy Grounds it seems the composition of images is completely opaque to scripts and only tokens placed on them can be accessed. This would make my idea of a teleportation system impossible, at the moment.
Am I missing something, or is there really no way to access the elements of an image/map?