Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old October 30, 2012, 02:28   #1
Malatar
Rookie
 
Join Date: Dec 2009
Posts: 23
Malatar is on a distinguished road
Help with editing p_class

I was trying to make it so my themed rogue Frodo would start with the Phial. So in the p_class.txt I replaced

E:light:Wooden Torch:3:7

with

E:39:4:1:1

which is the tval:sval from phial in object.txt...

But it just gives me a Phial that's empty. It doesn't create light or have the activation ability. What am I doing wrong? (I'm sure the list is frighteningly immense...)
Malatar is offline   Reply With Quote
Old October 30, 2012, 03:15   #2
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,023
Derakon is on a distinguished road
The Phial's tval and sval are actually for a "base" phial object that is not the Phial of Galadriel; it just so happens that the only phial that can ever be generated normally is that Phial. There are also "base" stars and arkenstones that can never be generated, so that the Star of Elendil and the Arkenstone of Thrain both have objects to be based on.

By modifying p_class the way you did, you just forced generation of a normal phial. I suspect that the game is not set up to allow for creation of artifacts in initial player inventories.
Derakon is offline   Reply With Quote
Old October 30, 2012, 03:45   #3
Antoine
Ironband/Quickband Maintainer
 
Join Date: Nov 2007
Posts: 1,009
Antoine is on a distinguished road
Don't do it this way - use debug mode instead. (Perhaps someone can post the exact keystrokes required?)

A.
__________________
Ironband - http://angband.oook.cz/ironband/
Antoine is offline   Reply With Quote
Old October 30, 2012, 04:46   #4
Malatar
Rookie
 
Join Date: Dec 2009
Posts: 23
Malatar is on a distinguished road
Quote:
Originally Posted by Antoine View Post
Don't do it this way - use debug mode instead. (Perhaps someone can post the exact keystrokes required?)

A.
I know how to do it with the debug mode, but I like seeing my poor, expired characters in the Hall of Fame, and debug mode precludes that...
Malatar is offline   Reply With Quote
Old October 30, 2012, 05:12   #5
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,023
Derakon is on a distinguished road
You could make the Phial have max commonness, but that just makes it more likely you'll find it -- and I'm pretty sure you'd have to go into the dungeon to get it since I don't think artifacts can be generated in town.
Derakon is offline   Reply With Quote
Old October 30, 2012, 11:52   #6
fizzix
Prophet
 
Join Date: Aug 2009
Location: Madison, Wisconsin, US
Posts: 3,012
fizzix is on a distinguished road
Quote:
Originally Posted by Derakon View Post
You could make the Phial have max commonness, but that just makes it more likely you'll find it -- and I'm pretty sure you'd have to go into the dungeon to get it since I don't think artifacts can be generated in town.
Probably the easiest way would be to give an early monster a phial drop (look at Morgoth's entry in monster.txt to see how to give an artifact drop to a monster.) You can give it to grip, fang or farmer maggot if you wanted.
fizzix is offline   Reply With Quote
Old October 30, 2012, 15:21   #7
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,023
Derakon is on a distinguished road
Quote:
Originally Posted by fizzix View Post
Probably the easiest way would be to give an early monster a phial drop (look at Morgoth's entry in monster.txt to see how to give an artifact drop to a monster.) You can give it to grip, fang or farmer maggot if you wanted.
Good call. Heck, couldn't you give it to a filthy street urchin? Or would that cause multiple Phials to be generated?
Derakon is offline   Reply With Quote
Old October 30, 2012, 17:07   #8
Knight
Scout
 
Join Date: Oct 2011
Posts: 49
Knight is on a distinguished road
Could you cause the Phial to be generated in the player's house?
Knight is offline   Reply With Quote
Old October 30, 2012, 17:15   #9
kaypy
Swordsman
 
Join Date: May 2009
Posts: 294
kaypy is on a distinguished road
Quote:
Originally Posted by Derakon View Post
Or would that cause multiple Phials to be generated?
Yes, I just tried and wound up with a dozen phials. Hmm. Does that mean that the v4 auto-drop spellbooks can also be duplicates? Maybe a check needs to be added to monster/mon-make.c/mon_create_drop ~line600?

edit:
Ah. V4 has a check added. (which wouldn't actually help for *this* case, but mostly prevents duplicate spellbooks)

Last edited by kaypy; October 30, 2012 at 17:20.
kaypy is offline   Reply With Quote
Old October 30, 2012, 18:01   #10
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,023
Derakon is on a distinguished road
Quote:
Originally Posted by Knight View Post
Could you cause the Phial to be generated in the player's house?
Not without modifying the source code. The house always starts empty.

kaypy: good to know. Oh well! Artifact spellbook drops aren't an issue since they only are dropped by uniques, which you can only kill once.
Derakon 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vanilla Angband editing redrobert Development 27 October 2, 2011 15:05
Editing !CCW kurie Vanilla 2 October 5, 2010 03:34
P_class starting equipment change? Jabberwocky Vanilla 4 June 1, 2009 23:17
question on p_class.txt format Reus Development 2 April 10, 2009 07:15
Editing the monster.txt file Jothar Hillpeople Vanilla 3 September 4, 2008 20:23


All times are GMT +1. The time now is 02:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.