Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old August 4, 2014, 01:04   #1
Ingwe Ingweron
Veteran
 
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 1,902
Ingwe Ingweron is on a distinguished road
Hybrid Spellcaster?

I've been trying to create a hybrid spellcaster, one that can cast some mage spells and some priest spells. Basically, trying to make a ranger that has some elements of mage abilities along with some of the medium healing abilities of priests.

Having no coding abilities, nonetheless I've been playing around with the edit files. I've pretty much figured out how to tweak race and class values in the "p_class" and "p_race" edit files and to turn on or off spell availability in the "spell" edit file. However, I haven't been able to cause both priest and mage spells to be available. I thought adding an "M:" line for the priest books and the "B: lines for selected priest spells (or alternatively all the lines for priest spells, but turning off all the ones inapplicable) and tweaking the mana costs and spell levels might work, but alas to no avail. Apparently, the last "M:" line is the one chosen and the other ignored.

Has anyone successfully tried this? Any helpful suggestions?
Ingwe Ingweron is offline   Reply With Quote
Old August 4, 2014, 05:59   #2
Carnivean
Knight
 
Join Date: Sep 2013
Posts: 527
Carnivean is on a distinguished road
Changes are made in Spell.txt

Spell.txt indicates that tval 90 is for mages and 91 for priests, then you have to indicate what book and slot the spell goes into (offset by -1, so magic missile is book 0, slot 0)

You also have to change the N line to put the spell number in the right section (first half mage spells, second half priest).

Easiest way to do it is to hash out the spell you are replacing, copy in the spell you are adding just below it, then copy the N:XX bit and the entire I:x:x:x line from the replaced spell into the added spell.

Edit: OK, more is required to get that to work. I just cast Mana Storm, but got detect evil results.
Carnivean is offline   Reply With Quote
Old August 4, 2014, 09:24   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 8,239
Donated: $60
Nick will become famous soon enough
This is not possible in current V without changing code and recompiling.

It will be possible in restructured V (ETA late this year or early next year, I hope) just by editing p_class.txt.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old August 4, 2014, 13:22   #4
Ingwe Ingweron
Veteran
 
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 1,902
Ingwe Ingweron is on a distinguished road
Quote:
Originally Posted by Nick View Post
This is not possible in current V without changing code and recompiling.

It will be possible in restructured V (ETA late this year or early next year, I hope) just by editing p_class.txt.
Thanks, Nick. You are the man!
Ingwe Ingweron is offline   Reply With Quote
Old August 5, 2014, 13:00   #5
Zireael
Adept
 
Join Date: Jul 2011
Posts: 204
Zireael is on a distinguished road
That restructure is finally coming along?
Zireael is offline   Reply With Quote
Old August 5, 2014, 14:11   #6
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 8,239
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Zireael View Post
That restructure is finally coming along?
I'm doing almost nothing else

You remind me that I haven't done an update to the forum for about four months - I'll do that soon.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old August 5, 2014, 20:59   #7
MattB
Veteran
 
Join Date: Mar 2013
Location: Berkshire, UK
Posts: 1,153
MattB is on a distinguished road
Because I'm getting quite giddy with excitement at the prospect of a newly refactored Vanilla, I have to know... Have you given any thought to a version number yet?
MattB is offline   Reply With Quote
Old August 5, 2014, 21:20   #8
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,023
Derakon is on a distinguished road
Quote:
Originally Posted by MattB View Post
Because I'm getting quite giddy with excitement at the prospect of a newly refactored Vanilla, I have to know... Have you given any thought to a version number yet?
I nominate we start over from 2.4 again, except this time we pick a different amphibian. How about "2.4 axolotl-knows"?
Derakon is offline   Reply With Quote
Old August 5, 2014, 21:52   #9
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 8,239
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Derakon View Post
I nominate we start over from 2.4 again, except this time we pick a different amphibian. How about "2.4 axolotl-knows"?
Don't joke - there are moves afoot to have the bugfix version of 3.5 called 3.5.newt-knows.

I'm still thinking creatively about version number post restructure. Is anyone familiar with the p-adics?
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old August 6, 2014, 00:11   #10
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,372
AnonymousHero is on a distinguished road
Quote:
Originally Posted by Nick View Post
Don't joke - there are moves afoot to have the bugfix version of 3.5 called 3.5.newt-knows.

I'm still thinking creatively about version number post restructure. Is anyone familiar with the p-adics?
That's unambitious, I feel. How about a surreal number instead? That way there'll always be room for a countably infinite number of available versions in between any given major version.

EDIT: Or is it uncountably infinite number of available versions? Math is hard -- my brain hurts.

Last edited by AnonymousHero; August 6, 2014 at 00:17.
AnonymousHero 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 14:04.


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