Locating the duration for werewolf effects.

Post » Sun Jun 17, 2012 9:05 pm

Just that. I looked at all the spell effects, everything was a constant effect. I looked for "beast form" too, nothing could be found for a duration. Also typing in "Werewolf" "werewolve", "were w" into all, didn't get the results... Even just typing in "were" I could not find the results. I looked at the quest part too, no beast form duration in sight. I'm stumped, and I had no idea where to look now. If I can only find where the duration is, I should be able to make a mod with more old fashioned werewolves. Someone on the Nexus made a mod for a longer transformation, so it must be possible, but I just don't know how to locate the duration. I already know how to alter the stats, it's just that one thing.

Does anyone know where the duration for werewolf form is located?
User avatar
Cheville Thompson
 
Posts: 3404
Joined: Sun Mar 25, 2007 2:33 pm

Post » Mon Jun 18, 2012 12:00 am

THere's a global value for "BeastFormTimer" or something along those lines. Btw, I;m currently working on a mod aiming to overhaul werewolevs in a manner that's likely similar to yours, we have about four 3d artists, two scripters (one of which is myself), and a handful of testers and miscellanous people. I'd be open to collaberation, especially
considering how many errors my current iterations of the timing script is returning...(the LInk can be found in my signature, its a Nexus forum thread though there was a gamesas forum thread that died off.


(current iteration of the script is below if your intrested, with the error messages directly following it.)
.
scriptname cohTransformTiming extends Quest{Controls the Timing for transformation.}int property cohGetMoonPhase autofloat property cohPhaseDay autobool property cohCanTransform autobool property cohbmvar autoSpell property WerewolfChangeEffect auto;declaring propertiesEvent OnUpdateGameTime()RegisterForUpdateGameTime(5.0)float timeOfDay = TimeOfDayGlobalProperty.GetValue()cohGetMoonPhase = (( GameDaysPassed + ( TimeOfDay / 24 ) - 0.5 ) % 24 )cohPhaseDay = cohGetMoonPhase / 3;/List of moon phases returned by cohGetMoonPhase calculation0 = full moon1 = 3/4 waning2 = half waning3 = 1/4 waning4 = new moon5 = 1/4 waxing6 = half waxing7 = 3/4 waxing/;If game.GetCurrentTime() >= 20 || game.GetCurrentTime() <= 6 && cohPhaseDay == 1SetStage(5)cohCanTransform == trueelseif TimeOfDay <= 20 || TimeOfDay >= 6 && cohPhaseDay == 0SetStage(0)cohCanTransform == falseendifif GetGlobalValue(PlayerIsWerewolf) == 1if cohCanTransform == trueWerewolfChangeEffect.Cast(player, player)elseif game.getplayer().HasMagicEffect(WerewolfChangeEffect) == true && cohCanTransform == falsegame.getplayer().DispelSpell(WerewolfChangeEffect)endifendifEndEvent


Starting 1 compile threads for 1 files...Compiling "cohTransformTiming"...c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(13,18): variable TimeOfDayGlobalProperty is undefinedc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(13,42): none is not a known user-defined typec:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(13,6): type mismatch while assigning to a float (cast missing or types unrelated)c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(14,21): variable GameDaysPassed is undefinedc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(14,36): cannot add a none to a float (cast missing or types unrelated)c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(14,57): cannot subtract a none from a float (cast missing or types unrelated)c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(14,65): Cannot calculate the modulus of non-integersc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(14,0): type mismatch while assigning to a int (cast missing or types unrelated)c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(28,8): GetCurrentTime is not a function or does not existc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(28,8): cannot call the member function GetCurrentTime alone or on a type, must call it on a variablec:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(28,25): cannot compare a none to a int (cast missing or types unrelated)c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(28,25): cannot relatively compare variables to Nonec:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(28,39): GetCurrentTime is not a function or does not existc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(28,39): cannot call the member function GetCurrentTime alone or on a type, must call it on a variablec:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(28,56): cannot compare a none to a int (cast missing or types unrelated)c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(28,56): cannot relatively compare variables to Nonec:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(35,18): variable PlayerIsWerewolf is undefinedc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(35,3): GetGlobalValue is not a function or does not existc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(35,36): cannot compare a none to a int (cast missing or types unrelated)c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(37,26): variable player is undefinedc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(37,34): variable player is undefinedc:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(38,24): type mismatch on parameter 1 (did you forget a cast?)c:\program files (x86)\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\cohTransformTiming.psc(38,61): cannot compare a none to a int (cast missing or types unrelated)No output generated for cohTransformTiming, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on cohTransformTiming
User avatar
Susan
 
Posts: 3536
Joined: Sun Jun 25, 2006 2:46 am

Post » Sun Jun 17, 2012 3:20 pm

By spell effects, did you mean the Magic Effects tab, or the Spells tab? If the former, then try looking in the latter, since it's essentially a Greater Power and those are filed (as Powers) under the Spells tab.
User avatar
Sista Sila
 
Posts: 3381
Joined: Fri Mar 30, 2007 12:25 pm

Post » Sun Jun 17, 2012 10:08 pm

^ Werewolf transformation duration is defnitely done with a global, that's how the werewolf toggle worked, I know, i talked to the creator.
User avatar
Tai Scott
 
Posts: 3446
Joined: Sat Jan 20, 2007 6:58 pm

Post » Sun Jun 17, 2012 7:48 pm

^ Werewolf transformation duration is defnitely done with a global, that's how the werewolf toggle worked, I know, i talked to the creator.
Is said global in the Settings tab under Gameplay? There's no Global tab so I'm not sure where to look to find them. I assumed it worked like a Power because it's once per day, thus my comment on the Spells tab.
User avatar
Daniel Lozano
 
Posts: 3452
Joined: Fri Aug 24, 2007 7:42 am

Post » Sun Jun 17, 2012 4:43 pm

PlayerWerewolfShiftbacktime

^ float value under global.

To find it, type in "were" or "werewolf" and pick *all* on the bottom of the tree.

I don't know if that's really what the name suggests.
User avatar
Everardo Montano
 
Posts: 3373
Joined: Mon Dec 03, 2007 4:23 am

Post » Sun Jun 17, 2012 6:10 pm

What exactly are you looking for? The standard duration, or the current calculation for when to change back?

It would help to know what you're trying to do -- I'm happy to explain how that system works, but it's a big hairy beast (pun only slightly intended). :-D
User avatar
Manny(BAKE)
 
Posts: 3407
Joined: Thu Oct 25, 2007 9:14 am

Post » Sun Jun 17, 2012 7:53 pm

along these lines, if anyone knows how to fully change the end-result form of beast form (i'm working on a mod to create a dragon form spell; started by duplicating beast form) to another animal, such help would be much appreciated.
User avatar
Riky Carrasco
 
Posts: 3429
Joined: Tue Nov 06, 2007 12:17 am


Return to V - Skyrim