Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old May 7, 2021, 20:56   #1
Rikter
Rookie
 
Join Date: Jul 2014
Posts: 14
Rikter is on a distinguished road
Changing what is affected by Slays and other assorted questions.

I've been messing around with Angband's data files and am wondering if it's possible to change what is affected by specific Slaying brands and rename said brands to their new proper targets. Is this something I can do just from the Data Files or would it need to be changed in the code itself.

Also regarding artifact generation. The base type of an object needs to be able to generate to even have a chance at the artifact right?
Rikter is offline   Reply With Quote
Old May 7, 2021, 22:44   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,234
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Quote:
Originally Posted by Rikter View Post
I've been messing around with Angband's data files and am wondering if it's possible to change what is affected by specific Slaying brands and rename said brands to their new proper targets. Is this something I can do just from the Data Files or would it need to be changed in the code itself.
This is possible up to a point. You can change which monsters are affected by the existing slays by adding or removing the race flag (defined in the race-flag in slay.txt) for that slay from the monster records in monster.txt (and/or monster_base.txt). Slays can also be defined directly against a monster base - although none currently are - by using a base: line in slay.txt, so you could make your own slay from this.

Quote:
Originally Posted by Rikter View Post
Also regarding artifact generation. The base type of an object needs to be able to generate to even have a chance at the artifact right?
Yes, for artifacts whose base type is in object.txt. There are also the "special artifacts", like the Phial for example, which need a different generation process because they are the only objects with their base type.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick 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
Another bug: slays revealed too soon ekolis v4 2 March 1, 2012 23:16
Artifacts are now affected by *destruction* Fendell Orcbane Vanilla 11 December 21, 2011 20:42
Potion of nimbleness affected Cammithrim ChodTheWacko Vanilla 3 April 28, 2010 19:39
Branded weapons and slays Donald Jonker Vanilla 2 October 22, 2008 23:54
Yet another high elf mage assorted questions g. rodrigues Vanilla 1 March 6, 2008 22:08


All times are GMT +1. The time now is 10:52.


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