Hss Kr Posted September 21, 2003 Share Posted September 21, 2003 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 More sharing options...
Marxist ßastard Posted September 21, 2003 Share Posted September 21, 2003 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_LVLCHKElseIf ( MenuMode > 0 )RepeatElseIf ( GetPCLevel == 1 )If ( _LBS_Lvl1 == 0 )AddSpell _LBS_Lvl1Set _LBS_Lvl1 to 1RepeatElseRepeatElseIf ( GetPCLevel == 2 )If ( _LBS_Lvl2 == 0 )Removespell _LBS_Lvl1Addspell _LBS_Lvl2Set _LBS_Lvl2 to 1RepeatElseRepeatElseIf ( GetPCLevel == 3 )If ( _LBS_Lvl3 == 0 )Removespell _LBS_Lvl1Removespell _LBS_Lvl2Addspell _LBS_Lvl3Set _LBS_Lvl3 to 1RepeatElseRepeatElseif ( 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.