Any idea how to access variables, properties, functions from another script?
so i just extended the script, which seems to work although i have ran into an even bigger issue. I'm not 100% sure its related.
Script A is attached to a persistent xMarker and houses a number of int Properties
Script B extends Script A and is attached to a Book, sets those int Properties to 1 in an OnRead Event.
So I can see through the debug.notifications that the Properties have indeed changed from <
Script A and all its properties are Conditional, through this i'm using GetVMScriptVariable condition so i can give weapons and armor recipes for the forge through books. However, it doesn't appear to be recognizing the changes whnever i read the book. it doesn't show up in the crafting menu.
If I manually set the Properties value to 1 prior to launching the game, the armor recipe will show up in crafting menu. so at some point it can read it. I figured that perhaps it was not able to load automatically, so i read the book, saved, exited game, came back to the forge, still nothing. Any ideas? Either the script properties are being reset (i haven't checked that externally, like with another note to read, im not sure how exactly i haven't thought that far), or perhaps because the script isn't running, the crafting menu cannot access the script.