Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old June 11, 2007, 21:32   #21
will_asher
DaJAngband Maintainer
 
will_asher's Avatar
 
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 927
Donated: $10
will_asher is on a distinguished road
one more question about the edit .txt files

I'm putting in a few new races, but I can't figure out how to correctly edit the p_hist file. Can someone tell me how?
will_asher is offline   Reply With Quote
Old June 12, 2007, 01:35   #22
aeneas
Adept
 
Join Date: Jun 2007
Location: The place of virtuous unbelievers
Posts: 158
aeneas is on a distinguished road
Quote:
Originally Posted by will_asher View Post
I wouldn't think these flags would make much balance difference unless you're a mage or ranger with the bolt spells, because people don't usually carry around wands or rods of fire and cold. Occationally I do, but never more than one stack, so I'd either only have fire or cold (or elec or acid) but never more than one of those.

With some monsters it would just make good sense that they be damaged extra by certain elements, like ice elementals and zombies (but definetly not all undead) by fire, fire elemenals by cold, iron golems by acid, and the killer trees that I'm adding should be damaged extra by fire and lightning.

Will
An awful lot of things about Angband don't make sense. It's really a very abstract game, and if you made it make sense I'm not sure you'd still have a *band (it seems a bit odd that a sleeping orc can block a passage that is wide enough fo a Wyrm to pass). When good sense and game balance come into conflict, game balance should win out, IMHO.

It wouldn't make much difference to the balance of V if you made the monsters you list vulnerable to certain elements (your trees I don't know about) as none of them are very significant adversaries. But you have to be careful with things like this. Elemental Wyrms seem like a good candidate for vulnerabilities, or at least a sensible one, but they are actually already way too easy to kill (even more so in NPP with attenuation and easily available branded ammo) given the quality of their drop. One very effective algorithm for winning V reasonably quickly is to drop to Wyrm territory as fast as you dare and just hunt Wyrms. The main danger is the _other_ nasty stuff at those depths- the Wyrms themselves are pushovers even if you're quite far out of depth, as long as you have a few requisites.

It's also worth considering that branded ammo is already one of the most unbalanced things in V (the ridiculousness of high level rangers is just a side effect of this- as an aside, I don't think that rangers are nearly as nerfed in NPP as was intended, at least not with store services on). Any creature that is extra vulnerable to branded ammo is going to go down very quickly to anyone with a decent shooter and a good supply of that ammo.
aeneas is offline   Reply With Quote
Old June 12, 2007, 03:38   #23
Big Al
Swordsman
 
Big Al's Avatar
 
Join Date: Apr 2007
Location: Calgary
Age: 29
Posts: 327
Donated: $18.32
Big Al is on a distinguished road
Quote:
Originally Posted by will_asher View Post
I'm putting in a few new races, but I can't figure out how to correctly edit the p_hist file. Can someone tell me how?
As far as I can figure out, here are the steps to add a new race:

1. Edit limits.txt, and change the "M:P:xx" line to increase the number of races.

2. Edit p_race.txt and add the new race info. (I'm assuming you know how to do this).

3. Edit p_hist.txt file: Each line is of this form:
Code:
N:1:2:10:25
D:You are the illegitimate and unacknowledged child
The space in order are: the entry index: the entry index to go to next: the relative rarity of the entry: the bonus to social class.


When angband is writing the player histories:
a. It looks at the first entry of the "I:" line in p_race.txt to find which entry in p_hist.txt to start at. (eg. for humans, it starts at entry 1, elves at entry 5, etc.)

b. It finds the appropriate entry in p_hist.txt and randomly picks one of the choices (eg. for humans it picks one of "You are the illegitimate and unacknowledged child", "You are one of several children" etc.). It then looks at the second space in the "N:" line and goes to that entry, picks one of the choices there, goes to the next entry, etc, until it tries to go to entry zero, which indicates for it to stop.

The way it picks with message to display is: roll a random number between 1 and 100, then compare it to the third space in each of the "N:" line for that entry. Eg. for the first entry, the third spaces are 10, 20, 95 and 100. So, if the rolled number is between 1 and 10, you get "illegitimate and unacknowledged child", 11 and 20 you get "illegitimate but acknowledged child", 21 and 95, you get "You are one of several children", or from 96 to 100 you get "You are the first child".

c. It adds the fourth space in the entry you picked to your social class, then subtracts fifty. (eg. for entry 1, you either add -25, -15, -5 or 0 to your social class (for "illegitimate and unacknowledged", "illegitimate but acknowledged", "one of several children" or "first child of" respectively.) It does this for all the parts of the sentence to come up with your final social class, which affects your starting gold. The social class is also randomly varied by up to 3 points and capped between 1 and 100.

4. edit cost_adj.txt for the new races.

(5. possibly edit shop_own.txt to include the new races as shopkeepers.)

p_hist.txt appears to be just about the only edit file that doesn't have an explanation line in the header comments explaining what all the number mean. Hope that helps.
__________________
Come play Metroplexity!
Un, V MX H- D c-- f- PV s- d+ P++ M+
c-- S I++ So+ B+ ac- !GHB SQ RQ+ V+
Big Al is offline   Reply With Quote
Old June 12, 2007, 04:48   #24
will_asher
DaJAngband Maintainer
 
will_asher's Avatar
 
Join Date: Apr 2007
Location: San Antonio, TX
Posts: 927
Donated: $10
will_asher is on a distinguished road
Thanks, that helps

Quote:
Originally Posted by Big Al View Post
p_hist.txt appears to be just about the only edit file that doesn't have an explanation line in the header comments explaining what all the numbers mean.
..that's why I couldn't figure it out
will_asher is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.