Jump to content

[LE] Forcegreet when a group of NPCs is all dead


Smirkyguy

Recommended Posts

So I'm having trouble triggering a forcegreet to start. I have already triple checked the package and alias, it's flawless. I just need to trigger a high priority "evaluate packages" once 3 bandits are all dead. how would this be done?

Edited by Smirkyguy
Link to comment
Share on other sites

One way is to put on your 'Forcegreet' package the condition "GetGlobalValue" (or something like that, i don't know all the names by heart).

GetGlobalValue == 3


Now on each bundit place a simple script.

Example:

GlobalVariable Property MyDeathCount Auto


EVENT OnDeath(Actor killer)

MyDeathCount.Mod( 1 )

ENDEVENT


* This is just an example from the many other ways that this can be done.

* If you have a quest already running, then this logic can also work with your quest fragment, you only need to put the 3 bandits on a alias and fire the 'OnDeath' event from your quest.


Have a happy modding.

Link to comment
Share on other sites

  • 2 weeks later...

I would just put the condition on the force greet.

 

When you make the force greet package there is a tab with conditions. I would add your conditions there.

 

IUse "getisdead" ( believe that is the bit) and use "reference" and click on each npc that has to be dead. Make sure you use "And" and not "or"

 

Done!

 

I have dialogue that doesn't appear unless certain npc's are dead so I can't see why the force greet wouldn't work.

Edited by Sovrath
Link to comment
Share on other sites

  • Recently Browsing   0 members

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