Cards, Forms and Stationery


How do I make a pile of stationery? I tried using a Stationery object on my card and set the autoCopy mask, but it doesn't draw a nice little pile for me like the Stationery drawer does.


If you have an image associated with a piece of stationery, Magic Cap will just draw that image without the stacking. The reason for this is that the image may not necessarily look good stacked. However, if the image field of the stationery object is nilObject, CardIcon() will be called on the card associated with the Stationery object. In this case, Stationery_Draw draws several of these on top of each other to get the stacked look.


How can I extract data from a card using form items without using the displaying the form on the screen?


You can use BorrowForm() to temporarily attach a form to a card, causing the extra data from the card to be put into the form items. After you're done using the form, you need to restore the previous owner with ReturnForm(). You can use these operations even without making the card visible on screen.

If you're doing this from an actor other than the user actor and you're running Magic Cap 1.5, you should to use BorrowCopyOfForm().

The CardDataExtracter sample demonstrates how to iterate through all the cards in the stack, gobbling the data from each one.