Yulliah Posted November 6, 2017 Share Posted November 6, 2017 Alright, I have a series of quests made, but they won't run properly and I need some scripting advice... I have a unique actor in an alias in Quest AUpon completion of Quest A, stage 10 of Quest B will be setAnd in Quest B the unique actor again is filled in an aliasHowever, because the actor is filled with an alias from Quest A, it won't fill Quest B I tried addingAlias.Clear()to the fragment of the last stage of Quest A before setting stage 10 of Quest Band upon stage 10 in Quest B added Alias.ForceRefIfEmpty(ActorWorldreference)to the fragment (Alias and ActorWorldreference would both have the right properties made, of course, the script compiles perfectly but just does not do what I want it to do) This didn't work. Does anyone have an idea on how to empty the Reference of the Quest A Alias, and make Quest B refill it? (I have to do this several times to different ReferenceObjects and Actor References in multiple quests that I really want to have their own Quest Names, so I'm not really looking for 'why not make it all one quest' answers) Link to comment Share on other sites More sharing options...
Yulliah Posted November 6, 2017 Author Share Posted November 6, 2017 I read in another topic that checking the 'allow reserved' box might fix my problems... No scripting needed...If not, I'll come back here... :D Link to comment Share on other sites More sharing options...
SKKmods Posted November 6, 2017 Share Posted November 6, 2017 If .clear() or allow reserved dont work, then questA.stop() will release the reference. Quest B can fill with ForceRefTo() in OnQuestInit() .. dont use OnInit() Link to comment Share on other sites More sharing options...
Yulliah Posted November 7, 2017 Author Share Posted November 7, 2017 It's working!!! Link to comment Share on other sites More sharing options...
javaplaza Posted May 9, 2019 Share Posted May 9, 2019 (edited) how could i get clear to work in a script and not a stage fragment? Edited May 9, 2019 by javaplaza Link to comment Share on other sites More sharing options...
Yulliah Posted May 9, 2019 Author Share Posted May 9, 2019 What is it you are trying to do? Link to comment Share on other sites More sharing options...
Evangela Posted May 9, 2019 Share Posted May 9, 2019 how could i get clear to work in a script and not a stage fragment? Call it on the referencealias, but it has to be a property and I don't know if doing that will make the reference persistent. Link to comment Share on other sites More sharing options...
Yulliah Posted May 9, 2019 Author Share Posted May 9, 2019 Using just the clear function in the stage fragment didnât solve the problem in my case... i had to check the allow reserved box for it to work for me... Depending on what youâre trying to do in your script, youâll still have to check the box on the alias... Link to comment Share on other sites More sharing options...
Recommended Posts