Jump to content

Extracting a reference form starting block


cjhorberg

Recommended Posts

Hi!

 

I'm working on a mod that adds a few new NPCs to the game, and trying to make it so that they escape when the guards starts attacking them.

 

I'm pretty new to scripting but I'm wondering if there is a way to access the triggering reference of a starting block. So if we have this for example

 

Begin onHit

if ("*the guy who just hit you*").IsGuard == 1

forceflee

endif

End

 

I want to somehow access the triggering reference of a starting block. Is it even possible? If there is another way of doing it, could you explain it for me please? Any help is appreciated.

 

Eventually I would like this to include trigger zones, so that if a guard enters a certain area, the NPC will be disinclined to attack you, for example.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...