Jump to content

i need help with making a mod


adamchaggama

Recommended Posts

thanks for trying to help but am not sure if thats it. i want to make a spell that when you use it a box pops up on your screen and you have options there am trying to make a castle mod and at the gatewhen i use the spell options pop up and lets sey one of them is when i press that option the guard opens the gate
Link to comment
Share on other sites

The page that Xilante gave you is the right thing. You will have to study the wiki example and adapt the code to work with a spell, and adapt the options presented to open/close the gate.

 

You'll need the script to extend ActiveMagicEffect instead of ObjectReference.

Instead of the OnRead() event, you will rename it to OnEffectStart().

You should omit the OnContainerChanged() block completely.

 

Maybe later if I have time I'll write the spell script for you.

Edited by steve40
Link to comment
Share on other sites

This is a template of how you would open a menu using a Spell with a script attached to a MagicEffect. You will need to modify this template to your needs and write your custom functions etc.

 

 

 

  Reveal hidden contents

 

 

EDIT: I've re-written the code a little.

Edited by steve40
Link to comment
Share on other sites

  • Recently Browsing   0 members

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