Jump to content

Question about papyrus script fragments


Revenant0713

Recommended Posts

Posted

Is it possible to get variables in Topic Info script fragments to point to a property?

What I'm trying to do is have a list of dialogue options that correspond to locations around Skyrim. When selecting a location, a fragment runs ``TargetLocation.SetCleared(false)`` causing it to reset.

 

The issue is I don't know how to get the fragment to point towards TargetLocation.

Posted
16 minutes ago, Revenant0713 said:

Is it possible to get variables in Topic Info script fragments to point to a property?

What I'm trying to do is have a list of dialogue options that correspond to locations around Skyrim. When selecting a location, a fragment runs ``TargetLocation.SetCleared(false)`` causing it to reset.

 

The issue is I don't know how to get the fragment to point towards TargetLocation.

 

Add a property to the script "Location property LocToClear auto" for instance.  Then either fill the property directly or set the script to choose one when it is selected (chosing current location maybe?).  Unsure how exactly you want to use this.

Fragments are just scripts that run as part of a package or topicinfo.  They are otherwise perfectly normal scripts.

Posted
6 hours ago, Seijin8 said:

 

Add a property to the script "Location property LocToClear auto" for instance.  Then either fill the property directly or set the script to choose one when it is selected (chosing current location maybe?).  Unsure how exactly you want to use this.

Fragments are just scripts that run as part of a package or topicinfo.  They are otherwise perfectly normal scripts.

 

I see... So the fragment will use the value assigned to the property in the script itself. I wasn't aware they functioned like that. It's my first time trying to make dialogue options.

 

I'll try it out.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...