Scripting help please.

Post » Wed Aug 28, 2013 11:34 am

Alright, im working on scripting a vit-o-matic vigor tester machine, like the one in doc Mitchell's house used in the tutorial to set your special stats.

Im decently familiar with scripting except just at this moment i found a problem i can't get around or find anywhere on the net.

Ill just paste the original script below:

However do note, i excluded quest related sections, which stops you from using the machine again.

1. ScriptName 00VigorSCRIPT
2.
3. BEGIN OnActivate
4. ShowLoveTesterMenuparams 40;
5. END
I just numbered the lines so its easier.
So on line 4, it says 'params 40;' If you take this section out leaving only: showlovetestermenu then it causes a problem, upon opening it in-game it considers the player having no special skills and will not let them leave the machine until they minus all skills.
So clearly the params are vital.
Now what i want this machine to do is let players who use it be able to relocate their special skills, so basically it wont take any points away or add any, so the player can move points around between skills. I know this is possible because im certain the under water house had something that did the exact same thing.
The problem is that the whole params is getting in the way. If i set specific params, that will take away or give points to players, i dont want it to do that. Is there a way i can set its parameter to 'x' or something where it will base its params on the amount of special points the player owns?
I hope someone here knows to help out, if anyone has some suggestions or work arounds, those are most welcome too.
User avatar
Kayleigh Mcneil
 
Posts: 3352
Joined: Thu Jun 29, 2006 7:32 am

Return to Fallout: New Vegas