Jump to content

How to use SetOnDialogTopicEventHandler?


EPDGaffney

Recommended Posts

I'm only just getting into UDF scripts now, but so far I've had no trouble. However, there is of course always a chance I've made some novice error.

 

Now, my understanding is that this function allows me to treat a dialogue topic as if it were calling a Begin block whenever it's said. These are my two scripts, the latter of which is part of a larger script that I don't remember and have cut as I don't believe it's relevant, though I could be wrong.

scn GSBAeneidArcadeUDFScript

Begin Function {}
    set GSBAeneidQuest.GSBArcadeLatin to 1
End
Begin GameMode
SetOnDialogTopicEventHandler GSBAeneidArcadeUDFScript 1 VDialogueArcadeGannonVFSArcadeGannonTopic002
If [et cetera and so on...]
EndIf
End

I see minor problems with these and have guesses about some other aspects, but if anyone has real experience with this sort of thing and can help me cut down my testing time, I'd be grateful.

 

Edit: Fixed it. I ignored the skeleton script for the handler for the most part, thinking it was just offering me the argument and variables in case I wanted to use them, which I didn't, but it appears they are necessary, as it now works.

Edited by EPDGaffney
Link to comment
Share on other sites

  • Recently Browsing   0 members

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