Jump to content

Scripting question


HailHell

Recommended Posts

Not as written.

 

With this you can:

Int Property Variable Auto Hidden
 
Event OnActivate(ObjectReference akActionRef)
    Variable += 1
EndEvent

On your other script you will need to use one of these two methods: http://www.creationkit.com/Function_Reference#Accessing_Functions_From_Other_Scripts

 

EDIT: Quick note. I used Hidden in the example, it does not need to be hidden from the CK's property box. All it needs is to be a property variable rather than a local script variable.

Edited by IsharaMeradin
Link to comment
Share on other sites

If you are using it as a dialogue condition, using a global might be more desired.

But if you just want other scripts to view it, use the above script.

 

Edit:

For the above method, here is a resource that might be helpful since it goes over the fringe cases as well as the basic cases for accessing Properties from other scripts:

Variables and Properties

Edited by Arron Dominion
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...