HailHell Posted February 4, 2015 Share Posted February 4, 2015 int variable event onactivate(objectreference akactionref) variable += 1endevent Can i retrieve the variable value with a different script? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted February 4, 2015 Share Posted February 4, 2015 (edited) 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 February 5, 2015 by IsharaMeradin Link to comment Share on other sites More sharing options...
ArronDominion Posted February 5, 2015 Share Posted February 5, 2015 (edited) 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 February 5, 2015 by Arron Dominion Link to comment Share on other sites More sharing options...
HailHell Posted February 6, 2015 Author Share Posted February 6, 2015 ty <3 Link to comment Share on other sites More sharing options...
Recommended Posts