Jump to content

Multiple Option Blessing Shrine


Iacovski

Recommended Posts

Hi, I'm tryng to set up a Shrine giving the player a blessing of his choice via a menu and trying a patchwork script that doesn't work, obviously.

Scriptname aaaMALMBlessingMenuTest extends ObjectReference

Message Property NocturnalMessage Auto
Message Property BlessingMessage  Auto  
Message Property AltarRemoveMsg  Auto
Spell Property TempleBlessing01 Auto
Spell Property TempleBlessing02 Auto
Spell Property TempleBlessing03 Auto
Spell Property TempleBlessing04 Auto

Event OnActivate(ObjectReference akActionRef)
    Menu()
EndEvent

Function Menu(Int aiButton = 0) ; The menu will exit on its own after a selection is  made.
    aiButton = NocturnalMessage.Show() ; Shows your menu.
    If aiButton == 0

    ElseIf aiButton == 1

    TempleBlessing01.Cast(akActionRef, akActionRef)
    if akActionRef == Game.GetPlayer()
    AltarRemoveMsg.Show()
    BlessingMessage.Show()

EndIf

    ElseIf aiButton == 2

    TempleBlessing02.Cast(akActionRef, akActionRef)
    if akActionRef == Game.GetPlayer()
    AltarRemoveMsg.Show()
    BlessingMessage.Show()

EndIf

    ElseIf aiButton == 3

    TempleBlessing03.Cast(akActionRef, akActionRef)
    if akActionRef == Game.GetPlayer()
    AltarRemoveMsg.Show()
    BlessingMessage.Show()


EndIf

    ElseIf aiButton == 4

    TempleBlessing04.Cast(akActionRef, akActionRef)
    if akActionRef == Game.GetPlayer()
    AltarRemoveMsg.Show()
    BlessingMessage.Show()


EndIf

EndIf

EndFunction
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(21,23): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(21,36): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(22,4): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(30,23): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(30,36): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(31,4): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(39,23): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(39,36): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(40,4): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(49,23): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(49,36): variable akActionRef is undefined
C:\Program Files (x86)\Bethesda Softworks\The Elder Scrolls V - Skyrim Legendary AiO Special Mod Edition\Data\Scripts\Source\temp\aaaMALMBlessingMenuTest.psc(50,4): variable akActionRef is undefined


I know it's a bit of a mess but still can't get a grasp on papyrus and need some kind soul helping me out on this...many thanks...

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...