uberlux Posted January 29, 2014 Share Posted January 29, 2014 I'm currently working on a house mod with alot of scripted items in the house that help the player, such as vending machines and s#*!. I'm up to making a vito-matic vigor tester machine however i got a problem, I know its possible cause I've seen it done in the underwater house mod. I need to write a script that gets the amount of special points (total), that the player has and then set that to the total amount of points they can choose when opening the vigor tester. The idea is that since the house mod will be more progressed than the tutorial vigor tester, it will need to account for any special points earned total. All I'm asking is if anyone can tell me how to script this, It's a bit beyond what I'm used to with scripting. Thanks in advance, Even better if someone has an example of a script doing this (or similar) so i can examine it and adapt, helps me learn. Thanks in advance. Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted February 1, 2014 Share Posted February 1, 2014 Try something like: scn VigorTesterScript int iTotalPoints BEGIN OnActivate set iTotalPoints to Player.GetBaseAV Strength set iTotalPoints to iTotalPoints + Player.GetBaseAV Perception set iTotalPoints to iTotalPoints + Player.GetBaseAV Endurance set iTotalPoints to iTotalPoints + Player.GetBaseAV Charisma set iTotalPoints to iTotalPoints + Player.GetBaseAV Intelligence set iTotalPoints to iTotalPoints + Player.GetBaseAV Agility set iTotalPoints to iTotalPoints + Player.GetBaseAV Luck SetSPECIALPoints iTotalPoints END This tallies up the player's base values, then opens the menu with that value, letting them reassign the values without giving more. Link to comment Share on other sites More sharing options...
Recommended Posts