Choose Your Language

Tuesday 24 May 2011

Fixing The Little Things

Thanks for all the feedback regarding my new area last week. I have taken on board the comments and tried to make improvements where I can. And thanks to everybody who helped me to understand some of the basics behind area design to allow me to even try to build a better area in the first place. I did not spend much more time on this, but decided to look at ensuring transitions remain stable, especially between module changeovers and from areas where having any dead PCs may be an issue.

Respawning The Dead

Unless you are considering programming for multi-player (MP), you may not have considered some of the potential pitfalls that come with the death of PCs - apart from the obvious for the player. If you have altered the way your death system works as well, like I have, then there are even more considerations you need to take into account. The bottom line, I believe I have ironed out all the potential "death" circumstances since I last posted and have employed a system that offers the player a GUI presenting an option to be respawned at the cost of an XP penalty, or to consider a different action, normally to turn around and head back from where they came from. This will normally only be an issue where a player is trying to return to a different module within the campaign and when they carry the corpses of companions or fellow players. Because of the way my system works, trying to do so would lose a lot of vital equipment. There is a similar issue when a player tries to leave an overland map encounter area, which I have dealt with in a similar manner.

Fixing Little Things

1) Visual Effects On Store Items: I recently found out that if you have an item that has a visual effect on it and it is added to a store as a "limitless" item, that when bought, the visual effect does not work. I made a workaround for this problem by replacing the bought item with an identical one upon acquisition.

2) Monster Items Reversion: Another small issue I found was that if you have copied an item to your campaign and kept the ID information the same as the original, then any such item added to a creature at build time will revert back to the original. E.g. If you copy an item to your campaign folder and alter the description to avoid any mention to Faerun and then add the campaign item to a creature, it will instantly revert back to the Faerun descriptive one. NB: Having campaign items with the same name, tag and resref is not normally a problem with respect to any other aspect of the campaign (that I have tested to date anyway). Anyway, I also worked another small piece of code to replace these "incorrect items" with the correct one upon the creature being spawned.

I mention both of these small issues, as I imagine they could be something others may have a problem with and not yet be aware of it. If anybody wants the code that I used to resolve the issues, let me know.

As Big As The Moon

This is just an excuse to post a picture I took of the moon a while ago. However, it is true that my world Althéa works out to be about the size of the moon. Anyway, here is the picture, and you can find a few more here.


Moving Onwards

Fixing the problem with the transitions between modules when the player has a dead PC in their midst was an area of coding I was not going to do for a while yet, as I obviously do not need to worry about it for only one module. However, because it impinged on another area I was working with, it had to take priority. The good news is now that I have that code sorted, I can get on with what I was trying to do in the first place. More on that later in another blog perhaps. What I can say now, however, is that Hoegbo has once again kindly offered his help with some of my work and I will be taking him up on his offer soon, which means area production should benefit greatly.

4 comments:

Amraphael said...

As usual, very interesting reading. I remember stumbling upon the same problem with visual effects and I believe it's the same problem as the one with items in containers and in the inventory. My solution was to recreate the item whenever it was picked up, moved, equipped etc. Ugly but effective. Keep up the spirit. I'll be waiting for this one for as long as it takes.

Lance Botelle (Bard of Althéa) said...

Hi Amraphael,

Funny enough, it was when I bought a lantern (during a test) that I noticed the problem. :) I then tested it with another item (weapon with a visual) and if they were in the store as an unlimited item, the problem returned. Individual items, it seems, are not affected (as tested to date).

It's good to know you have the patience to hang in for the ride. I hope it's worth the wait, but glad you are. :)

Lance.

Shaughn said...

Don't know if you have already dealt with this or not.

With the XP penalty for respawning are you checking that it doesn't strip a level from the player? I have found that this causes a bunch of issues and will break the character. The next time they levelup they have some 200+ skill points to assign and since there is no way to assign that many they are unable to levelup.

Lance Botelle (Bard of Althéa) said...

Hi Shaughn,

Yes, I had thought about this. I adopted a system that does not actually touch the true XP on a PC. What I do instead is track a "debt variable" on the PC in question and deduct that value from any XP awared using an updated XP award function I wrote.

In this way, all that happens is that the PC receives less XP until they have cleared their debt.

Thanks for asking though ... all such queries are greatfully received.

Lance.