How to add leveled spell list with script?

Post » Fri Oct 26, 2012 2:09 pm

Hello,
I m creating a stronghold defence mini game for oblivion and I would like to add leveled spell lists to the raiders.
The problem is that the following lines give me problems:


Raider.RemoveItem NPCRaidersEquipmentCombat 1Raider.RemoveItem NPCRaidersEquipmentStealth 1Raider.RemoveSpell LL0DamageAttrMajorLvl100

LL0DamageAttrMajorLvl100 is a leveled spell list from the game.

Why this is not accepted?
Can anyone help me?
User avatar
JUDY FIGHTS
 
Posts: 3420
Joined: Fri Jun 23, 2006 4:25 am

Post » Fri Oct 26, 2012 7:27 am

Use of a leveled list means "select one from the list, and then do x with it" which is fine when you're adding the spell, but for RemoveSpell, it would probably pick the wrong one to try to remove and fail. You'd need to find out which one was added, and then remove the specific spell.
User avatar
ijohnnny
 
Posts: 3412
Joined: Sun Oct 22, 2006 12:15 am

Post » Fri Oct 26, 2012 7:21 am

Would the LL be seen as a spell? It's in the player's spell list, but is a LL, not a spell. Maybe the game has a problem with this. Just a thought.

Then again, it is a leveled spell list. I don't know. :blush:
User avatar
Lisha Boo
 
Posts: 3378
Joined: Fri Aug 18, 2006 2:56 pm


Return to IV - Oblivion