Jump to content

Recommended Posts

Run this in xEdit, it should find it for you:

Spoiler
{
  Find dialogue
}
unit UserScript;

function Initialize: integer;
var
  i: integer;
  j: integer;
  f: IInterface;
  e: IInterface;
  sig: string;
begin
  // iterate over loaded plugins
  for i := 0 to Pred(FileCount) do begin
    f := FileByIndex(i);
    
    for j := 0 to Pred(RecordCount(f)) do begin
        e := RecordByIndex(f, j);
        sig := Signature(e);
        if sig = 'DIAL' then SearchDial(e);
        if sig = 'INFO' then SearchInfo(e);
    end;
  end;
end;

procedure SearchDial(e: IInterface);
var
    m: string;
begin
    m := GetElementNativeValues(e, 'FULL - Name');
    
    if pos('do you want to talk a bit', m) > 0 then
        AddMessage(IntToHex(GetLoadOrderFormID(e), 8) + ' ' + m);
end;

procedure SearchInfo(e: IInterface);
var
    m: string;
    i: integer;
    responses, response: IInterface;
begin
    responses := ElementByName(e, 'Responses');
    
    for i := 0 to Pred(ElementCount(responses)) do begin
        response := ElementByIndex(responses, i);
        m := GetElementEditValues(response, 'NAM1');
        
        if pos('do you want to talk a bit', m) > 0 then
            AddMessage(IntToHex(GetLoadOrderFormID(e), 8) + ' ' + m);
    end;
end;

end.

 

 

Edited by traison
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use