Jump to content

timer script problems


Recommended Posts

So I have this script I'm trying to get to work and it just won't seem to function.

 

ScriptName CRboatfixedscript

Short StartDay
Short state

Begin GameMode

       If ( GetStage crboat == 45 )
               If state == 0
                       Set StartDay to GameDaysPassed
                       Set state to 1
               ElseIf  state == 1
                       If GameDaysPassed >= ( StartDay +1 )
                               Setstage CRboat 50
                               set state to 2
                       EndIf
               EndIf
       Endif

End

 

When stage 45 of the quest is triggered, the NPC qualifies for an AI package he has that sends him to a location where he does an idle animation until the quest advances to stage 50 (24 hours if the script would function correctly)

 

I can't seem to figure out why the script doesn't work. It is set as a quest script and is not attached to anything specific. Should I slap it on the NPC or what?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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