Referencing an Alias in another Actor's Fragment

Post » Wed Jun 20, 2012 5:23 am

Hello!

First time poster with a stupid question. I'd appreciate the help all the same.

I'm trying to have a character turn around, begin combat with another character and ask for help all at the same time. This seems like an easy task. I assumed I'd just use StartCombat inside of a dialogue start Papyrus Fragment. I may be totally wrong there too though.

Where I've run into trouble is referencing the second actor. I use akSpeaker.StartCombat(?). What goes in the "?". I can't use properties in a fragment because the editor reports an error so I would assume I'd have to use a variable with an alias?

I don't know. I'm totally lost on this pretty simple process. I'd appreciate the help a lot.

Thanks so much and see you around!
User avatar
Melanie
 
Posts: 3448
Joined: Tue Dec 26, 2006 4:54 pm

Post » Tue Jun 19, 2012 8:44 pm

I think it should work if you add an alias (eg TargetNPC) pointing to the second actor and then just use the alias' name (eg TargetNPC), or alias.GetReference(eg TargetNPC.GetReference()). But I don't know, fragments leave me totally confused.
User avatar
Rachyroo
 
Posts: 3415
Joined: Tue Jun 20, 2006 11:23 pm

Post » Wed Jun 20, 2012 8:05 am

If I remember correctly, properties can be used in a fragment but the fragment must be saved (which creates a file for the property manager to edit) before they can be added. Try adding a single comment line and saving, or something, then adding your properties.

Cipscis
User avatar
Arnold Wet
 
Posts: 3353
Joined: Fri Jul 07, 2006 10:32 am


Return to V - Skyrim