
Scriptname VAoNNecronomiconInteraction extends ObjectReference import actorMessage[] Property arMessageList Auto SPELL[] Property arNecronomiconSpells Auto Perk[] Property arNecronomiconPerks Auto Event OnInit() Self.BlockActivation()EndEventEvent OnActivate(ObjectReference akActionRef) int iMenuSelection int iKnowledgeSelection iMenuSelection = arMessageList[0].Show() if iMenuSelection == 0 akActionRef.AddItem(Self, 1) elseif iMenuSelection == 1 Self.Activate(akActionRef, true) elseif iMenuSelection == 2 iKnowledgeSelection = arMessageList[1].Show() if iKnowledgeSelection == 0 akActionRef.AddPerk(arNecronomiconPerks[0]) arMessageList[2].Show() elseif iKnowledgeSelection == 1 akActionRef.AddPerk(arNecronomiconPerks[1]) arMessageList[2].Show() elseif iKnowledgeSelection == 2 akActionRef.AddSpell(arNecronomiconSpells[0]) elseif iKnowledgeSelection == 3 akActionRef.AddSpell(arNecronomiconSpells[1]) elseif iKnowledgeSelection == 4 akActionRef.AddSpell(arNecronomiconSpells[2]) endif endifEndEvent
I'd like to understand why this foolish compiler refuses to compile my script...any suggestion?

Thanks,
Jashkar

