Jump to content

Script to add SPECIAL points?


DarkFaeGaming

Recommended Posts

Want to make something that will trade caps for SPECIAL points, and didn't have too much luck last time I tried something similar, but just wanted to know if there's a script that I can attach to something so that when it's activated, you can trade 5k caps for example for a SPECIAL point that you can then put into any of the skills.

Perhaps also have an option as well that you can also trade caps for skill points

Link to comment
Share on other sites

For minimal scripting , you could use terminals.

 

https://geckwiki.com/index.php/Terminal

 

And after you set up all those ... then you use the result script field to execute the code that will add stats points and remove caps.

But also each item needs a condition to check how many caps the player has ... which you put in the condition field for each.

 

So for example your top level terminal selects between : special points / first half skill list / second half skill list . Since a terminal screen will only have enough room to show about 7,8 choices.

So selecting from the first screen to go into special pts.

Then you list all the special pts , and on each special selection ...

In the result script of Strength for example you put :

 

Player.ModAV Strength 1

Player.RemoveItem Caps001 5000

 

And in the condition field of the same item , you put this ...

 

GetItemCount : Caps001 >= 5000

Run on Reference : PlayerRef

 

Then as soon as the player has less than 5000 caps ... none of the choices with that condition will show. Therefore cannot run the result script.

 

Here is the Stats list page from the wiki

https://geckwiki.com/index.php/Stats_List

 

Hope that helps

Link to comment
Share on other sites

For minimal scripting , you could use terminals.

 

https://geckwiki.com/index.php/Terminal

 

And after you set up all those ... then you use the result script field to execute the code that will add stats points and remove caps.

But also each item needs a condition to check how many caps the player has ... which you put in the condition field for each.

 

So for example your top level terminal selects between : special points / first half skill list / second half skill list . Since a terminal screen will only have enough room to show about 7,8 choices.

So selecting from the first screen to go into special pts.

Then you list all the special pts , and on each special selection ...

In the result script of Strength for example you put :

 

Player.ModAV Strength 1

Player.RemoveItem Caps001 5000

 

And in the condition field of the same item , you put this ...

 

GetItemCount : Caps001 >= 5000

Run on Reference : PlayerRef

 

Then as soon as the player has less than 5000 caps ... none of the choices with that condition will show. Therefore cannot run the result script.

 

Here is the Stats list page from the wiki

https://geckwiki.com/index.php/Stats_List

 

Hope that helps

Cheers. I'll give this a go tomorrow.

Link to comment
Share on other sites

Coolies , you got it working :wink:

 

Just as a content writer critique ...

 

You should make it able to buy per one skill pt ... for much less per pt of course.

But then the player can use your new item for less than the 5K , or even divide up a chunk of money more diversely , rather than have to buy a 10 skill pt block all at once.

Albeit that could also be a good option to buy 10 pts at a time for less per pt.

 

The 1 special pt for 5k seems good though.

 

And maybe you can expand it to some temp bonuses ?

 

Example: give some perk for 1 day for 1k

Link to comment
Share on other sites

  • Recently Browsing   0 members

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