Annoying missing script functions

Post » Wed Jun 20, 2012 1:02 pm

Okay, I need to get this off my chest, because it's making me very mad, and a fix would be unbelievably simple. Maybe I'll get lucky and the devs will read this.

There are a lot of functions which would be extremely useful to have, but are missing for reasons that I simply can't fathom. In the Cell script, there's a "SetPublic()" function, which lets us set whether the cell is public or not... but there's no "GetPublic()" function, so we can tell what it is? ObjectReference has a "GetItemHealthPercent()" function, which let's us see what an item's condition is (how much it's been improved by Smithing), but there's no "SetItemHealthPercent()", letting us set it ourselves manually? What is this?

Why are there Set functions with no Get equivalent? Why are there Get functions with no Set equivalent? This makes no sense!

If I'm mistaken, and these functions are just hiding, please, please, for the love of god, please tell me....


Also, how do I give the player more perk points to spend from a script? I can't seem to find it anywhere, and forcefully increasing/decreasing a skill seems... dirty.
User avatar
alicia hillier
 
Posts: 3387
Joined: Tue Feb 06, 2007 2:57 am

Post » Wed Jun 20, 2012 2:07 pm

Perk points are hard coded in the game engine. You can add or remove perks by script, but not points.

With SKSE when a papyrus link is released, maybe....
User avatar
Phillip Hamilton
 
Posts: 3457
Joined: Wed Oct 10, 2007 3:07 pm

Post » Wed Jun 20, 2012 1:22 pm

Great. Looks like all the good mods are going to end up requiring the script extender, just like Oblivion...

On the plus side, looks like everybody's going to be using the script extender anyway, just like Oblivion, because all the good mods require the script extender, just like Oblivion...


...OR, Bethesda can get their act together and put basic functions into papyrus so that we don't have to <.<
User avatar
Destinyscharm
 
Posts: 3404
Joined: Sun Jul 23, 2006 6:06 pm

Post » Wed Jun 20, 2012 5:46 pm

Perhaps SKSE may help with this in the future but the methods, Cell.GetPublic at least, do not appear to be hiding in Papyrus.

In particular, I added to Cell.psc
"bool Function GetPublic() native"
and the debug log spits out
- error: Unbound native function "GetPublic" called

:/


Regarding adding Perk Points, this has been done both through SKSE and through ScriptDragon. E.g. searching for `perk point' on Skyrim Nexus brings you to this source:
https://github.com/NullCascade/Null-s-Elder-Scrolls-Modifications/blob/a13788aafce4554ff45e58b0bacfec0fd32f104e/Script%20Dragon/soulstoperks.cpp

Good luck!
User avatar
Trent Theriot
 
Posts: 3395
Joined: Sat Oct 13, 2007 3:37 am


Return to V - Skyrim