Jump to content


Krevett

Member Since 10 Nov 2015
Offline Last Active Mar 20 2019 08:58 AM

Posts I've Made

In Topic: Timer is set but not running

06 December 2015 - 02:56 AM

I found the problem and got my timers running for my version. It's indeed a NI issue! In my case, IWD in BG2 was not recognized as a BG2 game by NI. By adding the "baldur.exe" file to my root directory, NI now recognize the game as BG2 and the scripts are working as they should!

I don't know if it's the same issue for Vlad but be sure to check wich game NI is checking before compiling your script.

 

Edit: I'm using the latest snapshot of NI v1.36 20151112


In Topic: Timer is set but not running

13 November 2015 - 01:18 AM

I can add that in the following config the scripts Is working as expected

 

Weidu.log for BG stratagems install

 

Spoiler

 

In this one it is not working

 

Weidu.log for IWD in BG2 install

 

Spoiler

 

I know that the IWD in BG2 install hacks the .exe perhaps that cause the bug

But in my BGT install it works fine really disturbing ;)

 

Edit: IWD in BG2 was not installed from a clean install of BG2 but from a clean install of BGT (without stratagems installed) but it does not seems to cause any bug for playing the game


In Topic: Timer is set but not running

13 November 2015 - 01:07 AM

Hello I posted a problem in the following thread

 

http://www.shsforums...em/#entry582243

 

It seems to be related to this one as a timer is set but seems not to run. When looking through my saves with NI the local timer IS set on the creature but the !GlobalTimerNotExpired seems to return True anyway...


In Topic: AI scripting problem

11 November 2015 - 12:43 PM

Sorry to disturb again but I really don't understand why it doen't work as it is written:

 

IF
    See(NearestEnemyOf(Myself))
    Global("rest","LOCALS",0)
THEN
    RESPONSE #100
        Shout(ALERT)
        SetGlobalTimer("rtime","LOCALS",SIX_HOURS)
        SetGlobal("rest","LOCALS",1)
        SetGlobal("inafight","LOCALS",1)
        Continue()
END

IF
    Global("rest","LOCALS",1)
    !GlobalTimerNotExpired("rtime","LOCALS")
    !See(NearestEnemyOf(Myself))
THEN
    RESPONSE #100
        SetGlobal("rest","LOCALS",0)
        SetGlobal("inafight","LOCALS",0)
        SetGlobal("prebuff","LOCALS",0)
        SetGlobal("trigger","LOCALS",0)
        SetGlobal("contingency","LOCALS",0)
        SetGlobal("redefend","LOCALS",0)
        ApplySpell(Myself,RESTORE_FULL_HEALTH) // SPIN746.SPL (No such index)
        Rest()
END

 

The creature sees an enemy, rest is set to 1 and the timer is set to 6 hours in game time, so the next block should not execute until the timer is up, but it is executed whenever I go out of the creature sight...

Also looking at stratagems scripting, creature rest is handled the same way, that's why I don't understand my error!