Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Summoned Creature Spellcast scripting (Gauth/Beholder type) question

korvessakorvessa 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.

Comments

  • korvessakorvessa Member Posts: 3
    A bit of self corrections done :
    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

  • korvessakorvessa Member Posts: 3
    edited March 2015
    ### Script errors all the way, combining seems to be my down fall for time being.
    Each target class as separate entity seems to work, note to self and anyone else ripping their hair apart with scripting these games......

    Post edited by korvessa on
Sign In or Register to comment.