Help - Search - Members - Calendar
Full Version: Bound Armor other than Daedric
The Nexus Forums > Specific Games > Oblivion > Oblivion Modifications > General Mod Talk
slo5oh
Sorry if this has been covered...
Can anyone point me in the right direction to add/create a new spell that will bind me with armor other than the normal Daedric stuff. I don't want to just change the existing spells since that would cause enemies to look like friendlies.
Resonance50
Open the scripting window and select Script Type: 'magic effect' from
the drop down list near the top of the window.

CODE

scn BoundArenaRaimentHeavy

Begin scripteffectstart

player.additem ArenaRaimentHeavy 1
player.equipitem ArenaRaimentHeavy 1 ; (if you don't put the '1' the item will be unequipable by the player while effect is active and visa versa)

end

Begin scripteffectfinish

player.unequipitem ArenaRaimentHeavy 1
player.removeitem ArenaRaimentHeavy 1

end


(Obviously just change where it says 'ArenaRaimentHeavy' to the object ID of the Armor you actually want and just add in more
lines of 'player.additem' etc. if you want to add more items to the spell)

Save the script and go to "spells" in the object window.

Create a new spell.

Tick the 'Script Effect Always Applies' box

Add new effect:

---Effect: Script Effect
---Range: Self
---Duration: (in seconds)
Script Effect info:
---Script: Select the script you just created
---Effect name: (name)
---School: (probably cunjuration, but its up to you)
---Visual Effect: (probably bound cuirass, but again its up to you)
---Un-tick 'Effect is Hostile' box (not sure if it makes a huge difference as you casting it on yourself anyway).

Save Effect.

Un-tick the 'Auto-Calculate' box at the bottom of the spell window and then select the level and cost of the spell.

Save your spell.

How you want to give yourself the spell in the game is up to you but this will create it.
If you want to change the scripting at all this link should help. http://cs.elderscrolls.com/constwiki/index...egory:Functions

I hope this helps. smile.gif
slo5oh
Thanks. I created the armor, created a spell to cast that armor. I think it's all created right, but how do I add that spell in game?
I know I could just use player.addspell, but I don't know the # ID it created.

Sorry if this is a noob question. smile.gif
Resonance50
Well you can find the ID# by expanding one the columns next to editor ID in the object-spell window its shrunk to a really thin width so you can barely notice it (took me ages to realise wallbash.gif ) But this probably isn't ideal but is useful for testing the spell. I wouldn't know how to give the spell to a vendor to sell to me off the top of my head I'm afraid.

My preferred method would be to add a script to an activator placed in the game that would add the spell.

CODE

scn Customspelladding

short spelladded

begin onactivate

if spelladded == 0
player.addspell (editor ID)
set spelladded to 1
endif

end


Or have an item which when the player has in the inventory the spell is available, but when removed the spell is also removed.

CODE

Scn Customspelladding

short Gotitem

Begin OnAdd Player

if Gotitem == 0
player.addspell (editor ID)
set Gotitem to 1
endif

End


Begin OnDrop Player

if Gotitem == 1
player.removespell (editor ID)
set Gotitem to 0
endif

End


Add the script to an item and then place the item in the game.

I know that you can also have a spell added as soon as you load game but I'm not too sure how to do this as I have never created a script myself to do this. Sorry, blush.gif I'm sure there is plenty of information on CS Wiki about it though as well as information about having a vendor sell you the spell. Failing that someone here will know I'm sure. wink.gif
slo5oh
Thanks for the help so far. I'll search through the wiki to see if I can add to a vendor.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.