Thread: Acceptdrop
-
February 10th, 2020, 17:12 #1
- Join Date
- Dec 2015
- Location
- Boston, MA
- Posts
- 167
Acceptdrop
Hello,
I have a windowlist that I set up:
Code:<acceptdrop> <class>item</class> <field>*</field> </acceptdrop>
-
February 10th, 2020, 17:27 #2
I've not used this option but there is this in the 5E ruleset.
Code:<acceptdrop> <type>dice</type> <type>number</type> <type>attack</type> <type>damage</type> <type>heal</type> <type>init</type> <type>save</type> <type>check</type> <type>recovery</type> </acceptdrop>
---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
February 10th, 2020, 17:38 #3
- Join Date
- Dec 2015
- Location
- Boston, MA
- Posts
- 167
That didn't work. I think those are for drag and drop to the chat window not the windowlist. Then again, I could be wrong. Either way, that didn't seem to work for me.
-
February 10th, 2020, 17:43 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,412
@statik37,
There's no way to dynamically filter based on what is in the data; only which classes are accepted and which fields to copy. If you want something more complex, you'll need to remove acceptdrop, and write your own onDrop event function.
@celestian,
It's documented in the windowlist tags here:
https://www.fantasygrounds.com/refdoc/windowlist.xcp
Regards,
JPG
-
February 10th, 2020, 17:58 #5
I was mostly referring to something like <type> which isn't documented as far as I could tell. I've a good idea what it does but would be nice to know for sure as well as if there are others not listed.
Currently I think ALL of my onDrops are filtered based on custom code like you mentioned which is why I was interested in this.---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
February 10th, 2020, 18:14 #6
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,412
@celestian,
Those are actually part of a script used for the ModifierStack. It's not part of the CoreAPI.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks