I made some really good progress today, finis...
January 07, 2005 by Adam in NWN2
I made some really good progress today, finishing up creating the last of the card items. I also put in the first functional steps of switching from a variable-based to an item-based card system. To test it I went up to the game shop owner, asked for a new deck, and watched in amazement as the cards flew in. After looking more closely, however, my heart skipped a beat as I realized that it had only added 35 cards to the deck instead of 40. It turns out the maximum capacity of any container is 35 slots.
Fortunately after my panic passed, I realized that there was a simple fix. I made the cards stackable, which nicely gets around the issue. It actually works more nicely, automatically organizing identical cards together. The only limitation I'd have now is if someone wanted to have over 35 different cards, something nearly impossible if you have any reasonable number of magic generators.
Tomorrow I'll be back to adding additional functions. I'll need to remove cards for ante and selling. I'll need another function that sets the deck variables before talking to the store owner or starting a game. After that, I'd like to switch to a dialog-based method of selecting which deck you want.
The only downside to all these changes is the hak pack size has grown a bit. I think the total size of the .zip file will be less than 2 MB, which is more than before but still pretty small. I think the improved inventory makes up for it. All the differently named decks look different too. I might add a few more since they look so nice.
I'm not completely ignoring my Dragon Age project either. The ideas continue to flow and I scribble them down in a notebook. Most are for the second module, though I need to start solidifying the first one before I get too carried away.
|