Skip to content

Factions?

ZephiriusZephirius Member Posts: 419
I'm having a time of it. Trying to get my blacksmith to appear to be banging away at is anvil. I can get him to attack it twice, then he stops. Tried messing with the faction of the anvil to no luck.

I'm simply using ActionAttack, but only get 2 attacks? How do I get him to keep attacking?

Comments

  • ProlericProleric Member Posts: 1,316
    You'd think this would be easy, but the best I could find for my module was a heartbeat script on the NPC:
        ClearAllActions(TRUE);
        ActionAttack(oAnvil);
    

    The target is hostile faction and plot.

    You can make the blacksmith stand still by immobilising them if you think that looks better.

    A quick search of old forums shows that others have arrived at the same conclusion.

    Instead of the heartbeat, you might try DetermineCombatRound(oAnvil), which the Lexicon recommends for multiround combat.

    Maybe in combination with that, remove the plot flag, give the anvil an absurb number of hit points, or restore the lost hit points OnDamaged?
  • sarevok57sarevok57 Member Posts: 6,002
    just remember though, if an NPC is busy attacking something then they may not be able to talk with the player, so keep that in mind
  • ProlericProleric Member Posts: 1,316
    Yes, if conversation is required, you will need ClearAllActions(TRUE) at the start of the OnConversation event.
  • ZephiriusZephirius Member Posts: 419
    okay. thanks guys. Now I have a little something to go on.
  • KendaricKendaric Member Posts: 9
    Yes, blacksmiths are somewhat tricky to get to work properly. I have my fair share of trouble with them as well, but hopefully the solutions in here will solve that.
  • ZephiriusZephirius Member Posts: 419
    Yeah, I'm beginning to understand that blacksmiths are a pain but, the solution Proleric gave is working for me. Hope it helps everyone else too.
  • ZephiriusZephirius Member Posts: 419
    Oh also. If your using a OnHeartbeat script, I gave my blacksmith 40 levels of Fighter (uping the amount of attacks per round he has) to make it more blacksmith-like.
Sign In or Register to comment.