Jump to content

Recommended Posts

Posted (edited)

Can you edit that post and put [ code ] [ /code ] tags around it to make it easier to read.

And... what's the problem?

Do you have the GECK-PU installed?

 

I don't have Geck-pu. Should i use it?

Edited by FrankFamily
  • Replies 82
  • Created
  • Last Reply

Top Posters In This Topic

Posted

GECK power up makes the script compiler give proper errors that tell you what's wrong.

Its essential for any major scripting.

Posted
That is nice, but geck-pu is better. Cipscis can only check certain syntax, it is not really part of the game editor. For an unknown reason, Bethesda disabled the part of geck which displays error messages. Geck-pu re-enables it. You should use it, and then I am sure the above script will show some error such as a name which is spelled incorrectly.
Posted

Don't put numbers in front of your editor IDs if you want them to work reliably in a script. They may be mistaken for FormIDs by the script compiler.

 

ShowMessage 0AUGA3ModificationMenu

 

player.unequipitem 0SteyrAUgA3CustomizationTool

 

if player.GetEquipped 0AUGA3 == 1

 

...etc

  • 3 months later...
Posted

trying to make a Bink player script but can't save I am using Geck-pu but don't understand the msg. here is the script

 

---------------------------------

ScriptName TerminalScript

 

;Script for playing movies

 

 

Short Button

Short ButtonPressed

 

Begin OnActivate

 

Set ButtonPressed To 1

End

 

Begin GameMode

if (ButtonPressed == 1)

Set Button To GetButtonPressed

if (Button >= 0)

if (Button == 0)

PlayBink "TerminalMovies\LT - fnvvidtest.BiK" 1 1 1 1

Elseif (Button == 1)

 

Endif

 

 

 

end

---------------------------------------------------

 

the idea is that you click on a terminal and pick a video to play not sure if it will work as I have not been able to save it to test it. Geck-pu says there is a error on line 15 some sorta mismatched if statement but I don't understand it.

Posted

Geck-pu says there is a error on line 15 some sorta mismatched if statement but I don't understand it.

 

In your GameMode block you have three If's, so you have to have three matching EndIf's. Right now you have only one, so you're short two.

Posted

I changed it to this to simplify it but still get errors, saying invalid if/end statements

------------------------------------------------------------

 

ScriptName TerminalScript

 

Scn TerminalScript

 

 

;Script for playing movies

 

ScriptName TerminalScript

 

Short Button

Short ButtonPressed

 

Begin OnActivate

ShowMessage TerminalScript

Set ButtonPressed To 1

End

 

Begin GameMode

if (ButtonPressed == 1)

Set Button To GetButtonPressed

 

PlayBink "TerminalMovies\LT - fnvvidtest.BiK" 1 1 1 1

Elseif (Button == 1)

endif

 

 

end

 

---------------------------------------------------

 

Basically I am trying to set a terminal to play different videos based on which number is pressed.

There will be more then one video but for now to test I have just one, if I can get it to work added the other choice should be as simple as added slightly altered copies of the first one.

 

I believe a menu will pop up in front of the player using this, I'd rather have a menu within the terminal it self so its more like real life but I don't know how to do that.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...