A Slightly more complex scripting question

Post » Thu Mar 28, 2013 4:13 pm

(though still trivial by the standards set here)

Anyway, having gotten the item equipped properly, I want to make it automatically advance to the next version when the player reaches the proper level, here is my original idea of how to do this:

Scriptname NephRoseKvatchHeavy01Scriptbegin OnEquip player    if player.getlevel > 4        player.removeitem NephRoseKvatchHeavy01 1            if player.getav LightArmor > player.getav HeavyArmor                player.EquipItem NephRoseofKvatchLightList 1            else                player.EquipItem NephRoseofKvatchHeavyList 1            endif    endifend

However...it doesn't work. It doesn't even remove the item properly. It doesn't seem to do anything.
User avatar
lydia nekongo
 
Posts: 3403
Joined: Wed Jul 19, 2006 1:04 pm

Return to IV - Oblivion