My idea on how to enchant staves

Post » Tue May 17, 2011 1:52 pm

First off here is my problem, I want to play a character that has to rely on magical staves to do most of his/her damage. This character is going to be born under the sign of the Atronach and is not going to have any combat major skills (blades, ranged, etc.).

I'll be using a great mod I just found called "Enchanting Skill" by opaj, but the problem is the game doesn't allow you to enchant staves correctly. I tried to see if i could enchant a stave simply by adding the unfinished staff (from the mages guild quest) to my character (turned off "quest item" for the item) and then tried to enchant it with fire. It added an "on strike" enchant that does nothing but add the fire animation to the staff and set the creature/npc that i was close enough to on fire. Which was kind of strange the npc was on fire yet no damage was done and the npc didn't become hostile.

Here is my idea on how to get around this problem. A quick note: I'm a beginer when i comes to scripting.

Is it possible to attach an onEquip script to the "unfinished staff" that checks to see what kind of enchant is on it (which is going to be elemental damage on touch) and then it would remove that staff and replace it with the proper "damage on cast" staff with the same name,element, and damage. Can a script "scan" the staffs enchanting data and then use those variables to create a new staff?

One problem i see happening here is If i attach the script to the "unfinished staff" will that script stay attached to the item after it is enchanted? Once an item is enchanted it's id is renamed to what ever you make it on the enchanting screen.

I'm pretty sure I jumped in the deep end here, but I'm going to post this anyway and see if somebody can point me in the right direction.
User avatar
Isaiah Burdeau
 
Posts: 3431
Joined: Mon Nov 26, 2007 9:58 am

Post » Tue May 17, 2011 3:52 am

I found some commands on the cs wiki setEnchantment, getEnchantment, and removeEnchantment. It's not clear to me how these commands are implemented.

EDIT: I think I get it now, these commands retrieve enchantments that are all ready defined in the CS. Then the only way to do what I want is to create a fire, frost, etc enchant with every possible damage amount (eg. 1 damage for 1 sec through 999 damage for 999sec), so that's not going to happen.
User avatar
Isabell Hoffmann
 
Posts: 3463
Joined: Wed Apr 18, 2007 11:34 pm

Post » Tue May 17, 2011 11:25 am

You might want to check out Supreme Magicka. It allows you to enchant staffs (staves?). It adds unenchanted staffs to Rindir's Staffs that you can buy. Then you can enchant them yourself. I'd have a look at the quests and scripts in SM to see how they did it. I believe it's an optional file that's packaged with the mod, so you wouldn't have to slog through the whole thing.
User avatar
Miranda Taylor
 
Posts: 3406
Joined: Sat Feb 24, 2007 3:39 pm

Post » Tue May 17, 2011 8:54 am

AH, thanks man, that is exactly what I wanted. I thought i did a thorough google search for enchantable staves but i guess i didn't.
User avatar
Marnesia Steele
 
Posts: 3398
Joined: Thu Aug 09, 2007 10:11 pm


Return to IV - Oblivion