Jump to content

scripting help needed


nightowl79a

Recommended Posts

Okay so i was using Alternate Oblivion Magic System http://www.tesnexus.com/downloads/file.php?id=31918, and I really loved the Idea, and wanted to make something similar with a few modifications. What I don't like about that mod is the specializations feel too powerful at the start and add too many spells. I wanted to make something like that where it disables buying spells in the world, and when you level up you choose a spell from a skill tree like thing. For example,

 

I make a new character, a mage lets say. My mage starts out with Fireball and Heal. When i level up I get to choose all my basic stuff, then at the end i get to choose 2 more spells. The spells are in specific trees like healing tree and a fire tree. I choose my 2 new spells and continue my game. Next time i level up, i get to choose 2 more spells. If i choose heal rank2 then i can choose heal rank 3 ext.

 

Other than the spells learned at leveling up no other spells can be bought . My first thought to go about this was to find a way to run a some code when the player levels up. I couldn't find anything about level up code anywhere.

Can anybody help please? also if you could suggest how I could go about making the rest of this mod or link a tutorial Id be happy =D

thanks

Link to comment
Share on other sites

Did you look here?

 

using the "getlevel" command, you would need to check the current level and see if it's greater than the number from the last time it check with "getlevel"

 

You should be aware that the code will run right as you level up. So, it might interfere the level up menu. Which means that you need to check to see if the level up menu is open and if so, or not, to take the appropriate actions.

 

Also, the skill tree you're talking about can be done. I would use the dialog boxes to navigate through the tree with buttons for navigation. The link i posted has tutorials for that, but be aware that the code for the skills trees might require a lot of code and player checks.

 

For the skill tree dialog boxes, I would have the menu pop up(after the level-up menu closes) and have it pause the game. The menu would have buttons that lead to different trees with a "back" or "home" button on every instance, The code would check if you have the spell or spells and if so, it would remove the button that would give them to the player. When all the spell buttons in the specific category are gone then another button would appear leading to the next group of higher level spells

 

So, yeah. it's possible.

Link to comment
Share on other sites

Did you look here?

 

using the "getlevel" command, you would need to check the current level and see if it's greater than the number from the last time it check with "getlevel"

 

You should be aware that the code will run right as you level up. So, it might interfere the level up menu. Which means that you need to check to see if the level up menu is open and if so, or not, to take the appropriate actions.

 

Also, the skill tree you're talking about can be done. I would use the dialog boxes to navigate through the tree with buttons for navigation. The link i posted has tutorials for that, but be aware that the code for the skills trees might require a lot of code and player checks.

 

For the skill tree dialog boxes, I would have the menu pop up(after the level-up menu closes) and have it pause the game. The menu would have buttons that lead to different trees with a "back" or "home" button on every instance, The code would check if you have the spell or spells and if so, it would remove the button that would give them to the player. When all the spell buttons in the specific category are gone then another button would appear leading to the next group of higher level spells

 

So, yeah. it's possible.

 

This is awesome, I'm pretty new to scripting, but I get the basic ideas thanks to this. I'll mess around with it and see what i can come up with, thanks for pointing me in the right direction =D I decided to start a little smaller and I'm working on a book that when read lets you buy spells. cant wait to test out the getlevel function.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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