Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Object type "card"

Per the&nbsp; <a href="https://wiki.roll20.net/API:Objects#Finding.2FFiltering_Objects" rel="nofollow">https://wiki.roll20.net/API:Objects#Finding.2FFiltering_Objects</a> , and the discussion here&nbsp; <a href="https://app.roll20.net/forum/post/229094/card-names#post-229541" rel="nofollow">https://app.roll20.net/forum/post/229094/card-names#post-229541</a> ... I take it that a new "type" will be a "Card" type? Just want to confirm that the following will be "attributes" of the Card type that will be readable/settable: * Face up/down * "Location" (in deck, in discard pile, on table, player X's hand) &nbsp; .... if it is on the table, I believe we can already get the x/y coordinates from the graphic(?) * "Deck" that it is a "member" of (of course, right now, there isn't a "deck" object type, so, that may need to be "exposed" first for this) Anything else I am missing? &nbsp; Once it is available, should something like : &nbsp; getObj("Card", obj.get('cardid')); &nbsp;... presuming the "obj" is known to be a graphic that is a subtype of "card", work to get the "card" then?
1373338346
Gauss
Forum Champion
Moved to the API forum.&nbsp; - Gauss