Skip to content

Please fix my BlackGuard script

Hi!

Im trying to make simple BG script by which he would fire up all his special abilities and bash enemies. Having 5 BGs in custom party, this job is too tedious by clicking. When SA are wasted, I would simply rest them and begin again. This is a script and works bad, he fires Poison weapon , then linger couple of seconds, then does somethnig but its not good. Please experienced scripters educate me.

IF
ActionListEmpty()
See(NearestEnemyOf(Myself))
THEN
RESPONSE #100
AttackReevaluate(LastSeenBy(Myself),60)
END

IF
See(NearestEnemyOf(Myself))
Range(NearestEnemyOf(Myself),10)
!CheckSpellState(Myself,POISON_WEAPON)

THEN
RESPONSE #100
Spell(Myself,ASSASSIN_POISON)
END

IF
See(NearestEnemyOf(Myself))
Range(NearestEnemyOf(Myself),6)

THEN
RESPONSE #100
Spell(Myself,AURA_OF_DESPAIR)
END

IF
HPPercentLT(Myself,80)
HaveSpell(BLACKGUARD_ABSORB_HEALTH)
THEN
RESPONSE #100
Spell(LastSeenBy(Myself),BLACKGUARD_ABSORB_HEALTH)
END

Comments

  • TerrorbleTerrorble Member Posts: 169
    edited December 2019
    What you are doing may be over my head, so I don't know if this is useful to you.

    When I try to code NPC actions I use this line of code a lot:

    AssignCommand(GetObjectByTag("SCREAMER"),ActionSpeakString("Say whatever the code should be doing here or report the value of something."),TALKVOLUME_SHOUT));

    **it assigns a creature in my module to shout what is going on**

    Anyway, it gives me insight into where my code is failing.


    Also, where is this script called?

  • DazDaz Member Posts: 125
    I think he's talking about Baldur's Gate scripting, which should probably be asked in a different subforum, as this one is for Neverwinter Nights :p
  • sarevok57sarevok57 Member Posts: 5,975
    if no one has fixed this by the time i wake up, i can give it a go and see what i can come up with
  • domagoj_zgdomagoj_zg Member Posts: 11
    edited December 2019
    Oh, really sorry, admin please delete the thread.
    Post edited by domagoj_zg on
Sign In or Register to comment.