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
Probably capturing Event
Started by
knyghteblades
, Dec 21 2009 06:45 AM
2 replies to this topic
#1
Posted 21 December 2009 - 06:45 AM
#2
Posted 21 December 2009 - 02:42 PM
The script attached to your module will run whenever the event happens.
#3
Posted 21 December 2009 - 05:57 PM
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?
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?



Sign In
Create Account
Back to top








