Aller au contenu

Photo

How do I make sub-radial spells? *RESOLVED*


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
I_Raps

I_Raps
  • Members
  • 1 262 messages
I took on Mass Energy Immunity as a startup.

Looking at the Energy Immunity script was no help at all - it adds immunity to all five elements, and clearly is not used.  * I did make a mass version of this spell that works but that's not the point *

I want to be able to choose one of the five elements, like the ordinary spell.

I have five separate mass spells for each of the elements.  Adding them to spells.2da as sub-rad1, sub-rad2, etc. did nothing;  casting the base spell still used the five immunities script.

Comparing it to Greater Shadow Conjuration and the Protection From Alignment spells, I removed the impact script from spells.2da.  This broke the spell - clicking on it did nothing whether you had a target selected or not (though casting it from a scroll did do something - it crashed the program).

***

Can anyone provide any insight on this?  I have several other things in mind as well.

Modifié par I_Raps, 08 mai 2013 - 09:42 .


#2
kevL

kevL
  • Members
  • 4 078 messages
have a look at Energy_Immunity in Spells.2da: row 879

the impact script doesn't matter, it doesn't fire from there. scroll over to SubRadSpell* columns: it has entries 976 to 980. Those refer to other rows in Spells.2da, and you can guess what they are. Those are the impact scripts.

Further, in those subrows (so to speak), scroll over to column Master. This refers back to Energy_Immunity.


that's about it. ( Other than the fact that subradial spells are never actually "known" to any caster ... only the Master is considered "known" -- but then it doesn't actually cast a spell so blur* )

#3
I_Raps

I_Raps
  • Members
  • 1 262 messages
That's what I tried initially. And it didn't work. I've been playing with it for a couple hours, now, and concluded a while ago that it just didn't like my new (sub)spells. It wouldn't even add them to the spellbook for memorization when they were listed masterless.  Was it the icons? the descriptions? bad scripts?

I put in copies of old standby scripts renamed and it still wouldn't work. And then I found the problem.

The new (sub)spells were on new 2da lines, of course, replacing padding. And I just noticed that the padding lines default to 1 on REMOVED.

*DOH*

Modifié par I_Raps, 08 mai 2013 - 09:42 .


#4
I_Raps

I_Raps
  • Members
  • 1 262 messages
By the way, for anyone who chances upon this thread in the future - some of the sub-radial type spells do seem to use their base impact scripts. This was confusing me at first, because some had a script and some didn't. The ones that might use the script are context sensitive to the target type, like Shades and Meteor Swarm.

I just happened to pick a spell (Energy Immunity) with a completely bogus base script to further confuse the issue.

Modifié par I_Raps, 08 mai 2013 - 09:58 .


#5
kevL

kevL
  • Members
  • 4 078 messages
I think that's just because they had the script listed in there at some point (a placeholder of sorts, to keep their heads on straight, an allusion to NwN1, whatver ) Spells.2da is... uhm, like that

#6
MasterChanger

MasterChanger
  • Members
  • 686 messages
Ha! I knew saving the old post from Kaedrin on the old Bioboards would come in handy! Now, I don't remember exactly what Kaedrin means in this post, but I will share what he wrote and hope that helps:

Posted: Sunday, 27 December 2009 10:36PM

Quote:  by Kaedrin

Subradials are a little tricky.

I'll walk you guys through an example that assumes you have 5 subradial options. For the example your feat ID is going to be 3000 and your spells start at 2000.

You need the "master" spell at line 2000. It's going to be the same as your first subradial option. Set the SubRadSpell1 - 5 columns with the other 5 spell options (2001, 2002, 2003, 2004, 2005). For the FeatId column, use 3000.

For the first subradial option, you need to set the "Master" column to 2000. This tells it which spell drives all the subradials. Now for the tricky part: the FeatId column needs to be (65536 * Subradial_Number + FeatId). The Subradial_Number needs to be greater than 5000 and successive (so 5000 for the first option, 5001 for the second, 5002 for the third, 5003 for the fourth, and 5004 for the fifth).

65536 * 5000 (Subradial Option #1) + 3000 (FeatId) = 327683000

You should keep track of the Subradial_Number you use for your next subradial spell (so that you start at 5005 for it's first option).

This will get your subradial showing all choices.

As long as you change the FeatId part of the number you may be able to use the same subradial option (5000-5004) but I haven't really tested that since my subradials tend to be rare.


Modifié par MasterChanger, 08 mai 2013 - 04:42 .


#7
kevL

kevL
  • Members
  • 4 078 messages
thanks MC

I think i knows what those big #s are about now ( kept seeing them and goin' wft )

They *must be* for displaying subradials from Feat hoticons ... a glance through Spells.2da shows the big #s under FeatID like these:

dragon shapes
magical beast shapes
shapers alembic

assassin feats
blackguard feats
etc. etc. ( kPrC class 'spells' )

- and always in the subspells' FeatID column ( which is unnecessary for pure spell-only subradials, per Spells.2da )


/copying to .txt

#8
I_Raps

I_Raps
  • Members
  • 1 262 messages
Ah, that takes me back to the old days of bitwise programming where you had to make every bit of data count for something. You can see other instances in spells.2da - the metamagic and target type entries, for example, where every bit of a single byte is a flag.