Just some general Papyrus questions

Post » Mon Jun 18, 2012 4:21 am

Great language thanks beth.
But there are some things that aren't fully clear to me.

-Am I right that the only way to interact with game elements (references globals actors...) is to define them as a property (apart from Game.getplayer()) and then assign this property in the CK?.
-Is it possible to launch a script with conditional properties?
Something like
Boolean property doalternative auto

and then assigning true or false through the cs when needed on a specific alement

-the whole concept of querying other scripts properties feels strange.

are all scripts running at all times and i can simply read a property from another script at any time (considering threading effects of course)


And something more advanced:
Is it possible to do our own multi threading within a script (one can dream right :D )

Thanks for any help
User avatar
Stefanny Cardona
 
Posts: 3352
Joined: Tue Dec 19, 2006 8:08 pm

Post » Sun Jun 17, 2012 7:19 pm

If a value is passed as a parameter to an event or other function, then it doesn't need to be defined as a property, but generally you'll want to use a property.

You can do what you've suggested with a "conditional" property that changes what the script does.

Cipscis
User avatar
JD bernal
 
Posts: 3450
Joined: Sun Sep 02, 2007 8:10 am

Post » Sun Jun 17, 2012 4:05 pm

Yes, in order to interact with anything in the game, it has to come from a property somewhere. You can store the value of a property into a variable, or pass it to a function, but the property is where it starts.

Yes, you can simply read a property on any other script at any time (providing you can access that script, which may require another property).

The script system is inherently multi-threaded, but there are no commands to create your own threads (and no real synchronization primitives like spinlocks or critical sections).
User avatar
lisa nuttall
 
Posts: 3277
Joined: Tue Jun 20, 2006 1:33 pm


Return to V - Skyrim