Jump to content

Can't Save Script in the GECK?


TLC77

Recommended Posts

You have syntax errors. Can't save/compile a script with errors.

 

Compound conditional statements need to have the individual conditions you are testing grouped in parenthesis, as in "if (IsPC1stPerson == 1) && (Player.IsWeaponOut == 1) && (player.GetAnimAction != 0)". Also, for several reasons you should take all those functions out of the conditionals and save their results to variables and perform your conditional tests against those variables. For debugging purposes to identify which conditional is causing a problem, treat AND (&&) compounds as "nested IF" statements on separate lines.

 

Please see "TIP Best Practice Encapsulation Parens Brackets and Braces", "TIP Best Practice Function parameter separation with commas", "TIP Basic conditional test syntax", and "TIP Debugging Compound Conditionals" entries in the "Scripting" section of the wiki "Getting started creating mods using GECK" article.

 

However, first of all I would strongly suggest you work on getting GECK Extender working as it will help you chase down such errors. Why do you think it isn't? Do you have a GECKCustom.INI file in your "Users" folder? Please see `"Issue - GeckCustom INI file" in that same article.

 

-Dubious-

Link to comment
Share on other sites

My man Dubious helped me big time with a script edit I'm working on, buy this man a beer.

 

And yeah, the sanity check GECK runs had me puzzled for a minute as well, it should probably at least pop up a dialog box to inform less seasoned users like myself.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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