Topic Fragments & Alias scripts not talking

Post » Mon Oct 12, 2015 10:15 am

I have a topic fragment (Extends TopicInfo Hidden?) and an Alias script (extends AliasReference), all under the same quest. Problem is that I can't get the topic fragment to effect changes in the Alias script. Or even recognise Alias script for that matter. I know variables are private, and therefore out of scope beyond its own script, but I though casting would overcome the difference but I couldn't do it.

I'm able to get an alias script (extends RefAlias), to run functions in the quest script even though the script types are dissimilar simply by adding the property

QuestScriptName Property PropertyName Auto (then target the quest)?. I thought this was a way to acess variables & propertys in another script - So why can't I do the same with topic fragments.

All I'm attempting to do with the alias script is to set code within one of its States to run. Using topics to control the actions of an NPC alias. Basically Click on the word Jump and the alias NPC will jump

User avatar
Darlene Delk
 
Posts: 3413
Joined: Mon Aug 27, 2007 3:48 am

Post » Mon Oct 12, 2015 9:36 pm

Can you not get to fill the reference alias property in the topic info script? I just tested it and had no problems using the CK to fill the property. Or are you having some other difficulties?

Spoiler
Scriptname _test_refalias extends ReferenceAlias  Event OnInit()endEvent

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 2Scriptname zMJO_TIF__020048AE Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_1Function Fragment_1(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEDebug.MessageBox("Hello");END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin comment_test_refalias Property kRef Auto
User avatar
willow
 
Posts: 3414
Joined: Wed Jul 26, 2006 9:43 pm


Return to V - Skyrim