Jump to content

'Leveled' Bound Weapons?


Hss Kr

Recommended Posts

Hi,

 

I'm trying to make a new race for my mod, but I'm having trouble with the race's 'Power'. I need them to have the Bound_Spear spell as their once a day Power, trouble is, being able to summon up a Daedric weapon is unbalancing early in the game.

 

I hoping somebody out there knows a way to make a new Bound_Spear variant, one that summons a spear according to the PC current level. The leveled item "l_m_wpn_melee_spear" should do nicely, but how can I make this work?

 

If anyone can help me with this I'd be very grateful

Link to comment
Share on other sites

It's complicated, but it could work... You'd need to create several new spell effects, and for each one you must create a new spell and weapon. I'm not certain about how making spell effects goes, but the scripting is relatively easy... Just make a startscript that checks if the PC is your race, then self-destructs is false. Then, make another conditional that checks to see if the menu mode is on (this is somewhat important, because the script will be constantly adding and removing spells). The script should repeat but not terminate itself if the menu mode is on. From this, branch out into a series of conditionals, one for each spell effect. In each one, have it check if the PC is a certain level. If the PC is that level, the script should remove the bound spear spell from the previous level set and add the next-higher bound spear, then loop.

 

It'd probably be along the lines of this...

 

If ( GetPCRace != 666 )

StopScript _LBS_LVLCHK

Else

If ( MenuMode > 0 )

Repeat

Else

If ( GetPCLevel == 1 )

If ( _LBS_Lvl1 == 0 )

AddSpell _LBS_Lvl1

Set _LBS_Lvl1 to 1

Repeat

Else

Repeat

ElseIf ( GetPCLevel == 2 )

If ( _LBS_Lvl2 == 0 )

Removespell _LBS_Lvl1

Addspell _LBS_Lvl2

Set _LBS_Lvl2 to 1

Repeat

Else

Repeat

ElseIf ( GetPCLevel == 3 )

If ( _LBS_Lvl3 == 0 )

Removespell _LBS_Lvl1

Removespell _LBS_Lvl2

Addspell _LBS_Lvl3

Set _LBS_Lvl3 to 1

Repeat

Else

Repeat

Elseif ( GetPCLevel > 3 )

Stopscript _BLS_LVLCHK

 

...Well, you get the jist of it, right? The script would (if you corrected all the blatant mistakes I made) add the spell _LBS_Lvl1 to the PC at the start of the game and set a runonce-type global true, then remove that spell and add a new one once the player levels up.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...