Summoned Creature Spellcast scripting (Gauth/Beholder type) question
korvessa
Member Posts: 3
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.
0
Comments
IF
See(Nearestenemyoftype([ENEMY.GENERAL_ITEM.0.CLERIC_ALL]))
Global("GauthBehavior1","LOCALS",0)
HPGT(Myself,5)
OR(3)
See(Nearestenemyoftype([ENEMY.GENERAL_ITEM.0.LONG_BOW]))
// should be enemy.general_item.0.Mage_all " but seems *.ids are messed up. //
See(Nearestenemyoftype([ENEMY.GENERAL_ITEM.0.BARD_ALL]))
See(Nearestenemyoftype([ENEMY.GENERAL_ITEM.0.DRUID_ALL]))
THEN
RESPONSE #100
ReallyForceSpell(Nearestenemyof(Myself),BEHOLDER_ANTIMAGIC_RAY)
Wait(2)
Continue()
END
Each target class as separate entity seems to work, note to self and anyone else ripping their hair apart with scripting these games......