Crashed twice in a row, a couple days into each game.
Traceback (most recent call last):
File "ahundredheroes.py", line 4610, in <module>
File "ahundredheroes.py", line 1575, in pass_turn
File "ahundredheroes.py", line 793, in hero_decision
File "ahundredheroes.py", line 950, in find_item
File "ahundredheroes.py", line 4088, in log_info
IOError: [Errno 13] Permission denied: '/logfile.txt'
Sorry about that, I left the info logging on in 0.03, but I should have turned it off - or at least made it try and create the file locally rather than in the root. If you are playing the Python version (although probably not, because I should have fixed that for 0.04 ...) you can alter log_info() function to:
def log_info(info):
f = open('logfile.txt', 'a')Otherwise, I'll get an exe up soon where this shouldn't happen.
Also, can one adjust the prices of items? I seem to be buying things and then reselling them at cost. When you gain experience/rep, can the player tell what's worth more than it's listed price? I like the premise but I'm kind of confused as to how you go about making a profit.
The game should automatically put a 20% markup on everything you buy, which normally should put it still within the general acceptable values for most heroes, who are normally willing to pay up to 20% over the perceived value of an item fairly easily, so you should 'generally' automatically do okay just by buying things and not managing prices. You can also go in to the items one-by-one by clicking on your shop, then the item number, then pressing 'v', which is essential if you think you have snagged a bargain.
Low level people know less stuff about stuff, so you should be buying off idiots where you can. Items are also associated with factions, so you can guess that the Fighters guild will know a bit more, generally, about weapons than say the Mages (although there are crossovers for all item types, easier to guess when you know a little bit about each item).
Bigger profits can be made by identifying items and realising when either the town shops (or heroes) are underselling their goods or from getting a lucky bargain at the auction house. When you increase a level, you get to specialise further in one of the four main item types. This enables you to identify when items of that type are higher quality and eventually enchantments.
This might then enable you to get bargains from other people who don't see that quality, but unfortunately only other people who are aligned to the item (by faction and/or level) will also recognise that quality difference, and be willing to pay extra.
In theory, you could go and buy a good quality scroll from the Barbarians (who are low level, and unlikely to recognise most scrolls) at under the base price for that type of scroll. You might be able to then shift that on to say a Summoner at base price, plus the quality modifier, plus 20%. You just have to wait for someone to come along and recognise that quality, because some people might just think you are trying to rip them off.
I think the basic principles work okay, but the game is far from being as fun as it possibly can be, at the minute. There is definitely a bit of balancing due for the player knowledge, as well.
Also, the help screen should auto-pause the game.
Oh yeah, of course. I don't know why I never picked that up ...
Thanks for the feedback, I appreciate it.
E: 004 Executable now in OP, thanks LD, worked a treat! (just had to comment out the bit about 'numpy' which I don't have)