Greywolf Posted May 5, 2004 Share Posted May 5, 2004 :/ 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 More sharing options...
Xenoseal Posted May 5, 2004 Author Share Posted May 5, 2004 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 More sharing options...
Greywolf Posted May 6, 2004 Share Posted May 6, 2004 Okay try this script I've cleaned it up :/ this should work ... I need to take more time into my posts Begin Magiscript Short PCIntShort PCWillShort 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 More sharing options...
Xenoseal Posted May 6, 2004 Author Share Posted May 6, 2004 Thanks Greywolf, ya have been a ton of help so far, gonna try this out later on tonite then I'll let ya know how it went. Link to comment Share on other sites More sharing options...
Greywolf Posted May 7, 2004 Share Posted May 7, 2004 No worries mate ... if it wasn't for university I would have come up with that script earlier ... ... I need sleep. Link to comment Share on other sites More sharing options...
Xenoseal Posted May 7, 2004 Author Share Posted May 7, 2004 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 More sharing options...
Xenoseal Posted May 12, 2004 Author Share Posted May 12, 2004 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 More sharing options...
Greywolf Posted May 12, 2004 Share Posted May 12, 2004 yeah should work shortPC Lvl = short PCLvl (I take it) but yes that should work fine :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.