You are here

Custom Radial Spell

4 posts / 0 new
Last post
darinclark2855
Custom Radial Spell

Does anyone know how to add a custom radial spell (similar to shadow conjuration) to the game that would fire from a feat?  I have tried creating one named "warrior's Wraith" that would have three options "Destructive Wraith", "Spiritual Grace" and "Spiritual Resistance" but, during game play off of them in the menu when used are "Destructive Wraith."  There are three menu choices but all are the same.  Direction to a tuorial would be nice as "FeatID" instructions in the Spells.2da do not seem to make any sense?

Thank everyone in advance.

 

  • up
    50%
  • down
    50%
kevL's

I knew saving the old post from MasterChanger on the old Bioboards would come in handy!

  • 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:


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.

 

 

so, uh, good luck?

  • up
    50%
  • down
    50%
darinclark2855

Thanks for your help.  I got this part to work with your advise.  I was making the FeatID a 13-didget number rather then 9-didget.  I was adding the FeatID at the end instead of adding it to the total.  I have this feat canceling the effects of the other before adding the effect of the player's choice.  (So only one effect is being used at a time.)  Is there any way to make it so it could be activated by the player an unlimited number of times?  When I try it allows the player to select an effect but no spell script fires.  When there is a finite-number of uses it fires just fine but when I allow for unlimited uses the feat does not fire properly.

  • up
    50%
  • down
    50%
kevL's

I can think only of a workaround ... that is, i have no clue why that doesn't work properly for subradials. Make all the feats with finite-uses, and call the following function in each spellscript that should be unlimited:

// Increment the remaining uses per day for this creature by one.
// Total number of feats per day can not exceed the maximum.
// - oCreature: creature to modify
// - nFeat: constant FEAT_*
void IncrementRemainingFeatUses(object oCreature, int nFeat);

  • up
    50%
  • down
    50%