Editing a fatigue script

Post » Sun May 13, 2012 10:18 am

Hi
I am trying to edit the necessities for purists mod:
http://planetelderscrolls.gamespy.com/View.php?view=Mods.Detail&id=8292

I like it a lot, but i just don't like the fatigue effects, it means that i cannot run anywhere without getting penalties, and walking is too slow.

This is pretty much my first time doing anything with the CC btw, anyway, i opened up the CC.
And saw that this mod adds 4 scripts, i opened up _fd_main as i believe it is the one that deals with fatigue, my question is this: to remove the fatigue effects, can i just delete the whole script, or are there some specific parts i should edit?

begin _fd_mainshort delay   ; used to check fatigue conditions only every 10 framesshort fell_down  ; 0 = no collapse,  1 = collapseshort f_state  ; 0 = no effects,  1 = -3 stats, 2 = -6 stats,  3 = -12 stats and no jumping	  float f_cur   ; current fatiguefloat f_max   ; maximum fatiguefloat f_dif   ; amount of fatigue depletedfloat f_rat   ; fatigue ratioif ( menumode == 1 )  returnendifif ( delay < 10 )  set delay to delay + 1  returnendifset f_cur to ( player->getfatigue )if ( f_cur > 0 )  player->modcurrentfatigue, 10000  set f_max to ( player->getfatigue )  set f_dif to ( -1 * ( f_max - f_cur ) )  player->modcurrentfatigue, f_dif  set f_rat to ( f_cur / f_max )else  set f_rat to 0endifif ( f_rat == 0 )  if ( fell_down == 0 )   if ( f_state == 0 )    disableplayerjumping    player->addspell "_fd_ssea_m12"    messagebox "Your body suddenly collapses!"   elseif ( f_state == 1 )    disableplayerjumping    player->removespell "_fd_ssea_m3"    player->addspell "_fd_ssea_m12"    messagebox "You've over-exhausted yourself!"   elseif ( f_state == 2 )    disableplayerjumping    player->removespell "_fd_ssea_m6"    player->addspell "_fd_ssea_m12"    messagebox "Your body succumbs to over-exertion!"   elseif ( f_state == 3 )    messagebox "You have no energy left to do anything!"   endif   player->modcurrentfatigue, -2   set fell_down to 1   set f_state to 3  endifelseif ( f_rat < 0.15 )  if ( f_state == 0 )   disableplayerjumping   player->addspell "_fd_ssea_m12"   messagebox "You're suddenly extremely fatigued!"   set f_state to 3  elseif ( f_state == 1 )   disableplayerjumping   player->removespell "_fd_ssea_m3"   player->addspell "_fd_ssea_m12"   messagebox "Extreme fatigue suddenly overcomes you!"   set f_state to 3  elseif ( f_state == 2 )   disableplayerjumping   player->removespell "_fd_ssea_m6"   player->addspell "_fd_ssea_m12"   messagebox "You're starting to become over-exhausted!"   set f_state to 3  endif  set fell_down to 0elseif ( f_rat < 0.30 )  if ( f_state == 0 )   player->addspell "_fd_ssea_m6"   messagebox "You've quickly become moderately exhausted!"   set f_state to 2  elseif ( f_state == 1 )   player->removespell "_fd_ssea_m3"   player->addspell "_fd_ssea_m6"   messagebox "You're moderately exhausted!"   set f_state to 2  elseif ( f_state == 3 )   enableplayerjumping   player->removespell "_fd_ssea_m12"   player->addspell "_fd_ssea_m6"   messagebox "You're still moderately exhausted, but feel somewhat better!"   set f_state to 2  endif  set fell_down to 0elseif ( f_rat < 0.60 )  if ( f_state == 0 )   player->addspell "_fd_ssea_m3"   messagebox "You're mildly fatigued!"   set f_state to 1  elseif ( f_state == 2 )   player->removespell "_fd_ssea_m6"   player->addspell "_fd_ssea_m3"   messagebox "You feel better, but are still mildly fatigued!"   set f_state to 1  elseif ( f_state == 3 )   enableplayerjumping   player->removespell "_fd_ssea_m12"   player->addspell "_fd_ssea_m3"   messagebox "You're only mildly fatigued now!"   set f_state to 1  endif  set fell_down to 0else  if ( f_state == 1 )   player->removespell "_fd_ssea_m3"   messagebox "All exhaustive effects are gone!"   set f_state to 0  elseif ( f_state == 2 )   player->removespell "_fd_ssea_m6"   messagebox "You feel much better after regaining your stamina!"   set f_state to 0  elseif ( f_state == 3 )   enableplayerjumping   player->removespell "_fd_ssea_m12"   messagebox "You feel much better after regaining a lot of stamina!"   set f_state to 0  endif  set fell_down to 0endifset delay to 0end
User avatar
Katie Louise Ingram
 
Posts: 3437
Joined: Sat Nov 18, 2006 2:10 am

Return to III - Morrowind