Jump to content

Changing Magicka Formulae


Xenoseal

Recommended Posts

:/ okay the reason that first script didn't save right is this ... you need to save the script then add the line

 

Stopscript blah blah ... because if you try to save it before there is no script saved yet for that stopscript to access. That is why you get the error ...

Link to comment
Share on other sites

Line (#) function reference object "player" not found.

 

 

That's the error that comes up, tried removing the Stopscript command first, then changing the "player" referrence to PC but that didn't work either.

 

 

 

Which umm... is really bad isn't it? Because Player by definition is the PC Unique_ID.. so is there somethin wrong with my MW, or ....?

Link to comment
Share on other sites

Okay try this script I've cleaned it up :/ this should work ... I need to take more time into my posts

 

Begin Magiscript

 

Short PCInt

Short PCWill

Short PCboth

 

 

If ( CharGenState == -1 )

 

Set PCInt to ( player->GetIntelligence )

Set PCWill to ( player->GetWillpower )

Set PCboth to ( PCInt + PCWill )

 

Player-> SetMagicka, PCboth

 

Stopscript Magiscript ; save first then add this line

 

endif

 

end

 

now this should work, if not .... then yeah something must be wrong

 

Add script to start scripts

Link to comment
Share on other sites

I know how it is, I'm in school myself (High School) I graduate in 6 days, so I'll be happy then. And I'll have some time to learn some of the more of the scripting language, so in the future I wont need as much help. Gonna try and figure out how to make my magic regen script as well.. but first I want to make a dungeon mod. Which I know how to do pretty much, made a house in a mod, so it's just a matter of a different scructure and adding enemies and unique items.
Link to comment
Share on other sites

Now.. I could add this in too, to add more magicka?

 

 

ShortPC Lvl

 

Set PCLvl to ( player->GetLevel )

 

 

Set PCboth to ( 2* PCLvl + PCWill + PCInt )

 

 

So Intelligence plus Willpower plus double the characters level = max magicka.

 

 

Just add that into the original script.

I do this right?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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