Jump to content

Photo

How to make NPC cast scripted spell after dialogue is finished

spell scripting

  • Please log in to reply
1 reply to this topic

#1
GhostWarrior13000

GhostWarrior13000

    Regular

  • Members
  • PipPip
  • 87 posts

So I released a mod quite a while back and I am currently working on an update with some new features however I lost my .psc files so I can't open the source code and see what I did all those years back. Anyway I am working on a spell that a NPC should cast onto the player after some dialogue. I finished scripting the spell but I want the npc to cast the spell after the dialogue, I know you do this in the end fragment section but I can't remember how to call that script via the end fragment section. Any help will be appreciated.



#2
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 10,441 posts

Champollion can be used to decompile your PEX into readable and re-usable PSC.  However, there will be some differences.  Any commented code or information will be lost.  And all events will be labeled as functions.  There is a GUI addon if that is preferred over using the command line, I haven't used it though.

 

As to your question, I am pretty sure you just have the NPC Cast the spell.







Also tagged with one or more of these keywords: spell, scripting

IPB skins by Skinbox
Page loaded in: 1.158 seconds