Jump to content

Trying to get a message script to work. Help?


Recommended Posts

Right I'm trying to make a message pop up when something's activated. That works fine. Then, there's two choices. One of them shows the name menu and the other the race menu.

When I press one, nothing happens. However, when I press the activator again, the message pops up, but also the menu from my choice at the same time. How do I fix it so once the button is pressed, the menu shows? Here's the script

 

Short Button

Begin OnActivate
Set Button to GetButtonPressed
ShowMessage J023BodyEditorMessage
if (Button == 0)
ShowNameMenu
elseif (Button == 1)
ShowBarberMenu
endif
End
Link to comment
Share on other sites

http://geck.bethsoft.com/index.php/GetButtonPressed

 

 

int iButton
int iAwaitingInput

Begin OnActivate
    ShowMessage J023BodyEditorMessage
    set iAwaitingInput to 1
End

Begin GameMode

    if iAwaitingInput == 1
        set iButton to GetButtonPressed

        if iButton > -1
            set iAwaitingInput to 0

            if iButton == 0
                ShowNameMenu
            elseif iButton == 1
                ShowBarberMenu
            endif

        endif

    endif

End

 

 

 

http://www.cipscis.com/fallout/tutorials/menu.aspx

 

 

int iButton

Begin OnActivate

    ShowMessage J023BodyEditorMessage

End

Begin GameMode

    set iButton to GetButtonPressed

    if iButton == -1
        Return
    elseif iButton == 0
        ShowNameMenu
    elseif iButton == 1
        ShowBarberMenu
    endif

End

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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