How Do I Add 1 Perk Point ?

Post » Mon Nov 19, 2012 4:23 am

How add 1 or more perk points in the script ?
I dont want to add a perk point to the skill tree directly, i know how to do that, i would like to add a perk point as if you level up so the player can use it anywhere.
Thx.
User avatar
biiibi
 
Posts: 3384
Joined: Sun Apr 08, 2007 4:39 am

Post » Sun Nov 18, 2012 6:44 pm

There is no commands to do that directly.
The way I do it, is to chose a skill, and add exp to it. Just enough to level up once. Then use another command to lower both skill and level.
User avatar
suzan
 
Posts: 3329
Joined: Mon Jul 17, 2006 5:32 pm

Post » Mon Nov 19, 2012 12:41 am

There seems to be a couple of SKSE functions you can use but there isn't a write up on them in the CK wiki yet.

Game.ModPerkPoints(1)

Or

Game.SetPerkPoints(Game.GetPerkPoints() + 1)

- Hypno
User avatar
Lillian Cawfield
 
Posts: 3387
Joined: Thu Nov 30, 2006 6:22 pm

Post » Sun Nov 18, 2012 6:58 pm

i am geting 2 error message after compiling using : Game.ModPerkPoints(1)
ModPerkPoints is not a function or does not exist
cannot call the member function ModPerkPoints alone or on a type, must call it on a variable

i am geting 5 error message after compiling using : Game.SetPerkPoints(Game.GetPerkPoints() + 1)
GetPerkPoints is not a function or does not exist
cannot call the member function GetPerkPoints alone or on a type, must call it on a variable
cannot add a none to a int (cast missing or types unrelated)

SetPerkPoints is not a function or does not exist
cannot call the member function SetPerkPoints alone or on a type, must call it on a variable


User avatar
Steven Hardman
 
Posts: 3323
Joined: Sun Jun 10, 2007 5:12 pm

Post » Sun Nov 18, 2012 5:25 pm

Do you have SKSE including the source scripts installed?

It is required for you to use these functions. it will also mean the users of your mod will need it

- Hypno
User avatar
Enie van Bied
 
Posts: 3350
Joined: Sun Apr 22, 2007 11:47 pm

Post » Mon Nov 19, 2012 4:53 am

no i dont, can you tell me please how do i do it ?
thx.
User avatar
Gen Daley
 
Posts: 3315
Joined: Sat Jul 08, 2006 3:36 pm

Post » Sun Nov 18, 2012 11:07 pm

It's a seperate program. It stands for Skyrim Script Extender, which basically means that it adds loads of new functions to the modders tool belt. It can be found http://skse.silverlock.org/

- Hypno
User avatar
Talitha Kukk
 
Posts: 3477
Joined: Sun Oct 08, 2006 1:14 am

Post » Sun Nov 18, 2012 5:11 pm

Thx Mate !
User avatar
Batricia Alele
 
Posts: 3360
Joined: Mon Jan 22, 2007 8:12 am


Return to V - Skyrim