Jump to content

Editing Skill Books


RideTheCatfish

Recommended Posts

Ok... i never attached a script in a book/ingestible.. you need to try the Begin List http://geck.bethsoft.com/index.php/Begin .

The script would be simple,just use player.modactorvalue guns -1;player.modav sneak 3 like:

 

begin "Don't know... OnTriger maybe...?"

player.modav guns -1

player.modav Sneak 3 ;if the book gives +3 sneak,don't use this line.

activate

end

Link to comment
Share on other sites

If the books in NV work the same as FO3, the player 'Equips' them

 

 

scn SneakBookScript

short iPlayerBG
short iPlayerSN

Begin OnEquip player

set iPlayerBG to Player.GetAV Guns
set iPlayerSN to Player.GetAV Sneak

if (iPlayerBG > 0)
 Player.modav Guns -1
endif

if (iPlayerSN > 97)
 if (iPlayerSN == 98))
  Player.modav Sneak 2
 elseif (iPlayerSN == 99)
  Player.modav Sneak 1
 elseif (iPlayerSN == 100) ;Do nothing
 endif
else
 Player.modav Sneak 3
endif

ShowMessage MyCustomStatChangeMessage

player.RemoveItem BookSkillSneak 1 1
ModPCMiscStat "Books Read" 1

END

Link to comment
Share on other sites

Ok... just a comment,your script is good but you don't need to check the Skill value . It is caped at 100,if you use the console to add 1000 to sneak the skill stop at 100 with no further effect.

That's good to know. I wasn't sure and haven't tried it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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