Need help making a counter using attr... Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Need help making a counter using attributes « Previous Next »

Author Message
John Henckel (Jdhenckel)
Posted on Saturday, November 24, 2001 - 4:34 pm:   

I am trying to implement a 4-bit counter using piece attributes. I've seen pduff's code which uses flags. The reason I want to use attributes is that I want each peice to keep it's own counter, and I want the counter to persist over several add-partial moves.

The difficulty I am having is that the verify and set-attribute are not well documented. It appears to me with some playing that the verify tests the attributes of the peice at the current position BEFORE the move, while the set-attribute changes the attributes of the peice at the current position AFTER the move. Is this correct?

Has anyone implemented such a counter?

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: