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...

Please help to create a multi-menu MessageBox


Sergeek
 Share

Recommended Posts

I am at loss. I read the Guide at wiki and another one at Nexus, but they are so complicated, and they only got me so far...

I want to make a book that prompts a MessageBox (above its actual contents, like in Oghma Infinium) with four initial choices when you read it both from the floor and from the inventory (hence both Activate and Equip beginnings). These choices being the three skill specializations and "exit" button. Upon clicking the specializations, another menu should appear with seven respective skills plus the "back" button. Each skill button should increase the respective skill with ModPCSkill command by one, while keeping you inside the same specialization menu. The "back" button should return you to the initial menu where you select specializations. It is way beyond my understanding. I only managed to make a single-layer menu that keeps you inside of it, when you choose the first three options.

ScriptName MyBook

short Choosing
short Choice

Begin OnActivate

    Activate
    Set Choosing to 1

End

Begin OnEquip

    Set Choosing to 1

End

Begin MenuMode

    If ( Choosing == 1 )
        MessageBox "Select Specializations", "Combat", "Magic", "Stealth", "Exit"
        Set Choosing to 2
        Set Choice to -1
    ElseIf ( Choosing == 2 )
        If ( Choice == -1 )
            Set Choice to GetButtonPressed
        ElseIf ( Choice == 0 )
            Set Choosing to 1
        ElseIf ( Choice == 1 )
            Set Choosing to 1
        ElseIf ( Choice == 2 )
            Set Choosing to 1
        ElseIf ( Choice == 3 )
            Set Choosing to 0
        EndIf
    EndIf

    If ( Choosing == 0 )
        return
    EndIf

End

Please, I have no background in coding and any feedback will be greatly appreciated.

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...