Jump to content

Please Help me save my first script in the Geck (script enclosed)


greyboxbum

Recommended Posts

Hello,

I have done something wrong because I can't save it in the Geck. I am trying to mod vcasstimergeneralbarkscript back to the way I read it was before the 1.4 patch so I can hear her in the game as a new player. The midnight rollover of hours is giving me a hard time (or I just suck at scripting as it has been my first day at it). This is the start where I have trouble.

 

 

SCN VCassTimerGeneralBarkScript

Float ftimer
Float fRandom

Int iCounter
Short bCassBarked
Short bQuestDelayFast
Short bRegionSection ;Regions divided into different script sections. An error occurs if sections exceeds 10 if/else nests.
Short LastDay
Short CurrentDay
Short DoOnce
Float fSpeakTime

Begin GameMode

If DoOnce == 0
set DoOnce to 1
set NewHour to (GameHour + 2)
set LastDay to gamedayspassed
endif

set currentDay to gamedayspassed

If VNPCFollowers.bCassHired != 1 ; Kill code if Cass is not in party.
Return
ElseIf Player.IsInCombat == 1
Return
ElseIf (bCassBarked == 1) && (NewHour >= fSpeakTime + 2.0)
Set bCassBarked to 0
Return
ElseIf (currentDay - lastDay) >= 1
set NewHour to (GameHour + 2)
set bCassBarked to 0
set lastday to currentDay
Return
Elself (NewHour - GameHour) > 2
set NewHour to (GameHour +2)
Return

Link to comment
Share on other sites

  • Recently Browsing   0 members

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