G
Guest
Guest
Archived from groups: rec.games.roguelike.development (More info?)
In Quest For Pants, each dungeon level has random items strewn
throughout it. As it is now, the items are picked completely randomly
which means, in practice, that you end up with really good armour very
early on. As a result, if you can survive the first hundred turns,
you're invincable for the rest of the game.
This is Not Good.
I want to weight the object picking algorithm so that quality of the
stuff you find increases in proportion to the dungeon level you're
on. I don't want it to be _impossible_ to find a good item on the top
level, only unlikely.
So far, I've added a "cost" attribute to each object to determine its
value. I'm now in the process of coding up a routine to actually pick
items for a level, but I've gotten bogged down.
My code is ugly and kludgy and I have a feeling that there's a simple
and elegant way to do this that I'm not seeing. Anyone have any ideas
what it may be?
--Chris
--
Chris Reuter http://www.blit.ca
"Feel free, as long as you only quote it in long trotskyite diatribes about
the evils of objectivism."
--Charlie Stross, granting permission to be quoted in a .sig
In Quest For Pants, each dungeon level has random items strewn
throughout it. As it is now, the items are picked completely randomly
which means, in practice, that you end up with really good armour very
early on. As a result, if you can survive the first hundred turns,
you're invincable for the rest of the game.
This is Not Good.
I want to weight the object picking algorithm so that quality of the
stuff you find increases in proportion to the dungeon level you're
on. I don't want it to be _impossible_ to find a good item on the top
level, only unlikely.
So far, I've added a "cost" attribute to each object to determine its
value. I'm now in the process of coding up a routine to actually pick
items for a level, but I've gotten bogged down.
My code is ugly and kludgy and I have a feeling that there's a simple
and elegant way to do this that I'm not seeing. Anyone have any ideas
what it may be?
--Chris
--
Chris Reuter http://www.blit.ca
"Feel free, as long as you only quote it in long trotskyite diatribes about
the evils of objectivism."
--Charlie Stross, granting permission to be quoted in a .sig