Creatures Scripts
NWN Script: inverse_mob.htm
| Author: | Basmati |
| Author Website: | n/a |
| Script Name: | Inverse Monsters |
| Description: | This script causes a creature to spawn in 2 new critters when it is killed, however, if a healing spell of any type is cast at the creature it vanishes. |
| Instructions on Use: |
|
Script 1 (OnDeath):
| void main() { string creature_id="stopper"; location summonlocation = GetLocation(OBJECT_SELF); effect StrikeEffect = EffectVisualEffect(VFX_IMP_DIVINE_STRIKE_FIRE), FALSE); effect SummonEffect = EffectVisualEffect(VXF_FNF_SUMMON_MONSTER_3,FALSE); PlaySound("sff_summund"); ApplyEffectAtLocation (DURATION_TYPE_INSTANT, StrikeEffect, summonlocation, 1.5); ApplyEffectAtLocation (DURATION_TYPE_INSTANT, SummonEffect, summonlocation, 4.0); object OMonster = CreateObject(OBJECT_TYPE_CREATURE, creature_id, summonlocation, TRUE); object OMonster2 = CreateObject(OBJECT_TYPE_CREATURE, creature_id, summonlocation, TRUE); } |
Script 2:
| #include "NW_I0_GENERIC" void main() { int ispell=GetLastSpell(); if ( ispell==SPELL_HEAL || ispell==SPELL_CURE_CRITICAL_WOUNDS || ispell==SPELL_CURE_LIGHT_WOUNDS || ispell==SPELL_CURE_MINOR_WOUNDS || ispell==SPELL_CURE_MODERATE_WOUNDS || ispell==SPELL_CURE_SERIOUS_WOUNDS ) DestroyObject(OBJECT_SELF, 0.0); } |
All Creatures Scripts
📄 apply_spell_effect
📄 aurak_draconian
📄 baaz_draconian
📄 boss_spawner
📄 change_light_spawn_pt_on_death
📄 clone_mob
📄 collect_loot
📄 create_unique_objectIDs
📄 creature_proc
📄 explode_ondeath
📄 explode_ondeath_002
📄 explode_ondeath_003
📄 exploding_chickens
📄 fire_death
📄 inverse_mob
📄 iron_statue
📄 lich
📄 lootable_corpse
📄 lootable_corpse_002
📄 lootable_corpse_002a
📄 lootable_corpse_oo2
📄 mob_respawn
📄 mob_respawn_002
📄 multi_creature_spawn
📄 night_time
📄 random_death_effect
📄 random_drops
📄 random_drops_002
📄 random_drops_003
📄 random_enc_onrest
📄 random_hps
📄 sivac_draconian
📄 spawn
📄 spawn_on_hearbeat
📄 summon_last_hostile
📄 summon_mob
📄 trolls
📄 trolls_002
📄 vampire_coffin
📄 werewolf