Jump to content

[LE] Add / Remove package through script or equivalent ?


Recommended Posts

Hi to all.


I'm facing a problem where the main boss's "Hunt Player" package is interfering with some of my scenes, since the package forces the 'Boss Actor' to constantly search/move/attack the player & followers.


And the biggest problem is that the condition on the package "IsInCombat" results in this situation:

- When the Boss Actor and the Player + followers are in the opposite corners of the cell they are far enough to stop combat from the Boss Actor, and this causes the game to refill the health bar of the Boss Actor which is something i don't want, that's why i created the package in the first place.


So i need a way to add/remove or activate/deactivate (or something equivalent) the package through the main Master Controller Script or any other way.


From what i know and from what i couldn't find papyrus does not have such functions for packages, so i'm a little lost right now and this might cause to remove entirely the package and leave the possibility of the Actor's health to be filed by the game + making the boss fight less intense.


If anyone has a different angle or a workaround to this i would be most grateful !!.


Thank you in advance.

Edited by maxarturo
Link to comment
Share on other sites

You can add additional conditions to the package as greyday01 stated. You can also have a dedicated quest with an alias pointing to the boss, the package would be on the alias and the quest would be started and stopped as needed via a papyrus script somewhere.

Link to comment
Share on other sites

Thanks greyday01 & IsharaMeradin for your response.


Since the time that Greece went into lockdown/quarantine, i've been modding literally from the time i wake up till i go to sleep, which is something that causes your brain to run completely out of brain juices after 14/16 hours.


* After a good 10h sleep and a good breakfast...


Yes you are both right, although i think a more effective way to manage my situation is to:

- Have the "Boss Actors" initially empty from faction (their hostile faction).

- Then add a condition to the package "GetInFaction" (or something like that... i just woke up).

- Then whenever i need to stop/run the 'Package':

remove/add faction > evaluate package > stop/start combat > do the rest of the stuff.

* It could also be a global.


* If i encounter any issue with those approaches, i'll try IsharaMeradin suggestion with the quest.


Thank you both for your suggestions and interest in this !.

Edited by maxarturo
Link to comment
Share on other sites

  • Recently Browsing   0 members

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