Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Need help with my script


spenmenn
 Share

Recommended Posts

I am working on a script. When the player read a book a menu pops up with several options, but nothing happens when I read the book. Can anyone help?

Here is the script. 

 

Scriptname Speed extends ObjectReference

Message Property ff2  Auto  

Message Property ff1  Auto  

Message Property question  Auto
    function OnEquipped(Actor reader)
    
        Int iButton = question.Show()

        If (iButton == 0)
            ff1.show()
            Debug.Notification("You feel stronger1")
        ElseIf (iButton == 1)
            ff2.show()
            Debug.Notification("You feel stronger2")
    EndIf
    
endFunction

 

Thanks

Link to comment
Share on other sites

You need an event. Try:

Event OnEquipped(Actor akActor)
  if akActor == Game.GetPlayer()
    Int iButton = question.Show()
    If (iButton == 0)
       ff1.show()
       Debug.Notification("You feel stronger1")
    ElseIf (iButton == 1)
       ff2.show()
       Debug.Notification("You feel stronger2")
    EndIf
  EndIf
EndEvent

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...