Jump to content

[LE] Topic Script To Get Property From Quest Script


LegoManIAm94

Recommended Posts

Is there a way to get a property from the quest script in a topic script?

 

For example in my quest myQuest I have a script on that quest called myQuestScript. myQuestScript has a property called Gold001. I want to have access to this property in a topic script which is inside myQuest.

 

Thanks In Advanced

 

myQuestScript & Topic Fragment Script

Scriptname myQuestScript extends Quest 

GlobalVariable Property Gold001 Auto
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 1
Scriptname TIF__00000000 Extends TopicInfo Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
Game.GetPlayer().AddItem(Gold001, 100)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment
Link to comment
Share on other sites

  • Recently Browsing   0 members

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