Skip to content

Spell casters don't wait for existing sustained effects to expire before re-casting them?

FranpaFranpa Member Posts: 637
edited November 2013 in BG:EE Bugs (v1.2)
Seems like they just cast spells multiple times a.s.a.p without caring if a previously cast instance of the spell is still in effect. The scripts I believe should keep track of how long a spell lasts for and only cast the same spell more then once when the amount of time the spell lasts for, has expired

(Script doesn't care who is affected by it, only how long the spell lasts for. This prevents dumb situations involving unaffected party members moving within casting range of the caster before the previously cast spell expires, but after it was cast).

Comments

  • MathsorcererMathsorcerer Member Posts: 3,044
    You mean like this?

    IF
    !GlobalTimerNotExpired("BranHold","GLOBAL")
    See([ENEMY.HUMANOID])
    CheckStatGT(LastSeenBy(Myself),3,LEVEL)
    HaveSpell(CLERIC_HOLD_PERSON)
    !StateCheck(LastSeenBy(Myself),STATE_HELPLESS)
    !StateCheck(LastSeenBy(Myself),STATE_SLEEPING)
    !StateCheck(LastSeenBy(Myself),STATE_STUNNED)
    THEN
    RESPONSE #100
    Spell(SecondNearest([ENEMY.HUMANOID]),CLERIC_HOLD_PERSON)
    SetGlobalTimer("BranHold","GLOBAL",60)
    END


    It can be done but you pretty much have to do it for yourself or download a script someone else wrote and makes available.
Sign In or Register to comment.