Jump to content

A Thought Occurred


T-Zero

Recommended Posts

Ah, okay. This is baldur.bcs:

IF
    GlobalTimerExpired("JosterReturn","GLOBAL")
    Global("JosterLeave","GLOBAL",1)
    !Global("Chapter","GLOBAL",4)
    !Global("Chapter","GLOBAL",5)
    !Global("Chapter","GLOBAL",7)
THEN
    RESPONSE #100
        SetGlobal("JosterLeave","GLOBAL",2)
        SetGlobalTimer("JosterReturn","GLOBAL",SIX_DAYS)
        SetGlobalTimer("JosterPaid","GLOBAL",FIVE_DAYS)
        DisplayStringHead(Player1,62081) // The quartermaster awaits you in the guild for Renal's due.
END

Does a fine job of not setting the "payment due" timer if in Chapters 4, 5, or 7. However, if the timer is set when you head off into one of those Chapters, it will have still been running and expire virtually immediately when you come back via:

IF
    GlobalTimerExpired("JosterPaid","GLOBAL")
    Global("JosterLeave","GLOBAL",2)
    Global("PGFailed","GLOBAL",0)
    !Global("Chapter","GLOBAL",4)
    !Global("Chapter","GLOBAL",5)
    !Global("Chapter","GLOBAL",7)
THEN
    RESPONSE #100
        SetGlobal("PGFailed","GLOBAL",1)
        DisplayStringHead(Player1,62082) // Renal will no longer wait for his due...you have lost your guild.
END

What needs to happen is a dummy script check to reset the initial timer while in those chapters, something like

IF
    GlobalTimerExpired("JosterReturn","GLOBAL")
    Global("JosterLeave","GLOBAL",1)
    OR(3)
        Global("Chapter","GLOBAL",4)
        Global("Chapter","GLOBAL",5)
        Global("Chapter","GLOBAL",7)
THEN
    RESPONSE #100
        SetGlobalTimer("JosterReturn","GLOBAL",ONE_DAY)
END

This will reset the initial timer check to 1 day intervals while you are in the "invalid" chapters. This block can be added anywhere in Baldur.bcs, but preferably before the existing two relevant blocks.

Link to comment

Working on it. Not familiar with the program, so it's slow going.

OK, then make sure that you download the latest available version here, aka NearInfinity-20151227.zip, extract that to the game folder, or anywhere really, the game directory makes it easier to for the tool to "auto find" the game, but it works outside as well.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...