It's a known fact that triggers can call up functions that belong to an AI script, these can be used to fire up a rule inside the AI...
But getting the AI to fire triggers, it's quite a different story... Infact, it wasn't a story at all because it was simply thought impossible.. Until now..
I'm working on a Interface between AI and Triggers, so far I've got an AI script to fire 2 rules simultaneously, and using Quest Vars too!AI Sample Code:
At the moment, it only works for Vanilla. I will try to port it to AoT. It will be release in the Trigger Loader after insane testing.
Now AI and Triggers are closer than ever... Any comments?
-invent00r
But getting the AI to fire triggers, it's quite a different story... Infact, it wasn't a story at all because it was simply thought impossible.. Until now.
I'm working on a Interface between AI and Triggers, so far I've got an AI script to fire 2 rules simultaneously, and using Quest Vars too!
The Showcase Test Scenario:
// Testing AI Interface
include "X Library.xs";
void main() { }
rule TriggerFire
active
minInterval 1
{
xsEnableTrigger("KillA");
xsEnableTrigger("Move");
xsDisableSelf();
}
rule WhateverInc
active
minInterval 1
{
trQuestVarSet("Whatever", trQuestVarGet("Whatever")+5);
}
At the moment, it only works for Vanilla. I will try to port it to AoT. It will be release in the Trigger Loader after insane testing.
Now AI and Triggers are closer than ever..