Difference between revisions of "Variables and Properties"
Jump to navigation
Jump to search
→From a non-owned fragment / other quest script
imported>Evernewjoy |
imported>Evernewjoy |
||
Line 139: | Line 139: | ||
==From a non-owned fragment / other quest script== | ==From a non-owned fragment / other quest script== | ||
Need to write this... basic gist: You need to define a property in your script (and set it through the editor interface to be the other quest whose properties you want access to), then you can access that property's properties. In other words, your script has a property of the other quest; then you access that property's properties. | Need to write this... basic gist: You need to define a property in your script (and set it through the editor interface to be the other quest whose properties you want access to), then you can access that property's properties. In other words, your script has a property of the other quest; then you access that property's properties. | ||
[[User:Evernewjoy|Evernewjoy]] | |||
Accessing a script's variables from another script | Accessing a script's variables from another script | ||
Line 149: | Line 151: | ||
Scriptname RamaJRMasterScript extends ObjectReference | Scriptname RamaJRMasterScript extends ObjectReference | ||
Line 171: | Line 173: | ||
(code above was essentially copied from earlier in this article, but this is a complete running script) | (code above was essentially copied from earlier in this article, but this is a complete running script) | ||
Line 185: | Line 187: | ||
Note that the message used in this script must be created by you if you want to use this script example, use the %.0f twice in your messege to accommodate the two variables I am passing. I pass one variable just so you have a way to know your message itself is working properly: | Note that the message used in this script must be created by you if you want to use this script example, use the %.0f twice in your messege to accommodate the two variables I am passing. I pass one variable just so you have a way to know your message itself is working properly: | ||
Scriptname RamaWorkingSCRIPT extends ObjectReference | Scriptname RamaWorkingSCRIPT extends ObjectReference |