#379

New

A way to "link" cards to each others on the table

Reported by Divided By zer0 on OCTGN · 04/05/2011 02:03:26

Assigned to:
jods
Priority:
Normal
Status:
New
Category:
None
Version:
0.9.*
Issue type:
Feature

I like the function that draws arrows on the table and given that this is possible, I’d like to suggest something similar but much more useful in the right hands. I would like to have a similar “drawing” function that stays persistent on the table and basically links two cards with each other.

The way this could be implemented would be to simply create a global dictionary which stories these connections as they are created in the game with the starting card (of the mouse draw) as the key and the end card as the value. Then anyone polling the say shared.links[“cardA”] will get the corresponding value: “cardB”.

The link could be visually displayed with a thin semi-transparent dotted line between the cards to avoid clutter.

This function will be useful for card games which simulate locations and movement, where for example you will be able to trach which character-cards are on which location-cards by having the character-card as the key, and the location-card as the value.

Such a shared dictionary should of course be mofifyable by each player’s python scripts if possible.

Attachments

No attachment has been uploaded, yet.


Loading comments...