RPTools.net

Discussion and Support

Skip to content

It is currently Mon May 20, 2013 3:22 am 






Reply to topic  [ 4 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Cave Troll
 
Joined: Thu Aug 27, 2009 11:31 pm
Posts: 25
 Post subject: Deck Library V2
PostPosted: Tue Sep 14, 2010 2:19 pm 
Hey, I'm posting an update of the deck library I started around a year ago. I've made a bunch of improvements and fixes. If you're looking to create a deck of cards in a campaign, where you can shuffle, deal new cards as tokens, etc., I think this will work (I use this to play games like descent online). All the data is stored either on lib: token or in a table, so you can add this to an existing campaign with only a couple of tokens and a new table. Check the attached campaign for an example.

To create a custom deck, you just need to create a table containing the card images as described in the README macro, and make a new Lib: token with the same name as the table. Be sure to include, but do not change, the Lib:Deck Functions macro.

I've been looking for bugs to squash but haven't found any. Please let me know if you do :)


File comment: Playing cards example (b70)
deck_lib b70.cmpgn [691.24 KiB]
Downloaded 39 times
File comment: Playing cards example (b74)
deck_lib b.cmpgn [691.52 KiB]
Downloaded 49 times


Last edited by hallgrim on Tue Sep 14, 2010 3:14 pm, edited 3 times in total.
Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5303
Location: Bay Area
 Post subject: Re: Deck Library V2
PostPosted: Tue Sep 14, 2010 3:01 pm 
I'm guessing this cmpgn file is for b73 or greater? Because it doesn't load in b70.

_________________
Downloads:


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Thu Aug 27, 2009 11:31 pm
Posts: 25
 Post subject: Re: Deck Library V2
PostPosted: Tue Sep 14, 2010 3:12 pm 
aliasmask wrote:
I'm guessing this cmpgn file is for b73 or greater? Because it doesn't load in b70.


Yeah at one point I needed a bugfix in b71 so I'm using b74 atm. I attached a b70 example.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5303
Location: Bay Area
 Post subject: Re: Deck Library V2
PostPosted: Tue Sep 14, 2010 4:17 pm 
Very cool. I have my own card images and this makes it really easy to adapt.

One thing I may do is make all the images states instead of (or in addition to) putting them in a table. Not as portable, but it will allow me to assign ownership to the card and only the owner can view the card. Each card has some text associated with it as well, so I would have to build a macro to read card text. I think I remember another deck library where cards-in-hand was accomplished using a popup frame instead. I would also put a green halo on the card to show that it's being viewed by the player so the player and the opponent(s) would know it's being viewed.

I wish we could import a "states only" file where it didn't overwrite everything else... just import/export the states. Then it would be portable.

_________________
Downloads:


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 4 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 2 guests





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman