We have a need for a very strange custom CCK Field Type.

A little context:

In this particular implementation, we're managing player statistics for a game, which updates the Drupal db via HTTP. Each set of statistics is a content node with a user ref to the user's account. One of the game's features is the ability to accrue points which can then be "spent" on certain "skills." (The point gains are updated by the game via HTTP as well). At any time, the player can edit their own statistics node to spend the points they've accrued.

So we need a compound field type that works in the following manner:

* One field serves to hold the accrued point value.
* For each item on a list (produced by Views or entered manually by the admin), a field holds the number of points that have been assigned to that item.
* A plus button next to each item on the list allows the user editing the node to add points to that item
* Each time a point is added to the item, the accrued point value decreases by one.

We want this as a customizable field type so that we can implement it as needed. This requires somebody with experience creating CCK field types and implementing AJAX (for the live point feedback on + click).

If you'd like clarification on this, please feel free to post. We need a workable quote somewhat soon-ish.

Comments

jgpippin’s picture

I will add that if you have an alternate suggestion for how to provide an interface by which a player can spend their points, I'm happy to hear it.

And to preempt the obvious question of why these statistics sets are content nodes and not part of a user's profile, I should clear up that there will be multiple sets of statistics for each player - one for each separate game they participate in (the site will host multiple RPG campaigns/environments using the same system).