ScriptName JbariScript
short armor
Begin OnDeath
if ( GetStage TrainingLightArmor >= 10 ) && ( GetStage TrainingLightArmor < 100 )
SetStage TrainingLightArmor 200
endif
End
Begin Gamemode
if ( armor == 0 )
if ( GetStage TrainingLightArmor == 20 )
if ( player.getitemcount elvencuirass > 1 )
set armor to 1
elseif ( player.getitemcount elvencuirass == 1 )
if ( player.getequipped elvencuirass == 0 )
set armor to 1
endif
endif
endif
elseif ( armor == 1 )
if ( player.getitemcount elvencuirass == 1 )
if ( player.getequipped elvencuirass == 1 )
set armor to 0
endif
elseif ( player.getitemcount elvencuirass < 1 )
set armor to 0
endif
endif
End |