Wiki page for functions available in all scripts?

Post » Sun Jun 30, 2013 9:57 am

Hello world, I noticed that there is no page that lists all the functions like the http://www.creationkit.com/OnInit_%28Papyrus%29 event that are available in all scripts (I'm sure there are others but I forgot them). Shouldn't there be one? I would do it but I'm not sure what it would be called and which categories it would be in.

By the way, I just added the full syntax of all non-native functions to the wiki. It's quite interesting and educational to see how functions like ModObjectiveGlobal actually work, and it helped me understand why GetReference() as Actor is faster than GetActorReference(). I also discovered these two amusing functions in ObjectReference:

; Because Shane got tired of remembering which way to call thisbool Function IsEnabled()	return !IsDisabled()EndFunction

I feel you, Shane.

; Returns self cast as an actoractor Function GetSelfAsActor()	return self as ActorendFunction

This one isn't on the wiki, and for a good reason. It takes less effort to just type out "self as actor", and it runs faster. It's like they put this function in for devs who don't understand casting.

User avatar
Rachyroo
 
Posts: 3415
Joined: Tue Jun 20, 2006 11:23 pm

Post » Sun Jun 30, 2013 11:51 am

It would be great.

Also I can see sources of errors in the syntax you just added such as:

Function SetValueInt(int aiValue)	SetValue(aiNewValue as float) ;aiNewValue should be called aiValueendFunction
User avatar
Terry
 
Posts: 3368
Joined: Mon Jul 09, 2007 1:21 am

Post » Sun Jun 30, 2013 10:47 am

I just rechecked the GlobalVariable script; the parameter is actually defined as aiNewValue. I only copied the missing syntax and pasted it under the original line that was already there on the wiki; looks like the parameters may have incorrect names in some cases.

User avatar
Steve Smith
 
Posts: 3540
Joined: Sat Jun 30, 2007 10:47 am

Post » Sun Jun 30, 2013 6:55 am

Then tomorrow, I'll need to do some decompiling to check if they are defined right in the .pex files.
User avatar
mollypop
 
Posts: 3420
Joined: Fri Jan 05, 2007 1:47 am


Return to V - Skyrim