
SetLocalInt(OBJECT_SELF,LEG_VAR_METASUM_MIN_USES_PER_ROUND,4) The minimum number of allies the Meta-Summoner must summon simultaneously.SetLocalInt(OBJECT_SELF,LEG_VAR_METASUM_MAX_USES_PER_ROUND,6) The maximum number of allies the Meta-Summoner may summon simultaneously.Meta-Summoning 1 creature always costs 1 use. SetLocalInt(OBJECT_SELF,LEG_VAR_METASUM_MAX_USES,10) The number of uses of the Meta-Summoning ability per rest cycle.If it's left unset this variable's default value is VFX_FNF_SUMMON_MONSTER_1. Spawning delays are automatically added when effects needing them are used:EffectDelayVFX_FNF_UNDEAD_DRAGON5.0VFX_FNF_SUMMON_CELESTIAL4.0VFX_FNF_SUMMON_GATE4.0VFX_FNF_SUMMONDRAGON1.0If LEG_VAR_METASUM_VEFFECT is set to the special value of -100, Meta-Summoned allies will appear to fly in from above. Set to -1 to indicate there should be no effect. VFX_FNF_SUMMON_UNDEAD) A Fire-And-Forget visual effect that'll be played over the location where an ally spawns in. SetLocalInt(OBJECT_SELF,LEG_VAR_METASUM_VEFFECT,.If left unset, the default value is FALSE. SetLocalInt(OBJECT_SELF,LEG_VAR_METASUM_VERBAL,TRUE) A Verbal Meta-Summoning ability will be unuseable if the Meta-Summoner is Silenced or Polymorphed.If left unset, the default value is SPELL_ACID_FOG/0. A value of -1 means the creature can summon allies instantly. SPELL_SUMMON_CREATURE_IV) This gives the ID of the spell the creature will appear to be casting as it's really using its Meta-Summoning ability, which is a Somatic Magical ability. SetLocalInt(OBJECT_SELF,LEG_VAR_METASUM_FAKE_SPELL,.This function sets various Meta-Summoning variables automatically (see below under "Several variables.", and see the comment over 'lgcy_crt_spawn''s Leg_AutoConfigureMetaSummonerForFOrAC for more):Leg_AutoConfigureMetaSummonerFOrAC("nw_fm_ice","Ajax") Several variables may be set manually on a Meta-Summoner in Hook_InitCreature: Even though they actually take up henchman slots, Meta-Summoned allies work exactly like true summoned creatures.To set up a Meta-Summoner that summons a single familiar/animal companion, just call Leg_AutoConfigureMetaSummonerForFOrAC in Leg_Hook_InitCreature. It allows multiple allies of any template to be summoned at the same time. Meta-Summoning is a form of simulated/emulated summoning that complements default/real summoning. If you need any of the custom functions for handling arrays or anything, let me know. We use a lot of custom functions, so this won't work as it stands. This system is no longer available for download.
#COMPANION NEVERWINTER CODES CODE#
I've tweaked it over the years, but the code was originally from 'Legacy NWN', by Richard A Brooks. I may not have time to find all of it before I leave for work.I can't take credit for this code. OnRest checks to see if the metasummons should be unsummoned, for instance. We use it for everything from commoners with normal pets to wizards with familiars.There's bits of AI code for it in several scripts. For some reason, these forums tend to play havok with my copy/pasted code, so it may lose random carriage returns and such.This is mixed in with my meta-summons code that allows NPC's to summon without spells.
