Alias problems, need help

Post » Tue Jun 19, 2012 9:25 pm

Whenever I attach an alias to an item or actor now, they no longer use their scripts or dialogue. When I remove the alias the scripts and dialogue function properly, what might I be doing wrong?
User avatar
Ashley Tamen
 
Posts: 3477
Joined: Sun Apr 08, 2007 6:17 am

Post » Tue Jun 19, 2012 5:18 pm

Please clarify...

Not sure what you mean "attach an alias". If you make an alias called myactor that pointing to your NPC Bob, you can attach scripts to myactor that will take precedence (I believe) over the scripts that were originally given to Bob. I should think that Bob's original script should still fire when possible, unless myactor scripts are overriding them.

Why not just give the scripts to myactor instead? It's usually a cleaner method as if the quest is over those scripts won't run. If the script needs to run forever, attach them to the alias in a quest that won't end.
User avatar
Lawrence Armijo
 
Posts: 3446
Joined: Thu Sep 27, 2007 7:12 pm

Post » Tue Jun 19, 2012 7:32 pm

Whenever I attach an alias to an item or actor now, they no longer use their scripts or dialogue. When I remove the alias the scripts and dialogue function properly, what might I be doing wrong?
I too have this issue. These actors that fill an alias. are they vanilla NPCs? I'm not 100% certain, so I'm surmising a bit, but if so, many vanila NPCs may have other quests that need to use them, which may block yours. R-click and select users, to see what other quests are using them. Check the alias tab of these quests and see if the reserved flag set. I think that means that they are being held until the quests releases them. Whether you should unreserve them risks breaking the vanilla quest.
User avatar
Jon O
 
Posts: 3270
Joined: Wed Nov 28, 2007 9:48 pm

Post » Tue Jun 19, 2012 6:48 pm

I too have this issue. These actors that fill an alias. are they vanilla NPCs? I'm not 100% certain, so I'm surmising a bit, but if so, many vanila NPCs may have other quests that need to use them, which may block yours. R-click and select users, to see what other quests are using them. Check the alias tab of these quests and see if the reserved flag set. I think that means that they are being held until the quests releases them. Whether you should unreserve them risks breaking the vanilla quest.
No they aren't vanilla NPCs, I created them.
Please clarify...

Not sure what you mean "attach an alias". If you make an alias called myactor that pointing to your NPC Bob, you can attach scripts to myactor that will take precedence (I believe) over the scripts that were originally given to Bob. I should think that Bob's original script should still fire when possible, unless myactor scripts are overriding them.

Why not just give the scripts to myactor instead? It's usually a cleaner method as if the quest is over those scripts won't run. If the script needs to run forever, attach them to the alias in a quest that won't end.
Well, if I create an alias referencing my actor, they no longer will use any dialogue in game. But when I delete the alias, they use the dialogue in game. Regardless if I give dialogue to the alias or directly to the actor, it still will not work.
User avatar
Marguerite Dabrin
 
Posts: 3546
Joined: Tue Mar 20, 2007 11:33 am

Post » Tue Jun 19, 2012 1:16 pm

It happens with objects too. I created a letter and gave it a DefaultOnReadSetQuestStage script, and when I read it, it changes the quest stage in game. However, when I reference that letter with an alias, it no longer will set the stage in game.
User avatar
Samantha Jane Adams
 
Posts: 3433
Joined: Mon Dec 04, 2006 4:00 pm

Post » Tue Jun 19, 2012 10:50 pm

What you should be doing is assigning the dialogue to the alias in the first place. This is a cleaner method (albeit not always suitable to your purposes). If you only require the actor to say their dialogue during your quest, then give the dialogue to the alias in the quest. So that when the quest ends, the actor won't need to (and won't ) say those dialogue lines again, making it much cleaner if you want to use the actor in another quest.

The reason they no longer use any dialogue given to their editor ID is probably because the point of the alias is to override the native dialogue topics.

How are you assigning the dialogue to the alias (you claim it doesn't work)?
User avatar
Prue
 
Posts: 3425
Joined: Sun Feb 11, 2007 4:27 am

Post » Tue Jun 19, 2012 4:40 pm

I think I was using GetIsAliasRef, is that correct?
User avatar
jaideep singh
 
Posts: 3357
Joined: Sun Jul 08, 2007 8:45 pm

Post » Tue Jun 19, 2012 5:06 pm

Using it for what I can't find that function n the wiki. You should put the actor in the alias and attach an actor scripting for the alias to a ReferenceAlias script. While the actor is in the alias this will have presidence over actor script.

The same goes for packages. See the wiki tutorial on this.
User avatar
Paul Rice
 
Posts: 3430
Joined: Thu Jun 14, 2007 11:51 am


Return to V - Skyrim