Lareth prebuff

Discussion in 'General Modification' started by Sitra Achara, May 19, 2010.

Remove all ads!
  1. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    During my recent playthrough, I noticed that Lareth only casts 'detect [alignment]' as a pre-buff.

    Looking at his scripting, it seems Livonya envisaged him following through with 'Magic Circle Against [Alignment]' once the party enters his room / gets close enough. It's in the scripting, except it's very unlikely to fire the way it is scripted now.

    I've tweaked the scripting to ensure the spell gets cast once a PC opens the door and Lareth can see the PC.

    (the problem was that the prebuffing variable 726 kept on counting, while the magic circle is conditioned to fire at var[726] == 5; so I halted the count at 5, until a PC comes within range; the count is reset if you rest or re-enter the place)

    Attached is Lareth's altered py script. I've tested if for a CG party, seems to work fine.
     

    Attached Files:

  2. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Cool, I'll throw it in. :thumbsup:
     
Our Host!