Is it possible to make a boss creature fight normally and then at a certain health percentage become untouchable until an item is used? It would function sort of like the Litany of Adralla, except using the item during that "invincible period" would kill the boss.
I've gotten the boss and his team to turn hostile and the fight works, but I have no idea how to make a boss continue to fight but take no damage. Any thoughts?
Boss becomes invincible until item use?
Débuté par
madsabroo
, sept. 28 2010 03:07
#1
Posté 28 septembre 2010 - 03:07
#2
Posté 28 septembre 2010 - 09:29
Haven't tried this but I think it should work.
Set the boss to Immortal so it cannot go below 1 hp. If you want to do this after a certain threshold, you should use SetImmortal after the health is below that threshold in the EVENT_TYPE_DAMAGED in the creature script.
In the item's ability script, use SetImmortal to remove the Immortal flag and KillCreature to kill the boss in the Impact event.
Set the boss to Immortal so it cannot go below 1 hp. If you want to do this after a certain threshold, you should use SetImmortal after the health is below that threshold in the EVENT_TYPE_DAMAGED in the creature script.
In the item's ability script, use SetImmortal to remove the Immortal flag and KillCreature to kill the boss in the Impact event.
#3
Posté 28 septembre 2010 - 09:42
Using the item script to remove the Immortal flag is genius. Thanks for the brilliant idea! I'm gonna try scripting it tonight.
#4
Posté 28 septembre 2010 - 11:39
You can also have the item use set a plot flag. Intercept the damage event, and if the plot flag is not set, increase the boss' HP total by the damage amount (effectively instantly healing the damage). This will only fail if the boss can be one-shot, which presumeably wouldn't be the case.
That's better for a literally invincible feel, but it's not as clean as the Immortal solution
That's better for a literally invincible feel, but it's not as clean as the Immortal solution
#5
Posté 04 octobre 2010 - 01:21
I think you can also increase all Boss resistances at huge percentage or apply it an immune effect. Then the item/ability script is the common solutiont to kill him.
Modifié par Nattfodd, 04 octobre 2010 - 09:04 .





Retour en haut






