Jump to content

Recommended Posts

Posted (edited)

Here's the latest version of the script. Just a few minor tweaks. A demo esp and script is attached (summons 10 dogs).

 

To use the demo spell:

- Extract the files to your Skyrim Data folder

- Activate the esp

- Launch the game.

- In the console type: help "summon legion"

- Note the ID number of the spell, then type: player.addspell <ID#>

- The spell will be under Conjuration

 

 

 

  Reveal hidden contents

 

Edited by steve40
Posted
  Quote
MoveTo does not create a new reference.

 

The way the Oblivion mods worked was that the summoned creatures would be resurrected and moved from their holding cell to the player's position. The same creatures would be reused over and over so that if the mod let you summon eight creatures at once, there would be eight persistent references added to the savegame bloat rather than an additional eight persistent references added each and every time the spell was cast. ( 8 < 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + 8 + ...)

  • 1 year later...
Posted (edited)

Hey Guys!

 

I know this thread is a bit old, but it's pretty much what I'm looking for.

Scripting is a bit of a mystery to me, so my brother changed your script for me, to fit in my mod.

The basic idea is that if you read a specific book, you summon x NPCS.

He got it to work, but the summoned NPC's remain hostile. Could anybody be so nice and change the script to summon friendly NPC's? Thanks!

EDIT: It would also be nice if the book had a cooldown..

Scriptname AAABLACKBOOK extends ObjectReference  

Actor[] npcs; array holding the ref ids of summoned ncps

Int Property num_npcs = 10 auto                     ; Number of npcs to summon (default 10, max 15)
Explosion Property summon_explosion AUTO        ; Explosion Effect to use when an npc is summoned (optional)
EffectShader Property shader AUTO                ; Shader to apply to summoned npcs (optional)
ActorBase Property npc_type AUTO                     ; Type of npcs to summon
Int Property summon_friendly = 1 AUTO             ; 1 if summoned units are friendly, 0 if not

Event OnRead()
  npcs = new Actor[15]
  int i = 0

  While i < num_npcs
    npcs[i] = Game.GetPlayer().PlaceAtMe(npc_type) As Actor
    
    If summon_explosion
      npcs[i].PlaceAtMe(summon_explosion)
    EndIf

    If summon_friendly == 1
      npcs[i].MakePlayerFriend()
    EndIf
    
    npcs[i].Enable()
    
    If shader
      shader.Play(npcs[i], 2);
    EndIf

    i += 1

  EndWhile
EndEvent
Edited by kevchef
  • 5 years later...
Posted

Super Necro post Ik, but say I create a custom NPC for use in a multi-summon spell, (ex: "Ghost Bandit"), how would this show up within the script so that the spell actually summons the Ghost Bandit?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...