Jump to content

[LE] Requesting help with 'if(NPC.isDead)'


Recommended Posts

You don't need to make Scripts for every single thing, that's why the defaults Vanilla scripts exists for.


On Actor's death:


defaultSetStageOnDeath

This script will set the specified stage in the specified quest when this actor dies. I.e. setting a new stage when the boss dies.


defaultAliasOnDeathScript

This script will set the specified stage on the parent (owning) quest of the alias when they die. This only works on Reference Aliases. You cannot specify quests other than the owning quest. I.e. completing the quest when an NPC dies.


defaultSetStageActorRefScript

This script will set the specified stage on the specified quest (with optional prerequisite stage) if the proper event is called on the actor. Possible events are OnActivate, OnDeath, OnHit, OnTriggerEnter, OnEquipped, OnCombatBegin, OnCellLoad, self added to player inventory, self removed from player inventory, OnOpen, or OnRead.


defaultsetStageAliasScript

This script will set the specified stage on the specified quest (with optional prerequisite stage) if the proper event is called on the alias. Possible events are OnActivate, OnDeath, OnHit, OnTriggerEnter, OnEquipped, OnCombatBegin, OnCellLoad, self added to player inventory, self removed from player inventory, OnOpen, or OnRead. Only works for Reference Aliases.


defaultSetStageOnDeathRefAlias

This script will set the specified stage in the specified quest when this alias dies. I.e. failing the quest when the main quest character dies.



defaultsetMultiStageAliasScript

This script will set the specified stage (2 possible) if the owning quest is at the specified stage (2 possible) when the alias is activated, dies, is hit, or the trigger is entered - depending on a property set. The script will then go to a state wherein nothing will happen in any of those events. This script will only work for Reference Aliases.



On container change - pick up item:


defaultAddItemAliasScript

This script will set a stage in a quest when this ReferenceAlias is added to the inventory of someone/thing. This script will only work when placed on a ReferenceAlias. I.e. completing a stage when you pick up an heirloom.


defaultSetStageOnPlayerAcquire

This script will set the specified stage on the specified quest when the alias is added to the player's inventory. Then it goes to a state wherein being readded does nothing. Only works on Reference Aliases. I.e. completing a stage when you've gathered a weapon.



defaultSetStageOnPlayerAcquireItem

This script will set the specified stage on the specified quest when the item is added to the player's inventory. Then it goes to a state wherein being readded does nothing. I.e. starting a quest when you pick up a package.



* In my humble opinion, script should be made only when none of the vanilla defaults ones serves your purpose.


* I strongly recommend, if you want to expand your scripting knowledge & knowhow, to learn the defaults vanilla scripts, at least learn what they do and how many of them are.

Edited by maxarturo
Link to comment
Share on other sites

  • Recently Browsing   0 members

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