DMH-Online

Dungeon Masters Helper · Est. 2005

Items Scripts

NWN Script: summon_creature.htm

Author Sticky: Post Working Scripts Here
Eoweth Posted: Sunday, 23 June 12:22AM
Summon a creature for 10 turns, activated from an item.

NWScript:
//::/// /// /// /// /// /// /// /// /// /// /// ///
//:: Summon Creature From Item
//:: SUM_MOB_FROM_ITEM
//:: Copyright (c) 2002
//::/// /// /// /// /// /// /// /// /// /// /// ///
/*
    Summons a creature after using the summoning
    amulet.  The summoning lasts for 10 turns.
*/
//::/// /// /// /// /// /// /// /// /// /// /// ///
//:: Created By:  Eoweth (eoweth@cox.net)
//:: Created On:  June 22, 2002
//::/// /// /// /// /// /// /// /// /// /// /// ///
/*
    Called from onActivateItem under Module Properties
*/
//::/// /// /// /// /// /// /// /// /// /// /// ///
void main()
{
    // Declare major variables
    object oMaster = GetItemActivator();
    // Replace "CREATURERESREF" with the sCreatureResref of whichever monster you wish to summon.
    // Note that sCreatureResref is *not* the same as it's Tag.
    //  You can also replace the _3 with 1-3 for different summon effects.
    effect eSummon = EffectSummonCreature ("CREATURERESREF", VFX_FNF_SUMMON_MONSTER_3 );
    // Apply the VFX impact and summon effect
    // Adjust the TurnsToSections(10) to reflect how long you want it to last.
    // You can use HoursToSeconds(), RoundsToSeconds() or TurnsToSeconds().
    ApplyEffectToObject (DURATION_TYPE_TEMPORARY, eSummon, oMaster, TurnsToSeconds(10));
}
⌂ All Scripts ← PreviousNext → 👁 Category List

All Items Scripts

📄 aquire_time 📄 bead_of_force 📄 book_of_inf_spells 📄 clear_inventory 📄 clear_inventory_002 📄 clear_inventory_003 📄 clear_inventory_004 📄 cursed_items 📄 cursed_items_002 📄 cursed_potion 📄 give_xp 📄 glow_when_mob 📄 healing_belt 📄 helm 📄 hurled_weapons 📄 item_weight 📄 key_rental 📄 lore_items 📄 npc_owners 📄 random_magic 📄 retrieve_ammo 📄 scimitar_of_dancing 📄 scroll_creation 📄 spawn_item 📄 spawn_item_002 📄 spawn_item_004 📄 stone_of_recall 📄 stone_of_recall_002 📄 summon_creature 📄 teleport_item 📄 torch 📄 weapon_upgrade