Skip to content

Multiple summons

I am working on scripts, that allows multiple summons to be active, but limited by caster level of summoner. Summons unsummon at the end of day they were summoned. Then limit works even with your summons being turn intro enemies. So far its going well, used modified henchman scripts to make summons and managed to sucesfully set dynamic CL based limit. Now to finish modifying spells. Will support limit raising items , feats and multiple limits (aka necromancy limit).

Comments

  • MelkiorMelkior Member Posts: 233
    edited August 7
    Don't forget that having multiples of the same type of summons means that the GetMaster() function won't always return you (the PC) as the master, because it creates a "chain" of summons when they're the same type. The first summoned has you as the master, then the next summoned has the first summon as its master, then the third summoned has the second summon as its master and so on.
    I made a little routine called GetTrueMaster() which reliably returns the true master. The key is that GetMaster() will return the same object if you've reached the top of the chain, so a while loop does the job fairly easily.
    object GetTrueMaster(object oSummon)
    {
      while(oSummon!=GetMaster(oSummon)) oSummon=GetMaster(oSummon);
      return oSummon;
    }
    
    Short and sweet and does the job with minimum fuss.

    Note that I said this is needed when you have multiples of the SAME TYPE of summon. So, multiple henchmen, or multiple summoned beasts, or multiple dominated creatures, but not if you have one of each.
Sign In or Register to comment.