Scriptname cohTransformTiming extends Quest
{Controls the Timing for transformation.}
short cohGetMoonPhase
floor cohPhaseDay
int cohCanTransform
int cohbmvar
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/;
If GetCurrentTime >= 20 || GetCurrentTime <= 6 && cohPhaseDay = 1 && cohbmvar != 1
cohWWtimingQuest.SetQuestStage 5
cohCanTransform = 1
elseif GetCurrentTime >= 20 || GetCurrentTime <= 6 && cohbmvar = 1
cohWWtimingQuest.SetQuestStage 10
cohCanTransform = 1
elseif GetCurrentTime <= 20 || GetCurrentTime >= 6
cohWWtimingQuest.setQuestStage 0
cohCanTransform = 0
endif
if GetGlobalValue PlayerIsWerewolf = 1
if cohCanTransform = 1
player.addmagiceffect WerewolfChangeEffect
elseif cohCanTransform = 0
player.removemagiceffect WerewolfChangeEffect
endif
endif
end
Obviously some of the syntax is wrong, but I have absolutely no idea what the errors it's returning mean. We may all be new to this, but I'd appreciate any help I get.
Starting 1 compile threads for 1 files...
Compiling "cohTransformTiming"...
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(7,16): no viable alternative at input '='
c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(29,0): missing EOF at 'if'
No output generated for cohTransformTiming, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on cohTransformTiming
