Jump to content

What's stopping this script from compiling?


TheElderInfinity

Recommended Posts

Hello there Nexus. I'm currently working on the scripts for Call of Hircnie (a mod for werewolves which you can read about over in Mod Talk) and I'm encountering a problem. Thanks to the in kit compiler, things are going a lot faster, and, with the help of the wiki, I've gotten rid of a lot of the errors that had to do with me using tesscript Syntax, but I can't figure out one strange error that I'm getting...

 

Scriptname cohTransformTiming extends Quest

{Controls the Timing for transformation.}

short cohGetMoonPhase

floor cohPhaseDay

cohGetMoonPhase = (( GameDaysPassed + ( GetCurrentTime / 24 ) - 0.5 ) % 24 )

cohGetMoonPhase = cohPhaseDay / 3

;/List of moon phases returned by cohGetMoonPhase calculation

0 = full moon

1 = 3/4 waning

2 = half waning

3 = 1/4 waning

4 = new moon

5 = 1/4 waxing

6 = half waxing

7 = 3/4 waxing/;

 

 

 

(compiling error below)

Starting 1 compile threads for 1 files...

Compiling "cohTransformTiming"...

c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(5,16): no viable alternative at input '='

No output generated for cohTransformTiming, compilation failed.

 

Batch compile of 1 files finished. 0 succeeded, 1 failed.

Failed on cohTransformTiming

 

 

 

I'm not exactly sure what this error entails, though I believe it has to do with line 5, the long one with lots of parenthesis. Any advice here would be greatly appreciated, as this is a critically important script for the mod.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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