Script to increase HealthMagickaStamina on Skill Leveling

Post » Thu Jun 21, 2012 1:31 am

Yeah I have that thanks Ingenue.

Hmm, it seems to reacting strangely with my skill leveling script, perhaps I will separate the quest into two.
User avatar
Jeff Tingler
 
Posts: 3609
Joined: Sat Oct 13, 2007 7:55 pm

Post » Thu Jun 21, 2012 9:54 am

Update:

For some reason the fortify health script works fine the first time the skill hits 101, but not any subsequent times. I've tried a variety of things to fix this, including a reference to increase the global variable if the skill is at 101, adding a waiting time to the revert skill back to 100 to see if the fortify script just needed time, trying to get the revert skill back script to start the fortify health quest ... but none of these things are working.

My (unrefined) scripts as they are now:

Spoiler

Scriptname WZHealthFortificationEffectScript extends QuestGlobalVariable Property WZHealthIncrementValue AutoQuest Property WZTestPerpetual AutoEvent OnStoryIncreaseSkill(string OneHanded)WZHealthIncrementValue.Mod(1)Game.GetPlayer().ModActorValue("health", WZHealthIncrementValue.GetValue())WZTestPerpetual.Stop()endEvent

ScriptName WZTestOneHanded extends QuestQuest Property WZSkill AutoEvent OnStoryIncreaseSkill(string OneHanded)		If (Game.GetPlayer().GetBaseAV("OneHanded") == 101)        Game.GetPlayer().SetAV("OneHanded", 100)				EndIfWZSkill.Stop()endEvent


User avatar
Laura Hicks
 
Posts: 3395
Joined: Wed Jun 06, 2007 9:21 am

Post » Wed Jun 20, 2012 10:08 pm

That would be fantastic thanks! The problem is getting the stat to incrementally increase for every skill level up, the hard part being doing so repeatedly when 101 is reached.

Hmm, what does the 'Skill Usage Mult' for Magic Effects do? I assume it has something to do the with Magic Skill...

Doesn't work if it's custom magic effect so don't bother...
User avatar
Jade
 
Posts: 3520
Joined: Mon Jul 10, 2006 6:42 am

Post » Thu Jun 21, 2012 2:12 pm

Finally got it completely working using the shares event button on the sm event node (which I couldn't see because the window is too big and I had to adjust my screen settings to click).

Now I have to apply it to the other skills/stats, stop leveling altogether, decide how perks will be gained, hide the level bar etc, and turn off level scaling.

EDIT: Damn, serious problem I didn't notice before. The skill xp generated doesn't reduce when the skill is set back to 100, so it only takes 1 skill xp to get back up to 101 again. If I can't fix this everything will be for naught.

EDIT: Hmm unless I set the max skill at 100 again, and use a global variable that increases with skill use to track skill exp that sets the skill at 101 when the appropriate level is reached, and sets the variable back to 0. Or I could forget the skill increase altogether and use the variable to effect the health increment. HMMMMMM.

EDIT: ahh the Game.IncrementSkillBy() script works with negative values. Phew! Crisis averted.
User avatar
i grind hard
 
Posts: 3463
Joined: Sat Aug 18, 2007 2:58 am

Previous

Return to V - Skyrim