Jump to content

Photo

Probably capturing Event


  • Please log in to reply
2 replies to this topic

#1
knyghteblades

knyghteblades

    Journeyman

  • Members
  • Pip
  • 45 posts
If I attach the script to my mod via Module properties, I can capture the EVENT_TYPE_POPUP_RESULT without any issues.

However, if I set the script to None and use the PRCSCR_NNNN.gda method to call it, then the EVENT_TYPE_POPUP_RESULT doesn't seem to register.

I'd like to call the ShowPopup method and capture which button was pressed, but I don't want to have to attach the script to the module, as I'm pretty certain that will make it so the script is only called when the game is loaded, and I want it called when the party is in camp.

Thanks,
Knyghte

#2
jwvanderbeck

jwvanderbeck

    Fan

  • Supporter
  • PipPipPip
  • 284 posts
The script attached to your module will run whenever the event happens.

#3
knyghteblades

knyghteblades

    Journeyman

  • Members
  • Pip
  • 45 posts
I only want the script to run when entering the party camp. By referencing the script in the PRCSCR_NNNN.GDA file, that seems to achieve that objective. However, when I go that route, then I can't seem to capture the EVENT_TYPE_POPUP_RESULT event (or any event for that matter). Getting the ID of the current event returns 0.

I think what you're suggesting is to attach the script to the module, then, in my event trigger code, check to see what area I'm in and go from there. Is that right?




Page loaded in: 1.030 seconds