Aller au contenu

Photo

Anyone able to intercept EVENT_TYPE_SET_PLOT in your own module?


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
JackFuzz

JackFuzz
  • Members
  • 408 messages
Anyone able to intercept EVENT_TYPE_SET_PLOT in your own module?

#2
Challseus

Challseus
  • Members
  • 1 032 messages
I haven't had any issues doing this. I have a plot file, and in the properties section of it, I specify the core script to send all the events to. Then, in said script, I'm able to catch EVENT_TYPE_SET_PLOT with no issues.

Is this what you're talking about?

#3
JackFuzz

JackFuzz
  • Members
  • 408 messages

Challseus wrote...

I haven't had any issues doing this. I have a plot file, and in the properties section of it, I specify the core script to send all the events to. Then, in said script, I'm able to catch EVENT_TYPE_SET_PLOT with no issues.

Is this what you're talking about?


I'm trying to intercept alistair's events.

#4
Challseus

Challseus
  • Members
  • 1 032 messages

JackFuzz wrote...

Challseus wrote...

I haven't had any issues doing this. I have a plot file, and in the properties section of it, I specify the core script to send all the events to. Then, in said script, I'm able to catch EVENT_TYPE_SET_PLOT with no issues.

Is this what you're talking about?


I'm trying to intercept alistair's events.




I see... Well, I don't have the SP campaign opened up at the moment, but I assume alistair has his own plot file? In it, you should see which core script which will be catching said events. So, I guess override that? *shrug*

EDIT - Just took a look. I'm probably missing one, but I see 5 plot files for him:

  • genpt_alistair_main
  • genpt_alistair_talked
  • genpt_alistair_events
  • genpt_alistair_defined
  • genpt_alistair_banter
These all have corresponding scripts with the same names, so I guess you can search these for the event you're looking for, and override it.

Modifié par Challseus, 15 février 2010 - 05:29 .


#5
Phaenan

Phaenan
  • Members
  • 315 messages
The thing is EVENT_TYPE_SET_PLOT is only sent to the plot core script and not to the module core or anywhere else, so you can't catch it "in your module" per say. You'll have to either modify the plot resource to create a custom core script (if it doesn't have one already) or to override the current plot core script. (if one exists)

Modifié par Phaenan, 15 février 2010 - 05:48 .