I need a second brain to figure out how to properly fill a property for InterScript communication from a dummy quest to some other quest's aliases script.
Here's how I'd like it to work:
Let's say I have one script called "MySendingInfoScript" wanting to send some bool info (true or false) to another script "MyReceivingInfoAliasScript" attached to several aliases.
"MyReceivingInfoAliasScript" attached to several aliases would go something like that:
Scriptname MyReceivingInfoAliasScript extends AliasReference bool Property InfoSent = false Event OnSomeEvent() If InfoSent DoSomeStuff() Else DoSomethingElse() EndIf EndEvent
Then I need "MySendingInfoScript" to properly reference the Aliases scripts which are going to use that info. Same script attached to several Aliases, they all need to get the info. I've done something like:
Scriptname MySendingInfoScript extends MyDummyQuest MyReceivingInfoAliasScript Property Alias_MyAlias00 Auto MyReceivingInfoAliasScript Property Alias_MyAlias01 Auto MyReceivingInfoAliasScript Property Alias_MyAlias01 Auto Event OnUpdate() ; for the sake of the example Alias_MyAlias00.InfoSent = true Alias_MyAlias01.InfoSent = true Alias_MyAlias02.InfoSent = true EndEvent
Somehow, the way I fill the properties doesn't look right - I also need to reference the quest which uses these aliases, right? I can't figure out how to do that...
Could a kind soul help me avoid brain CTD here?...
A thousand thanks in advance!
Edit: Uh... could it be just adding something like "Alias_MyAlias00 = MyDummyQuest.GetAlias(1) as MyReceivingInfoAliasScript " to the script?