Afternoon modders, i have been meddling with a customized override script for summoned Gauth ability and i have question about what would be correct way to set cast of example, the antimagic ray vs enemies of player party by types.
currently thinking of these lines :
IF
Global("GauthBehavior1","LOCALS",0)
HPGT(Myself,5)
See(NearestenemyOfType([ENEMY.0.0.MAGE_ALL]))
See(NearestEnemyOfType([ENEMY.0.0.CLERIC_ALL]))
See(NearestEnemyOfType([ENEMY.0.0.BARD_ALL]))
See(NearestEnemyOfType([ENEMY.0.0.DRUID_ALL]))
THEN
RESPONSE #100
ReallyForceSpell(NearestEnemyOfType([ENEMY.0.0.MAGE_ALL]),BEHOLDER_ANTIMAGIC_RAY)
ReallyForceSpell(NearestEnemyOfType([ENEMY.0.0.CLERIC_ALL]),BEHOLDER_ANTIMAGIC_RAY)
ReallyForceSpell(NearestEnemyOfType([ENEMY.0.0.BARD_ALL]),BEHOLDER_ANTIMAGIC_RAY)
ReallyForceSpell(NearestEnemyOfType([ENEMY.0.0.DRUID_ALL]),BEHOLDER_ANTIMAGIC_RAY)
Wait(2)
Continue()
END
I have gotten working results for normal beholder type ray attack types vs player party enemies but to be able to add abilities vs different class enemies would be nice. Comments appreciated.
currently thinking of these lines :
IF
Global("GauthBehavior1","LOCALS",0)
HPGT(Myself,5)
See(NearestenemyOfType([ENEMY.0.0.MAGE_ALL]))
See(NearestEnemyOfType([ENEMY.0.0.CLERIC_ALL]))
See(NearestEnemyOfType([ENEMY.0.0.BARD_ALL]))
See(NearestEnemyOfType([ENEMY.0.0.DRUID_ALL]))
THEN
RESPONSE #100
ReallyForceSpell(NearestEnemyOfType([ENEMY.0.0.MAGE_ALL]),BEHOLDER_ANTIMAGIC_RAY)
ReallyForceSpell(NearestEnemyOfType([ENEMY.0.0.CLERIC_ALL]),BEHOLDER_ANTIMAGIC_RAY)
ReallyForceSpell(NearestEnemyOfType([ENEMY.0.0.BARD_ALL]),BEHOLDER_ANTIMAGIC_RAY)
ReallyForceSpell(NearestEnemyOfType([ENEMY.0.0.DRUID_ALL]),BEHOLDER_ANTIMAGIC_RAY)
Wait(2)
Continue()
END
I have gotten working results for normal beholder type ray attack types vs player party enemies but to be able to add abilities vs different class enemies would be nice. Comments appreciated.








