Aller au contenu

Photo

[SOLVED] Adjusting a main event condition


5 réponses à ce sujet

#1
Charsen

Charsen
  • Members
  • 2 266 messages
I would like to change the conditions of ZEVRAN_ATTACK_ONE to require LOGHAIN_EVENT_ONE instead of LOGHAIN_EVENT_TWO,

-or- have a brute forced encounter after nCounter==1 at the closing of Lothering in main_events

However... I am not quite sure how to accomplish this because I can't find where ZEVRAN_ATTACK_ONE is defined in the scripts to require the specific loghain event, and alternately I'm not sure how to force call the attack within the main_events.

I think the first solution is easiest. I have found the entry in plt_main_events for attack one, but I don't know where I would need to go to make it accept loghain_event_one instead. 

Could anyone lend me a hand? 

Modifié par Charsen, 08 mars 2010 - 10:32 .


#2
Charsen

Charsen
  • Members
  • 2 266 messages
I have since found the file that I believe this is referring to. But the change I made is not working and I'm not sure what I am doing wrong:



I changed this:

else if(!WR_GetPlotFlag( PLT_MNP000PT_MAIN_EVENTS, ZEVRAN_ATTACK_ONE) &&

WR_GetPlotFlag( PLT_MNP000PT_MAIN_EVENTS, LOGHAIN_EVENT_TWO))



To this:

else if( !WR_GetPlotFlag( PLT_MNP000PT_MAIN_EVENTS, ZEVRAN_ATTACK_ONE))



Because I want this to happen ONLY if ZEVRAN_ATTACK_ONE is not set. I don't care about the world events. So this should happen during any map transition and before any random encounter... but so far my testing has only yielded random encounters.



I exported the map_events_h.nss and made an override of it.



Could anyone please give me a hint about what might be going wrong here? =)


#3
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
map_events_h is a header file, not a stand-alone script. You have to export the scripts which call the functions contained in it, and make sure those scripts are in your override.

#4
Charsen

Charsen
  • Members
  • 2 266 messages
Thanks David - The only script I have come across that includes map_events_h is sp_module_travel.

Is there a more efficient way of finding scripts that include my header? (other than manual inspection, I didn't see a way to search multiple un-opened scripts at once)

I appreciate your help!

#5
TimelordDC

TimelordDC
  • Members
  • 923 messages
Right-Click -> Properties -> Referenced By tab.

#6
Charsen

Charsen
  • Members
  • 2 266 messages
Aha! Thanks Timelord. You guys rock.