culmore Posted December 12, 2008 Share Posted December 12, 2008 I have been using ease of use AI to help with my buffing and it does help! At the beginning Viconia was able to buff the group but after a while the script stopped working (well the buffing of chaotic commands stopped working). I found the problem, the condition !CheckStatGT(Myself,0,SPELLFAILUREMAGE) was the problem once I removed this line from the conditions of the if statement then all was fine again. IF ActionListEmpty() CombatCounter(0) !Global("DMWWBuff","LOCALS",0) !Detect(NearestEnemyOf(Myself)) Global("ChaoticCommands","LOCALS",1) See(Player1) !CheckStatGT(Myself,0,SPELLFAILUREMAGE) !CheckStat(Player1,1,CLERIC_CHAOTIC_COMMANDS) THEN RESPONSE #100 ApplySpellRES("wesalac",Myself) // Improved Alacrity Spell(Player1,CLERIC_CHAOTIC_COMMANDS) END Looking at stats.ids I think it is a bug as there is a status called SPELLFAILUREPRIEST. Mind you this is my first time playing with this stuff so I could well be wrong. Link to comment
DavidW Posted December 23, 2008 Share Posted December 23, 2008 Hmmm. I can't see why that should help, but perhaps there's some subtlety of spell failure I'm missing - especially if you've found that your solution works. Link to comment
culmore Posted December 23, 2008 Author Share Posted December 23, 2008 Hmmm. I can't see why that should help, but perhaps there's some subtlety of spell failure I'm missing - especially if you've found that your solution works. I checked again on that saved game and when I change the condition from !CheckStatGT(Myself,0,SPELLFAILUREMAGE) to !CheckStatGT(Myself,0,SPELLFAILUREPRIEST) then Viconia will buff my party with chaotic commands (the mage buffing has always been fine). She does not buff the party when I leave it coded in the original way. Form the file stats.ids the two constants have different values 51 SPELLFAILUREMAGE 52 SPELLFAILUREPRIEST The questions for me are 1) why is spell casting failure treated different ly for mages and priest by the engine. But okay that is how it seems to work 2) why your script ever worked for priest I dunno. But clearly it did for me and does for other also. Wierdness in the infinity engine is all I can say. It seems to me that for priest spell buffs the condition should be !CheckStatGT(Myself,0,SPELLFAILUREPRIEST) By the way I took your script and changed it and now I have a very nice buffing script, which only work for my party, and it really made the game more pleasant for me, buffing was sooo boring! So thanks a lot for the script a big help in my pleasure playing the game. I had to turn off your smart AI as it slowed down my machine to much. Booo Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.